Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5342630b
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看板
未验证
提交
5342630b
编写于
9月 01, 2023
作者:
O
openharmony_ci
提交者:
Gitee
9月 01, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9968 refactor:Optimize acts cases of msdp module
Merge pull request !9968 from zyshg/master
上级
8345a832
d0d7b44d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
35 addition
and
141 deletion
+35
-141
msdp/device_status/src/main/js/test/device_status_unittest.test.js
...ce_status/src/main/js/test/device_status_unittest.test.js
+35
-141
未找到文件。
msdp/device_status/src/main/js/test/device_status_unittest.test.js
浏览文件 @
5342630b
...
...
@@ -39,7 +39,7 @@ export default function DeviceStatusUnitTest() {
* parameter unknown
*/
it
(
'
msdp_test_devices_status_001
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_001 start
"
);
console
.
log
(
"
msdp_test_devices_status_001
on
start
"
);
console
.
log
(
JSON
.
stringify
(
stationary
));
try
{
p_done
=
done
;
...
...
@@ -48,17 +48,7 @@ export default function DeviceStatusUnitTest() {
console
.
error
(
'
error Log
'
+
error
);
done
();
}
})
/**
* @tc.number DeviceStatus_002
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_002
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_002 start
"
);
console
.
log
(
"
msdp_test_devices_status_001 once start
"
);
try
{
p_done
=
done
;
stationary
.
once
(
"
still
"
,
pub_callback
);
...
...
@@ -66,17 +56,7 @@ export default function DeviceStatusUnitTest() {
console
.
error
(
'
error=
'
+
error
);
done
();
}
})
/**
* @tc.number DeviceStatus_003
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_003
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_003 start
"
);
console
.
log
(
"
msdp_test_devices_status_001 off start
"
);
setTimeout
(
function
()
{
try
{
p_done
=
done
;
...
...
@@ -90,16 +70,14 @@ export default function DeviceStatusUnitTest() {
},
200
);
})
/**
* @tc.number DeviceStatus_00
4
* @tc.number DeviceStatus_00
2
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_00
4
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_00
4
start
"
);
it
(
'
msdp_test_devices_status_00
2
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_00
2 on
start
"
);
console
.
log
(
JSON
.
stringify
(
stationary
));
try
{
p_done
=
done
;
...
...
@@ -108,17 +86,7 @@ export default function DeviceStatusUnitTest() {
console
.
error
(
'
error Log
'
+
error
);
done
();
}
})
/**
* @tc.number DeviceStatus_005
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_005
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_005 start
"
);
console
.
log
(
"
msdp_test_devices_status_002 once start
"
);
try
{
p_done
=
done
;
stationary
.
once
(
"
relativeStill
"
,
pub_callback
);
...
...
@@ -126,17 +94,7 @@ export default function DeviceStatusUnitTest() {
console
.
error
(
'
error=
'
+
error
);
done
();
}
})
/**
* @tc.number DeviceStatus_006
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_006
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_006 start
"
);
console
.
log
(
"
msdp_test_devices_status_002 off start
"
);
setTimeout
(
function
()
{
try
{
p_done
=
done
;
...
...
@@ -151,13 +109,13 @@ export default function DeviceStatusUnitTest() {
})
/**
* @tc.number DeviceStatus_007
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_00
7
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_00
7
start
"
);
* @tc.number DeviceStatus_003
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_00
3
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_00
3 on
start
"
);
console
.
log
(
JSON
.
stringify
(
stationary
));
try
{
p_done
=
done
;
...
...
@@ -166,17 +124,7 @@ export default function DeviceStatusUnitTest() {
console
.
error
(
'
error Log
'
+
error
);
done
();
}
})
/**
* @tc.number DeviceStatus_008
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_008
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_008 start
"
);
console
.
log
(
"
msdp_test_devices_status_003 once start
"
);
try
{
p_done
=
done
;
stationary
.
once
(
"
Type_Unknow
"
,
pub_callback
);
...
...
@@ -184,17 +132,7 @@ export default function DeviceStatusUnitTest() {
console
.
error
(
'
error=
'
+
error
);
done
();
}
})
/**
* @tc.number DeviceStatus_009
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_009
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_009 start
"
);
console
.
log
(
"
msdp_test_devices_status_003 off start
"
);
setTimeout
(
function
()
{
try
{
p_done
=
done
;
...
...
@@ -208,16 +146,14 @@ export default function DeviceStatusUnitTest() {
},
200
);
})
/**
* @tc.number DeviceStatus_010
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_0
10
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_0
10
start
"
);
* @tc.number DeviceStatus_004
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_0
04
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_0
04 on
start
"
);
console
.
log
(
JSON
.
stringify
(
stationary
));
try
{
p_done
=
done
;
...
...
@@ -226,17 +162,7 @@ export default function DeviceStatusUnitTest() {
console
.
error
(
'
error Log
'
+
error
);
done
();
}
})
/**
* @tc.number DeviceStatus_011
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_011
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_011 start
"
);
console
.
log
(
"
msdp_test_devices_status_004 once start
"
);
try
{
p_done
=
done
;
stationary
.
once
(
"
relativeStill
"
,
pub_callback
);
...
...
@@ -244,17 +170,7 @@ export default function DeviceStatusUnitTest() {
console
.
error
(
'
error=
'
+
error
);
done
();
}
})
/**
* @tc.number DeviceStatus_012
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_012
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_012 start
"
);
console
.
log
(
"
msdp_test_devices_status_004 off start
"
);
setTimeout
(
function
()
{
try
{
p_done
=
done
;
...
...
@@ -268,15 +184,14 @@ export default function DeviceStatusUnitTest() {
},
200
);
})
/**
* @tc.number DeviceStatus_013
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_0
13
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_0
13
start
"
);
* @tc.number DeviceStatus_005
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_0
05
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_0
05 on
start
"
);
console
.
log
(
JSON
.
stringify
(
stationary
));
try
{
p_done
=
done
;
...
...
@@ -285,17 +200,7 @@ export default function DeviceStatusUnitTest() {
console
.
error
(
'
error Log
'
+
error
);
done
();
}
})
/**
* @tc.number DeviceStatus_014
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_014
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_014 start
"
);
console
.
log
(
"
msdp_test_devices_status_005 once start
"
);
try
{
p_done
=
done
;
stationary
.
once
(
"
relativeStill
"
,
pub_callback
);
...
...
@@ -303,17 +208,7 @@ export default function DeviceStatusUnitTest() {
console
.
error
(
'
error=
'
+
error
);
done
();
}
})
/**
* @tc.number DeviceStatus_015
* @tc.name
* @tc.callback:AsyncCallback<HighStillResponse>
* parameter unknown
*/
it
(
'
msdp_test_devices_status_015
'
,
0
,
function
(
done
)
{
console
.
log
(
"
msdp_test_devices_status_015 start
"
);
console
.
log
(
"
msdp_test_devices_status_005 off start
"
);
setTimeout
(
function
()
{
try
{
p_done
=
done
;
...
...
@@ -326,6 +221,5 @@ export default function DeviceStatusUnitTest() {
}
},
200
);
})
})
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录