提交 86690d06 编写于 作者: O openharmony_ci 提交者: Gitee

!574 【startup】【master】修改set接口中callback没有入参的问题

Merge pull request !574 from limeng/kernel_lite_20210910_02_Master
...@@ -35,11 +35,10 @@ describe('SystemParameterTest', function () { ...@@ -35,11 +35,10 @@ describe('SystemParameterTest', function () {
console.info('system_parameter_test_0100 start'); console.info('system_parameter_test_0100 start');
let ret = false; let ret = false;
try { try {
systemparameter.set('hw_sc.build.os.version', '10.20.30.4', function (date, err) { systemparameter.set('hw_sc.build.os.version', '10.20.30.4', function (err) {
if (err == undefined) { if (err == undefined) {
ret = true; ret = true;
console.info('system_parameter_test_0100 set callback hw_sc.build.os.version value success :' console.info('system_parameter_test_0100 set callback hw_sc.build.os.version value success ');
+ data);
} else { } else {
console.info('system_parameter_test_0100 set callback hw_sc.build.os.version value err:' console.info('system_parameter_test_0100 set callback hw_sc.build.os.version value err:'
+ err.code); + err.code);
...@@ -64,10 +63,9 @@ describe('SystemParameterTest', function () { ...@@ -64,10 +63,9 @@ describe('SystemParameterTest', function () {
console.info('system_parameter_test_0110 start'); console.info('system_parameter_test_0110 start');
let ret = false; let ret = false;
try { try {
systemparameter.set('hw_sc.build.os.version', 111, function (e, data) { systemparameter.set('hw_sc.build.os.version', 111, function (e) {
if (err == undefined) { if (err == undefined) {
console.info('system_parameter_test_0110 set callback hw_sc.build.os.version value success:' console.info('system_parameter_test_0110 set callback hw_sc.build.os.version value success');
+ data)
} else { } else {
console.info('system_parameter_test_0110 set callback hw_sc.build.os.version value err:' console.info('system_parameter_test_0110 set callback hw_sc.build.os.version value err:'
+ e.code) + e.code)
...@@ -94,10 +92,9 @@ describe('SystemParameterTest', function () { ...@@ -94,10 +92,9 @@ describe('SystemParameterTest', function () {
console.info('system_parameter_test_0120 start'); console.info('system_parameter_test_0120 start');
let ret = false; let ret = false;
try { try {
systemparameter.set('hw_sc.build.os.version', PROPERTY_MAX_VALUE, function (e, data) { systemparameter.set('hw_sc.build.os.version', PROPERTY_MAX_VALUE, function (e) {
if (e == undefined) { if (e == undefined) {
console.info('system_parameter_test_0120 set callback hw_sc.build.os.version value success:' console.info('system_parameter_test_0120 set callback hw_sc.build.os.version value success');
+ data);
} else { } else {
ret = true; ret = true;
console.info('system_parameter_test_0120 set callback hw_sc.build.os.version value err:' + console.info('system_parameter_test_0120 set callback hw_sc.build.os.version value err:' +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册