Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a15c5059
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
大约 1 年 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
a15c5059
编写于
5月 17, 2022
作者:
O
openharmony_ci
提交者:
Gitee
5月 17, 2022
浏览文件
操作
浏览文件
下载
差异文件
!3205 [startup_standard][master]modify systemparameter cases name
Merge pull request !3205 from leiyuqian/20220517_xts_1
上级
55bdbb89
29bd3fa8
变更
2
展开全部
显示空白变更内容
内联
并排
Showing
2 changed file
with
222 addition
and
222 deletion
+222
-222
startup/startup_standard/deviceinfo/src/main/js/default/test/ParametersJsUnit.test.js
...iceinfo/src/main/js/default/test/ParametersJsUnit.test.js
+171
-171
startup/startup_standard/systemparamter/src/main/js/default/test/SysParametersJs.test.js
...paramter/src/main/js/default/test/SysParametersJs.test.js
+51
-51
未找到文件。
startup/startup_standard/deviceinfo/src/main/js/default/test/ParametersJsUnit.test.js
浏览文件 @
a15c5059
此差异已折叠。
点击以展开。
startup/startup_standard/systemparamter/src/main/js/default/test/SysParametersJs.test.js
浏览文件 @
a15c5059
...
...
@@ -45,17 +45,17 @@ describe('SystemParameterTest', function () {
* @tc.name testWaitPromise01
* @tc.desc Waits the value of the attribute with the specified key.
*/
it
(
'
system_parameter_test_08
01
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
system_parameter_test_08
01 start
'
);
it
(
'
testWaitPromise
01
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testWaitPromise
01 start
'
);
let
ret
=
false
;
try
{
var
parameterInfo
=
systemparameter
.
wait
(
"
test.wait_param.101
"
,
"
100
"
,
1
);
parameterInfo
.
then
(
function
(
result
)
{
// timeout
console
.
info
(
"
system_parameter_test_08
01 test.wait_param.101 success:
"
+
result
);
console
.
info
(
"
testWaitPromise
01 test.wait_param.101 success:
"
+
result
);
expect
(
ret
).
assertTrue
();
}).
catch
(
function
(
err
)
{
ret
=
true
;
console
.
info
(
"
system_parameter_test_08
01 test.wait_param.101 error:
"
+
err
.
code
);
console
.
info
(
"
testWaitPromise
01 test.wait_param.101 error:
"
+
err
.
code
);
expect
(
ret
).
assertTrue
();
done
();
});
...
...
@@ -63,7 +63,7 @@ describe('SystemParameterTest', function () {
expect
(
ret
).
assertTrue
();
console
.
info
(
"
promise get input error:
"
+
e
);
}
console
.
info
(
'
system_parameter_test_08
01 end
'
);
console
.
info
(
'
testWaitPromise
01 end
'
);
})
/**
...
...
@@ -71,18 +71,18 @@ describe('SystemParameterTest', function () {
* @tc.name testWaitPromise02
* @tc.desc Waits the value of the attribute with the specified key.
*/
it
(
'
system_parameter_test_08
02
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
system_parameter_test_08
02 start
'
);
it
(
'
testWaitPromise
02
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testWaitPromise
02 start
'
);
let
ret
=
false
;
try
{
var
parameterInfo
=
systemparameter
.
wait
(
"
test.wait_param.102
"
,
""
,
1
);
parameterInfo
.
then
(
function
(
result
)
{
// timeout
console
.
info
(
"
system_parameter_test_08
02 test.wait_param.102 success:
"
);
console
.
info
(
"
testWaitPromise
02 test.wait_param.102 success:
"
);
expect
(
ret
).
assertTrue
();
done
();
}).
catch
(
function
(
err
)
{
ret
=
true
;
console
.
info
(
"
system_parameter_test_08
02 test.wait_param.102 error:
"
+
err
.
code
);
console
.
info
(
"
testWaitPromise
02 test.wait_param.102 error:
"
+
err
.
code
);
expect
(
ret
).
assertTrue
();
done
();
});
...
...
@@ -90,7 +90,7 @@ describe('SystemParameterTest', function () {
expect
(
ret
).
assertTrue
();
console
.
info
(
"
promise get input error:
"
+
e
);
}
console
.
info
(
'
system_parameter_test_08
02 end
'
);
console
.
info
(
'
testWaitPromise
02 end
'
);
})
/**
...
...
@@ -98,26 +98,26 @@ describe('SystemParameterTest', function () {
* @tc.name testWaitPromise03
* @tc.desc Waits the value of the attribute with the specified key.
*/
it
(
'
system_parameter_test_08
03
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
system_parameter_test_08
03 start
'
);
it
(
'
testWaitPromise
03
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testWaitPromise
03 start
'
);
let
ret
=
false
;
SetParameter
(
"
test.wait_param.103
"
,
"
103
"
);
try
{
var
parameterInfo
=
systemparameter
.
wait
(
"
test.wait_param.103
"
,
"
103
"
,
1
);
parameterInfo
.
then
(
function
(
result
)
{
// ok
ret
=
true
;
console
.
info
(
"
system_parameter_test_08
03 test.wait_param.103 success:
"
);
console
.
info
(
"
testWaitPromise
03 test.wait_param.103 success:
"
);
expect
(
ret
).
assertTrue
();
done
();
}).
catch
(
function
(
err
)
{
expect
(
ret
).
assertTrue
();
console
.
info
(
"
system_parameter_test_08
03 test.wait_param.103 error:
"
+
err
.
code
);
console
.
info
(
"
testWaitPromise
03 test.wait_param.103 error:
"
+
err
.
code
);
});
}
catch
(
e
)
{
expect
(
ret
).
assertTrue
();
console
.
info
(
"
promise get input error:
"
+
e
);
}
console
.
info
(
'
system_parameter_test_08
03 end
'
);
console
.
info
(
'
testWaitPromise
03 end
'
);
})
/**
...
...
@@ -125,26 +125,26 @@ describe('SystemParameterTest', function () {
* @tc.name testWaitPromise04
* @tc.desc Waits the value of the attribute with the specified key.
*/
it
(
'
system_parameter_test_08
04
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
system_parameter_test_08
04 start
'
);
it
(
'
testWaitPromise
04
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testWaitPromise
04 start
'
);
let
ret
=
false
;
SetParameter
(
"
test.wait_param.104
"
,
"
104
"
);
try
{
var
parameterInfo
=
systemparameter
.
wait
(
"
test.wait_param.104
"
,
"
*
"
,
1
);
parameterInfo
.
then
(
function
(
result
)
{
// ok
ret
=
true
;
console
.
info
(
"
system_parameter_test_08
04 test.wait_param.104 success
"
);
console
.
info
(
"
testWaitPromise
04 test.wait_param.104 success
"
);
expect
(
ret
).
assertTrue
();
done
();
}).
catch
(
function
(
err
)
{
console
.
info
(
"
system_parameter_test_08
04 test.wait_param.104 error:
"
+
err
.
code
);
console
.
info
(
"
testWaitPromise
04 test.wait_param.104 error:
"
+
err
.
code
);
expect
(
ret
).
assertTrue
();
});
}
catch
(
e
)
{
expect
(
ret
).
assertTrue
();
console
.
info
(
"
promise get input error:
"
+
e
);
}
console
.
info
(
'
system_parameter_test_08
04 end
'
);
console
.
info
(
'
testWaitPromise
04 end
'
);
})
/**
...
...
@@ -152,26 +152,26 @@ describe('SystemParameterTest', function () {
* @tc.name testWaitPromise05
* @tc.desc Waits the value of the attribute with the specified key.
*/
it
(
'
system_parameter_test_08
05
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
system_parameter_test_08
05 start
'
);
it
(
'
testWaitPromise
05
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testWaitPromise
05 start
'
);
let
ret
=
false
;
SetParameter
(
"
test.wait_param.105
"
,
"
105
"
);
try
{
var
parameterInfo
=
systemparameter
.
wait
(
"
test.wait_param.105
"
,
"
*
"
,
-
1
);
parameterInfo
.
then
(
function
(
result
)
{
ret
=
true
;
console
.
info
(
"
system_parameter_test_08
05 test.wait_param.105 success
"
);
console
.
info
(
"
testWaitPromise
05 test.wait_param.105 success
"
);
expect
(
ret
).
assertTrue
();
done
();
}).
catch
(
function
(
err
)
{
console
.
info
(
"
system_parameter_test_08
05 test.wait_param.105 error:
"
+
err
.
code
);
console
.
info
(
"
testWaitPromise
05 test.wait_param.105 error:
"
+
err
.
code
);
expect
(
ret
).
assertTrue
();
});
}
catch
(
e
)
{
expect
(
ret
).
assertTrue
();
console
.
info
(
"
promise get input error:
"
+
e
);
}
console
.
info
(
'
system_parameter_test_08
05 end
'
);
console
.
info
(
'
testWaitPromise
05 end
'
);
})
/**
...
...
@@ -179,28 +179,28 @@ describe('SystemParameterTest', function () {
* @tc.name testWait01
* @tc.desc Waits the value of the attribute with the specified key.
*/
it
(
'
system_parameter_test_0806
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
system_parameter_test_0806
start
'
);
it
(
'
testWait01
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testWait01
start
'
);
let
ret
=
false
;
try
{
systemparameter
.
wait
(
"
test.wait_param.201
"
,
"
100
"
,
1
,
function
(
err
,
data
)
{
if
(
err
==
undefined
||
err
.
code
===
0
)
{
console
.
info
(
"
system_parameter_test_0806
test.wait_param.201 success
"
)
console
.
info
(
"
testWait01
test.wait_param.201 success
"
)
}
else
{
ret
=
true
;
// wait timeout
console
.
info
(
"
system_parameter_test_0806
test.wait_param.201 err:
"
+
err
.
code
);
console
.
info
(
"
testWait01
test.wait_param.201 err:
"
+
err
.
code
);
expect
(
ret
).
assertTrue
();
}
});
}
catch
(
e
)
{
expect
(
ret
).
assertTrue
();
console
.
info
(
"
system_parameter_test_0806
get input error:
"
+
e
);
console
.
info
(
"
testWait01
get input error:
"
+
e
);
}
setTimeout
(
function
()
{
expect
(
ret
).
assertTrue
();
done
();
},
'
2000
'
);
console
.
info
(
'
system_parameter_test_0806
end
'
);
console
.
info
(
'
testWait01
end
'
);
})
/**
...
...
@@ -208,17 +208,17 @@ describe('SystemParameterTest', function () {
* @tc.name testWait02
* @tc.desc Waits the value of the attribute with the specified key.
*/
it
(
'
system_parameter_test_0807
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
system_parameter_test_0807
start
'
);
it
(
'
testWait02
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testWait02
start
'
);
let
ret
=
false
;
try
{
ret
=
true
;
systemparameter
.
wait
(
"
test.wait_param.202
"
,
""
,
1
,
function
(
err
,
data
)
{
if
(
err
==
undefined
||
err
.
code
===
0
)
{
// timeout
ret
=
false
;
console
.
info
(
"
system_parameter_test_0807
test.wait_param.202 success
"
);
console
.
info
(
"
testWait02
test.wait_param.202 success
"
);
}
else
{
console
.
info
(
"
system_parameter_test_0807
callback test.wait_param.202 err:
"
+
err
.
code
);
console
.
info
(
"
testWait02
callback test.wait_param.202 err:
"
+
err
.
code
);
}
expect
(
ret
).
assertTrue
();
done
();
...
...
@@ -228,7 +228,7 @@ describe('SystemParameterTest', function () {
console
.
info
(
"
get input error:
"
+
e
);
}
expect
(
ret
).
assertTrue
();
console
.
info
(
'
system_parameter_test_0807
end
'
);
console
.
info
(
'
testWait02
end
'
);
})
/**
...
...
@@ -236,17 +236,17 @@ describe('SystemParameterTest', function () {
* @tc.name testWait03
* @tc.desc Waits the value of the attribute with the specified key.
*/
it
(
'
system_parameter_test_0808
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
system_parameter_test_0808
start
'
);
it
(
'
testWait03
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testWait03
start
'
);
let
ret
=
false
;
SetParameter
(
"
test.wait_param.203
"
,
"
103
"
);
try
{
systemparameter
.
wait
(
"
test.wait_param.203
"
,
"
103
"
,
1
,
function
(
err
,
data
)
{
if
(
err
==
undefined
||
err
.
code
===
0
)
{
ret
=
true
;
console
.
info
(
"
system_parameter_test_0808
test.wait_param.203 success
"
)
console
.
info
(
"
testWait03
test.wait_param.203 success
"
)
}
else
{
console
.
info
(
"
system_parameter_test_0808
test.wait_param.203 err:
"
+
err
.
code
)
console
.
info
(
"
testWait03
test.wait_param.203 err:
"
+
err
.
code
)
}
expect
(
ret
).
assertTrue
();
});
...
...
@@ -258,7 +258,7 @@ describe('SystemParameterTest', function () {
expect
(
ret
).
assertTrue
();
done
();
},
'
1000
'
);
console
.
info
(
'
system_parameter_test_0808
end
'
);
console
.
info
(
'
testWait03
end
'
);
})
/**
...
...
@@ -266,18 +266,18 @@ describe('SystemParameterTest', function () {
* @tc.name testWait04
* @tc.desc Waits the value of the attribute with the specified key.
*/
it
(
'
system_parameter_test_0809
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
system_parameter_test_0809
start
'
);
it
(
'
testWait04
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testWait04
start
'
);
let
ret
=
false
;
SetParameter
(
"
test.wait_param.204
"
,
"
104
"
);
try
{
systemparameter
.
wait
(
"
test.wait_param.204
"
,
"
*
"
,
1
,
function
(
err
,
data
)
{
if
(
err
==
undefined
||
err
.
code
===
0
)
{
ret
=
true
;
console
.
info
(
"
system_parameter_test_0809
test.wait_param.204 success
"
)
console
.
info
(
"
testWait04
test.wait_param.204 success
"
)
}
else
{
ret
=
false
;
console
.
info
(
"
system_parameter_test_0809
callback test.wait_param.204 err:
"
+
err
.
code
)
console
.
info
(
"
testWait04
callback test.wait_param.204 err:
"
+
err
.
code
)
}
expect
(
ret
).
assertTrue
();
});
...
...
@@ -289,7 +289,7 @@ describe('SystemParameterTest', function () {
expect
(
ret
).
assertTrue
();
done
();
},
'
1000
'
);
console
.
info
(
'
system_parameter_test_0809
end
'
);
console
.
info
(
'
testWait04
end
'
);
})
/**
...
...
@@ -297,17 +297,17 @@ describe('SystemParameterTest', function () {
* @tc.name testWait05
* @tc.desc Waits the value of the attribute with the specified key.
*/
it
(
'
system_parameter_test_0810
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
system_parameter_test_0810
start
'
);
it
(
'
testWait05
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testWait05
start
'
);
let
ret
=
false
;
SetParameter
(
"
test.wait_param.205
"
,
"
105
"
);
try
{
systemparameter
.
wait
(
"
test.wait_param.205
"
,
"
*
"
,
1
,
function
(
err
,
data
)
{
if
(
err
==
undefined
||
err
.
code
===
0
)
{
ret
=
true
;
console
.
info
(
"
system_parameter_test_0810
test.wait_param.205 success:
"
+
data
)
console
.
info
(
"
testWait05
test.wait_param.205 success:
"
+
data
)
}
else
{
console
.
info
(
"
system_parameter_test_0810
test.wait_param.205 err:
"
+
err
.
code
)
console
.
info
(
"
testWait05
test.wait_param.205 err:
"
+
err
.
code
)
}
expect
(
ret
).
assertTrue
();
});
...
...
@@ -319,6 +319,6 @@ describe('SystemParameterTest', function () {
expect
(
ret
).
assertTrue
();
done
();
},
'
1000
'
);
console
.
info
(
'
system_parameter_test_0810
end
'
);
console
.
info
(
'
testWait05
end
'
);
})
})
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录