提交 873f63a6 编写于 作者: L limeng151

屏蔽掉系统不支持的参数

Signed-off-by: Nlimeng151 <limeng151@huawei.com>
Change-Id: Id12282749ed8d2c5ffb9b97ec90d04d9446d9923
上级 7da01d11
...@@ -115,33 +115,6 @@ describe('SystemParameterTest', function () { ...@@ -115,33 +115,6 @@ describe('SystemParameterTest', function () {
console.info('system_parameter_test_0120 : end'); console.info('system_parameter_test_0120 : end');
}) })
/**
* @tc.number SUB_STARTUP_JS_SYSTEM_PARAMETER_0140
* @tc.name testSet0140
* @tc.desc Set the value for the given key.
*/
it('system_parameter_test_0140', 0, async function (done) {
console.info('system_parameter_test_0140 start');
let ret = false;
try {
systemparameter.set('ro.secure', '10.20.30.4', function (err, data) {
if (err == undefined) {
ret = true;
console.info('system_parameter_test_0140 set callback ro.secure value success:' + data);
done();
} else {
console.info('system_parameter_test_0140 set callback ro.secure value err:' + err.code);
}
});
} catch (e) {
console.info('system_parameter_test_0140 set callback ro.secure unexpect err:' + e)
}
setTimeout(function(){
expect(ret).assertTrue();
}, '1000');
console.info('system_parameter_test_0140 : end');
})
/** /**
* @tc.number SUB_STARTUP_JS_SYSTEM_PARAMETER_0200 * @tc.number SUB_STARTUP_JS_SYSTEM_PARAMETER_0200
* @tc.name testSet0200 * @tc.name testSet0200
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册