Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
c5c59f5a
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看板
未验证
提交
c5c59f5a
编写于
3月 18, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 18, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2604 Misc用例整改
Merge pull request !2604 from 高曦/master
上级
0b3d6c5a
9093fc62
变更
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
浏览文件 @
c5c59f5a
无法预览此类型文件
miscservices/PasteBoardTest_js/signature/openharmony_sx.p7b
浏览文件 @
c5c59f5a
无法预览此类型文件
miscservices/PasteBoardTest_js/src/main/js/default/test/PasteBoardJsunit.test.js
浏览文件 @
c5c59f5a
此差异已折叠。
点击以展开。
miscservices/RequestTest_js/signature/openharmony_sx.p7b
浏览文件 @
c5c59f5a
无法预览此类型文件
miscservices/TimeTest_js/signature/openharmony_sx.p7b
浏览文件 @
c5c59f5a
无法预览此类型文件
miscservices/TimeTest_js/src/main/js/default/test/SystemTimeJsunit.test.js
浏览文件 @
c5c59f5a
...
...
@@ -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
浏览文件 @
c5c59f5a
无法预览此类型文件
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录