Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9093fc62
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,发现更多精彩内容 >>
提交
9093fc62
编写于
3月 18, 2022
作者:
高
高曦
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MISC用例整改
Signed-off-by:
N
高曦
<
gaoxi785@huawei.com
>
上级
6752a971
变更
7
展开全部
显示空白变更内容
内联
并排
Showing
7 changed file
with
1503 addition
and
527 deletion
+1503
-527
miscservices/InputMethodTest_ets/signature/openharmony_sx.p7b
...services/InputMethodTest_ets/signature/openharmony_sx.p7b
+0
-0
miscservices/PasteBoardTest_js/signature/openharmony_sx.p7b
miscservices/PasteBoardTest_js/signature/openharmony_sx.p7b
+0
-0
miscservices/PasteBoardTest_js/src/main/js/default/test/PasteBoardJsunit.test.js
...Test_js/src/main/js/default/test/PasteBoardJsunit.test.js
+1495
-448
miscservices/RequestTest_js/signature/openharmony_sx.p7b
miscservices/RequestTest_js/signature/openharmony_sx.p7b
+0
-0
miscservices/TimeTest_js/signature/openharmony_sx.p7b
miscservices/TimeTest_js/signature/openharmony_sx.p7b
+0
-0
miscservices/TimeTest_js/src/main/js/default/test/SystemTimeJsunit.test.js
...Test_js/src/main/js/default/test/SystemTimeJsunit.test.js
+8
-79
miscservices/TimerTest_js/signature/openharmony_sx.p7b
miscservices/TimerTest_js/signature/openharmony_sx.p7b
+0
-0
未找到文件。
miscservices/InputMethodTest_ets/signature/openharmony_sx.p7b
浏览文件 @
9093fc62
无法预览此类型文件
miscservices/PasteBoardTest_js/signature/openharmony_sx.p7b
浏览文件 @
9093fc62
无法预览此类型文件
miscservices/PasteBoardTest_js/src/main/js/default/test/PasteBoardJsunit.test.js
浏览文件 @
9093fc62
此差异已折叠。
点击以展开。
miscservices/RequestTest_js/signature/openharmony_sx.p7b
浏览文件 @
9093fc62
无法预览此类型文件
miscservices/TimeTest_js/signature/openharmony_sx.p7b
浏览文件 @
9093fc62
无法预览此类型文件
miscservices/TimeTest_js/src/main/js/default/test/SystemTimeJsunit.test.js
浏览文件 @
9093fc62
...
...
@@ -613,12 +613,12 @@ describe('TimeTest', function() {
console
.
log
(
'
setTime =
'
+
time
)
systemTime
.
setTime
(
time
)
var
resGetTime
=
systemTime
.
getCurrentTime
()
var
resGetTime
=
systemTime
.
getCurrentTime
(
true
)
console
.
log
(
'
GetTime =
'
+
resGetTime
)
assert
.
equal
(
resGetTime
,
time
)
sleep
(
5000
).
then
(()
=>
{
resGetTime
=
systemTime
.
getCurrentTime
();
resGetTime
=
systemTime
.
getCurrentTime
(
true
);
console
.
log
(
'
GetTime =
'
+
resGetTime
);
assert
.
equal
(
resGetTime
<=
(
time
+
6000
)
&&
resGetTime
>=
(
time
+
5000
));
...
...
@@ -641,12 +641,12 @@ describe('TimeTest', function() {
console
.
log
(
'
setTime =
'
+
time
)
systemTime
.
setTime
(
time
)
var
resGetTime
=
systemTime
.
getCurrentTime
()
var
resGetTime
=
systemTime
.
getCurrentTime
(
true
)
console
.
log
(
'
GetTime =
'
+
resGetTime
)
assert
.
equal
(
resGetTime
,
time
)
sleep
(
5000
).
then
(()
=>
{
resGetTime
=
systemTime
.
getCurrentTime
();
resGetTime
=
systemTime
.
getCurrentTime
(
true
);
console
.
log
(
'
GetTime =
'
+
resGetTime
);
assert
.
equal
(
resGetTime
<=
(
time
+
6000
)
&&
resGetTime
>=
(
time
+
5000
));
...
...
@@ -669,12 +669,12 @@ describe('TimeTest', function() {
console
.
log
(
'
setTime =
'
+
time
)
systemTime
.
setTime
(
time
)
var
resGetTime
=
systemTime
.
getCurrentTime
()
var
resGetTime
=
systemTime
.
getCurrentTime
(
true
)
console
.
log
(
'
GetTime =
'
+
resGetTime
)
assert
.
equal
(
resGetTime
,
time
)
sleep
(
5000
).
then
(()
=>
{
resGetTime
=
systemTime
.
getCurrentTime
();
resGetTime
=
systemTime
.
getCurrentTime
(
true
);
console
.
log
(
'
GetTime =
'
+
resGetTime
);
assert
.
equal
(
resGetTime
<=
(
time
+
6000
)
&&
resGetTime
>=
(
time
+
5000
));
...
...
@@ -684,7 +684,7 @@ describe('TimeTest', function() {
/**
* @tc.number SUB_systemTime_setTime_JS_API_0400
* @tc.name Test systemTime.setTime time =
Number.MAX_VALUE/2, getCurrentTimeNs
* @tc.name Test systemTime.setTime time =
-1
* @tc.desc Test systemTime_setTime API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -692,37 +692,12 @@ describe('TimeTest', function() {
*/
it
(
'
systemTime_setTime_test4
'
,
0
,
async
()
=>
{
console
.
log
(
'
SUB_systemTime_setTime_JS_API_0400 start
'
)
var
time
=
Number
.
MAX_VALUE
/
2
console
.
log
(
'
setTime =
'
+
time
)
systemTime
.
setTime
(
time
)
sleep
(
5000
).
then
(()
=>
{
var
resGetTime
=
systemTime
.
getCurrentTimeNs
();
console
.
log
(
'
GetTime =
'
+
resGetTime
);
assert
.
equal
(
resGetTime
<=
((
time
+
6000
)
*
1000000
)
&&
resGetTime
>=
((
time
+
5000
)
*
1000000
));
console
.
log
(
'
SUB_systemTime_setTime_JS_API_0400 end
'
);
})
})
/**
* @tc.number SUB_systemTime_setTime_JS_API_0500
* @tc.name Test systemTime.setTime time = -1
* @tc.desc Test systemTime_setTime API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
systemTime_setTime_test5
'
,
0
,
async
()
=>
{
console
.
log
(
'
SUB_systemTime_setTime_JS_API_0500 start
'
)
var
time
=
-
1
console
.
log
(
'
setTime =
'
+
time
)
systemTime
.
setTime
(
time
)
console
.
log
(
'
SUB_systemTime_setTime_JS_API_0
5
00 end
'
);
console
.
log
(
'
SUB_systemTime_setTime_JS_API_0
4
00 end
'
);
})
/**
...
...
@@ -1047,29 +1022,6 @@ describe('TimeTest', function() {
})
})
/**
* @tc.number SUB_systemTime_getRealActiveTimeNs_JS_API_0100
* @tc.name Test systemTime.getRealActiveTimeNs
* @tc.desc Test systemTime_getRealActiveTimeNs API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
systemTime_getRealActiveTimeNs_test1
'
,
0
,
async
()
=>
{
console
.
log
(
'
SUB_systemTime_getRealActiveTimeNs_JS_API_0100 start
'
)
var
resGetTime0
=
systemTime
.
getRealActiveTimeNs
()
console
.
log
(
'
GetTime0 =
'
+
resGetTime0
)
sleep
(
5000
).
then
(()
=>
{
var
resGetTime1
=
systemTime
.
getRealActiveTimeNs
();
console
.
log
(
'
GetTime1 =
'
+
resGetTime1
);
assert
.
equal
(
resGetTime1
<=
(
resGetTime0
+
6000
*
1000000
)
&&
resGetTime1
>=
(
resGetTime0
+
5000
*
1000000
));
console
.
log
(
'
SUB_systemTime_getRealActiveTimeNs_JS_API_0100 end
'
);
})
})
/**
* @tc.number SUB_systemTime_getRealTime_JS_API_0100
* @tc.name Test systemTime.getRealTime
...
...
@@ -1093,29 +1045,6 @@ describe('TimeTest', function() {
})
})
/**
* @tc.number SUB_systemTime_getRealTimeNs_JS_API_0100
* @tc.name Test systemTime.getRealTimeNs
* @tc.desc Test systemTime_getRealTimeNs API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
systemTime_getRealTimeNs_test1
'
,
0
,
async
()
=>
{
console
.
log
(
'
SUB_systemTime_getRealTimeNs_JS_API_0100 start
'
)
var
resGetTime0
=
systemTime
.
getRealTimeNs
()
console
.
log
(
'
GetTime0 =
'
+
resGetTime0
)
sleep
(
5000
).
then
(()
=>
{
var
resGetTime1
=
systemTime
.
getRealTimeNs
();
console
.
log
(
'
GetTime1 =
'
+
resGetTime1
);
assert
.
equal
(
resGetTime1
<=
(
resGetTime0
+
6000
*
1000000
)
&&
resGetTime1
>=
(
resGetTime0
+
5000
*
1000000
));
console
.
log
(
'
SUB_systemTime_getRealTimeNs_JS_API_0100 end
'
);
})
})
function
sleep
(
time
)
{
return
new
Promise
((
resolve
)
=>
setTimeout
(
resolve
,
time
));
}
...
...
miscservices/TimerTest_js/signature/openharmony_sx.p7b
浏览文件 @
9093fc62
无法预览此类型文件
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录