Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f90bee14
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看板
提交
f90bee14
编写于
4月 25, 2022
作者:
F
fjr
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
XTS1
Signed-off-by:
N
fjr
<
fujiarui6@huawei.com
>
上级
ed623d08
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
192 deletion
+0
-192
notification/ans_standard/publish_test/sub/entry/src/main/js/test/Subscriber.js
...ard/publish_test/sub/entry/src/main/js/test/Subscriber.js
+0
-192
未找到文件。
notification/ans_standard/publish_test/sub/entry/src/main/js/test/Subscriber.js
浏览文件 @
f90bee14
...
...
@@ -217,177 +217,6 @@ describe('ActsAnsSubTestXts', function () {
console
.
debug
(
"
==>disconnectCallbacko code==>
"
);
}
/*
* @tc.number: ActsSubscriber_test_xts_0100
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it
(
'
ActsSubscriber_test_xts_0100
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
==ActsSubscriber_test_xts_0100==begin==>
"
);
await
notify
.
subscribe
(
subInfoa
,
subscribeCallbacka
);
setTimeout
((
async
function
(){
await
notify
.
unsubscribe
(
subInfoa
,
unSubscribeCallbacka
);
}),
1000
);
setTimeout
((
async
function
(){
console
.
debug
(
"
==ActsSubscriber_test_xts_0100==end==>
"
);
done
();
}),
timeout
);
})
/*
* @tc.number: ActsSubscriber_test_xts_0200
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it
(
'
ActsSubscriber_test_xts_0200
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
==ActsSubscriber_test_xts_0200==begin==>
"
);
var
subInfo
=
{
onConnect
:
connectCallbackb
,
onDisconnect
:
disconnectCallbackb
,
}
await
notify
.
subscribe
(
subInfo
,
subscribeCallbackb
);
await
notify
.
subscribe
(
subInfo
,
subscribeCallbackc
);
setTimeout
((
async
function
(){
await
notify
.
unsubscribe
(
subInfo
,
unSubscribeCallbackb
);
}),
1000
);
setTimeout
((
async
function
(){
console
.
debug
(
"
==ActsSubscriber_test_xts_0200==end==>
"
);
done
();
}),
timeout
);
})
/*
* @tc.number: ActsSubscriber_test_xts_0300
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it
(
'
ActsSubscriber_test_xts_0300
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
==ActsSubscriber_test_xts_0300==begin==>
"
);
var
subInfo
=
{
onConnect
:
connectCallbackc
,
onDisconnect
:
disconnectCallbackc
,
}
var
subInfo2
=
{
onConnect
:
connectCallbackd
,
onDisconnect
:
disconnectCallbackd
,
}
await
notify
.
subscribe
(
subInfo
,
subscribeCallbackd
);
await
notify
.
subscribe
(
subInfo2
,
subscribeCallbacke
);
setTimeout
((
async
function
(){
await
notify
.
unsubscribe
(
subInfo
,
unSubscribeCallbackc
);
await
notify
.
unsubscribe
(
subInfo2
,
unSubscribeCallbackd
);
}),
1000
);
setTimeout
((
async
function
(){
console
.
debug
(
"
==ActsSubscriber_test_xts_0300==end==>
"
);
done
();
}),
timeout
);
})
/*
* @tc.number: ActsSubscriber_test_xts_0400
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it
(
'
ActsSubscriber_test_xts_0400
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
==ActsSubscriber_test_xts_0400==begin==>
"
);
var
subInfo
=
{
onConnect
:
connectCallbackf
,
onDisconnect
:
disconnectCallbackf
,
}
var
subInfo2
=
{
onConnect
:
connectCallbackg
,
onDisconnect
:
disconnectCallbackg
,
}
await
notify
.
subscribe
(
subInfo
,
subscribeCallbackg
);
await
notify
.
subscribe
(
subInfo
,
subscribeCallbackh
);
await
notify
.
subscribe
(
subInfo2
,
subscribeCallbacki
);
setTimeout
((
async
function
(){
await
notify
.
unsubscribe
(
subInfo
,
unSubscribeCallbackf
);
await
notify
.
unsubscribe
(
subInfo2
,
unSubscribeCallbackg
);
}),
1000
);
setTimeout
((
async
function
(){
console
.
debug
(
"
==ActsSubscriber_test_xts_0400==end==>
"
);
done
();
}),
timeout
);
})
/*
* @tc.number: ActsSubscriber_test_xts_0500
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it
(
'
ActsSubscriber_test_xts_0500
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
==ActsSubscriber_test_xts_0500==begin==>
"
);
await
notify
.
subscribe
(
subInfob
,
{
bundleNames
:[
"
com.example.actsanspublishtest
"
]},
subscribeCallbackl
);
setTimeout
((
async
function
(){
await
notify
.
unsubscribe
(
subInfob
,
unSubscribeCallbacki
);
}),
1000
);
setTimeout
((
async
function
(){
console
.
debug
(
"
==ActsSubscriber_test_xts_0500==end3==>
"
);
done
();
}),
timeout
);
})
/*
* @tc.number: ActsSubscriber_test_xts_0600
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it
(
'
ActsSubscriber_test_xts_0600
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
==ActsSubscriber_test_xts_0600==begin==>
"
);
await
notify
.
subscribe
(
subInfoc
,
{
bundleNames
:[
"
com.example.actsanspublishtest
"
]}).
then
(
async
()
=>
{
console
.
log
(
"
ActsSubscriber_test_xts_0600=======promise
"
)
setTimeout
((
async
function
(){
await
notify
.
unsubscribe
(
subInfoc
,
unSubscribeCallbackj
)
}),
1000
);
});
setTimeout
((
async
function
(){
console
.
debug
(
"
==ActsSubscriber_test_xts_0600==end==>
"
);
done
();
}),
timeout
);
})
/*
* @tc.number: ActsSubscriber_test_xts_0700
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it
(
'
ActsSubscriber_test_xts_0700
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
==ActsSubscriber_test_xts_0700==begin==>
"
);
await
notify
.
subscribe
(
subInfod
,
{
bundleNames
:[
"
com.example.actsanspublishtest
"
,
"
com.example.actsanspublishtest
"
]},
subscribeCallbackn
);
setTimeout
((
async
function
(){
console
.
debug
(
"
==ActsSubscriber_test_xts_0700==end==>
"
);
await
notify
.
unsubscribe
(
subInfod
,
unSubscribeCallbackl
);
}),
1000
);
setTimeout
((
async
function
(){
console
.
debug
(
"
==ActsSubscriber_test_xts_0700==end==>
"
);
done
();
}),
timeout
);
})
/*
* @tc.number: ActsSubscriber_test_xts_0800
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it
(
'
ActsSubscriber_test_xts_0800
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
==ActsSubscriber_test_xts_0800==begin==>
"
);
await
notify
.
subscribe
(
subInfoe
,
{
bundleNames
:[
"
com.example.actsanspublishtest
"
,
"
com.example.actsanspublishtest
"
]}).
then
(
async
()
=>
{
console
.
log
(
"
ActsSubscriber_test_xts_0800=======promise
"
)
setTimeout
((
async
function
(){
await
notify
.
unsubscribe
(
subInfoe
,
unSubscribeCallbackm
)
}),
1000
);
});
setTimeout
((
async
function
(){
console
.
debug
(
"
==ActsSubscriber_test_xts_0800==end==>
"
);
done
();
}),
timeout
);
})
/*
* @tc.number: ActsSubscriber_test_xts_0900
* @tc.name: subscribe()
...
...
@@ -451,27 +280,6 @@ describe('ActsAnsSubTestXts', function () {
}),
timeout
);
})
/*
* @tc.number: ActsSubscriber_test_xts_1300
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it
(
'
ActsSubscriber_test_xts_1300
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
==ActsSubscriber_test_xts_1300==begin==>
"
);
var
subInfo
=
{
onConnect
:
connectCallbackl
,
onDisconnect
:
disconnectCallbackn
,
}
await
notify
.
subscribe
(
subInfo
,{
bundleNames
:[
"
wrongBudleName
"
]},
subscribeCallbacko
);
setTimeout
((
async
function
(){
await
notify
.
unsubscribe
(
subInfo
,
unSubscribeCallbackn
);
}),
1000
);
setTimeout
((
async
function
(){
console
.
debug
(
"
==ActsSubscriber_test_xts_1300==end==>
"
);
done
();
}),
timeout
);
})
/*
* @tc.number: ActsSubscriber_test_xts_1400
* @tc.name: subscribe()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录