Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
58475793
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看板
提交
58475793
编写于
7月 14, 2022
作者:
F
fjr
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
4fail
Signed-off-by:
N
fjr
<
fujiarui6@huawei.com
>
上级
0750b7c1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
36 addition
and
35 deletion
+36
-35
notification/ans_standard/actsansslottest/actsansaddslotsystem/entry/src/main/js/test/ExampleJsunit.test.js
...ddslotsystem/entry/src/main/js/test/ExampleJsunit.test.js
+6
-5
notification/ans_standard/publish_test/publishcontentype/publishtype/Test.json
...dard/publish_test/publishcontentype/publishtype/Test.json
+1
-1
notification/ans_standard/publish_test/publishcontentype/publishtype/entry/src/main/js/test/ExampleJsunit.test.js
.../publishtype/entry/src/main/js/test/ExampleJsunit.test.js
+27
-27
notification/ans_standard/publish_test/subscribe/subscribe/entry/src/main/js/test/Subscriber.js
.../subscribe/subscribe/entry/src/main/js/test/Subscriber.js
+2
-2
未找到文件。
notification/ans_standard/actsansslottest/actsansaddslotsystem/entry/src/main/js/test/ExampleJsunit.test.js
浏览文件 @
58475793
...
@@ -181,7 +181,7 @@ describe('ActsAnsAddSlotSystem', function () {
...
@@ -181,7 +181,7 @@ describe('ActsAnsAddSlotSystem', function () {
function
getSlotCallback
(
err
,
data
)
{
function
getSlotCallback
(
err
,
data
)
{
console
.
debug
(
"
====>ActsAnsAddSlotSystem_0400 enter====>
"
);
console
.
debug
(
"
====>ActsAnsAddSlotSystem_0400 enter====>
"
);
console
.
debug
(
"
====>getSlot 0400 err:
"
+
JSON
.
stringify
(
err
));
console
.
debug
(
"
====>getSlot 0400 err:
"
+
JSON
.
stringify
(
err
));
//
expect(err.code).assertEqual(0);
expect
(
err
.
code
).
assertEqual
(
0
);
console
.
debug
(
"
====>getSlot 0400 data:
"
+
JSON
.
stringify
(
data
));
console
.
debug
(
"
====>getSlot 0400 data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
.
type
).
assertEqual
(
notification
.
SlotType
.
OTHER_TYPES
);
expect
(
data
.
type
).
assertEqual
(
notification
.
SlotType
.
OTHER_TYPES
);
expect
(
data
.
level
).
assertEqual
(
notification
.
SlotLevel
.
LEVEL_DEFAULT
);
expect
(
data
.
level
).
assertEqual
(
notification
.
SlotLevel
.
LEVEL_DEFAULT
);
...
@@ -194,7 +194,7 @@ describe('ActsAnsAddSlotSystem', function () {
...
@@ -194,7 +194,7 @@ describe('ActsAnsAddSlotSystem', function () {
expect
(
data
.
lightColor
).
assertEqual
(
4
);
expect
(
data
.
lightColor
).
assertEqual
(
4
);
notification
.
removeSlot
(
notification
.
SlotType
.
OTHER_TYPES
,
(
err
)
=>
{
notification
.
removeSlot
(
notification
.
SlotType
.
OTHER_TYPES
,
(
err
)
=>
{
console
.
debug
(
"
====>removeSlot ActsAnsAddSlotSystem_0400 err====>
"
+
JSON
.
stringify
(
err
));
console
.
debug
(
"
====>removeSlot ActsAnsAddSlotSystem_0400 err====>
"
+
JSON
.
stringify
(
err
));
//
expect(err.code).assertEqual(0);
expect
(
err
.
code
).
assertEqual
(
0
);
done
();
done
();
})
})
}
}
...
@@ -213,10 +213,11 @@ describe('ActsAnsAddSlotSystem', function () {
...
@@ -213,10 +213,11 @@ describe('ActsAnsAddSlotSystem', function () {
},
},
(
err
)
=>
{
(
err
)
=>
{
console
.
debug
(
"
====>addSlot OTHER_TYPES callback====>
"
);
console
.
debug
(
"
====>addSlot OTHER_TYPES callback====>
"
);
// expect(err.code).assertEqual(0);
expect
(
err
.
code
).
assertEqual
(
0
);
notification
.
getSlot
(
notification
.
SlotType
.
OTHER_TYPES
,
getSlotCallback
);
})
})
console
.
debug
(
"
====>getSlot SlotType.OTHER_TYPES====>
"
);
console
.
debug
(
"
====>getSlot SlotType.OTHER_TYPES====>
"
);
notification
.
getSlot
(
notification
.
SlotType
.
OTHER_TYPES
,
getSlotCallback
);
setTimeout
(
function
(){
setTimeout
(
function
(){
console
.
debug
(
"
====>time out ActsAnsAddSlotSystem_0400====>
"
);
console
.
debug
(
"
====>time out ActsAnsAddSlotSystem_0400====>
"
);
},
TIMEOUT
);
},
TIMEOUT
);
...
@@ -404,7 +405,7 @@ describe('ActsAnsAddSlotSystem', function () {
...
@@ -404,7 +405,7 @@ describe('ActsAnsAddSlotSystem', function () {
it
(
'
ActsAnsAddSlotSystem_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
ActsAnsAddSlotSystem_0900
'
,
0
,
async
function
(
done
)
{
console
.
debug
(
"
====>ActsAnsAddSlotSystem_0900 start====>
"
);
console
.
debug
(
"
====>ActsAnsAddSlotSystem_0900 start====>
"
);
console
.
debug
(
"
====>addSlot OTHER_TYPES====>
"
);
console
.
debug
(
"
====>addSlot OTHER_TYPES====>
"
);
notification
.
addSlot
(
await
notification
.
addSlot
(
{
{
type
:
notification
.
SlotType
.
OTHER_TYPES
,
type
:
notification
.
SlotType
.
OTHER_TYPES
,
level
:
notification
.
SlotLevel
.
LEVEL_DEFAULT
,
level
:
notification
.
SlotLevel
.
LEVEL_DEFAULT
,
...
...
notification/ans_standard/publish_test/publishcontentype/publishtype/Test.json
浏览文件 @
58475793
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
"kits"
:
[
"kits"
:
[
{
{
"test-file-name"
:
[
"test-file-name"
:
[
"ActsAnsNotificationTest"
"ActsAnsNotificationTest
.hap
"
],
],
"type"
:
"AppInstallKit"
,
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
"cleanup-apps"
:
true
...
...
notification/ans_standard/publish_test/publishcontentype/publishtype/entry/src/main/js/test/ExampleJsunit.test.js
浏览文件 @
58475793
...
@@ -279,7 +279,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -279,7 +279,7 @@ describe('ActsAnsNotificationTest', function () {
var
notificationInfo
=
{
var
notificationInfo
=
{
id
:
2
,
id
:
2
,
content
:
{
content
:
{
//
contentType: notification.ContentType.NOTIFICATION_CONTENT_MULTILINE,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_MULTILINE
,
multiLine
:
{
multiLine
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
...
@@ -373,7 +373,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -373,7 +373,7 @@ describe('ActsAnsNotificationTest', function () {
var
promise
=
notification
.
publish
({
var
promise
=
notification
.
publish
({
id
:
5
,
id
:
5
,
content
:
{
content
:
{
//
contentType: notification.ContentType.NOTIFICATION_CONTENT_MULTILINE,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_MULTILINE
,
multiLine
:
{
multiLine
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
...
@@ -384,7 +384,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -384,7 +384,7 @@ describe('ActsAnsNotificationTest', function () {
},
},
}
}
})
})
expect
(
promise
).
assertEqual
(
undefined
)
expect
(
typeof
(
promise
)).
assertEqual
(
"
object
"
)
done
();
done
();
setTimeout
(
function
(){
setTimeout
(
function
(){
console
.
debug
(
"
====>time out ACTS_PublishMULTILINEContent_0500====>
"
);
console
.
debug
(
"
====>time out ACTS_PublishMULTILINEContent_0500====>
"
);
...
@@ -400,18 +400,18 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -400,18 +400,18 @@ describe('ActsAnsNotificationTest', function () {
var
promise
=
notification
.
publish
({
var
promise
=
notification
.
publish
({
id
:
6
,
id
:
6
,
content
:
{
content
:
{
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_
PICTUR
E
,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_
MULTILIN
E
,
multiLine
:
{
multiLine
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
additionalText
:
"
test_additionalText
"
,
additionalText
:
"
test_additionalText
"
,
briefText
:
"
briefText
"
,
briefText
:
"
briefText
"
,
longTitle
:
"
longTitle
"
,
longTitle
:
"
longTitle
"
,
lines
:
[
"
thrive
"
,
"
democracy
"
,
"
civilization
"
,
"
harmonious
"
]
lines
:
[
"
thrive
"
,
"
civilization
"
,
"
harmonious
"
]
},
},
}
}
})
})
expect
(
promise
).
assertEqual
(
undefined
)
expect
(
typeof
(
promise
)).
assertEqual
(
"
object
"
)
done
();
done
();
setTimeout
(
function
(){
setTimeout
(
function
(){
console
.
debug
(
"
====>time out ACTS_PublishMULTILINEContent_0600====>
"
);
console
.
debug
(
"
====>time out ACTS_PublishMULTILINEContent_0600====>
"
);
...
@@ -470,7 +470,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -470,7 +470,7 @@ describe('ActsAnsNotificationTest', function () {
await
notification
.
publish
({
await
notification
.
publish
({
id
:
8
,
id
:
8
,
content
:
{
content
:
{
//
contentType: notification.ContentType.NOTIFICATION_CONTENT_LONG_TEXT,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_LONG_TEXT
,
longText
:
{
longText
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
...
@@ -490,13 +490,13 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -490,13 +490,13 @@ describe('ActsAnsNotificationTest', function () {
/*
/*
* @tc.number: ACTS_PublishLONGContent_0300
* @tc.number: ACTS_PublishLONGContent_0300
* @tc.name: publish()
* @tc.name: publish()
* @tc.desc: verify the function of publish(contentType:NOTIFICATION_CONTENT_
MEDIA
)
* @tc.desc: verify the function of publish(contentType:NOTIFICATION_CONTENT_
LONG_TEXT
)
*/
*/
it
(
'
ACTS_PublishLONGContent_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
ACTS_PublishLONGContent_0300
'
,
0
,
async
function
(
done
)
{
await
notification
.
publish
({
await
notification
.
publish
({
id
:
9
,
id
:
9
,
content
:
{
content
:
{
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_
MEDIA
,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_
LONG_TEXT
,
longText
:
{
longText
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
...
@@ -566,7 +566,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -566,7 +566,7 @@ describe('ActsAnsNotificationTest', function () {
var
promise
=
await
notification
.
publish
({
var
promise
=
await
notification
.
publish
({
id
:
11
,
id
:
11
,
content
:
{
content
:
{
//
contentType: notification.ContentType.NOTIFICATION_CONTENT_LONG_TEXT,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_LONG_TEXT
,
longText
:
{
longText
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
...
@@ -576,30 +576,30 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -576,30 +576,30 @@ describe('ActsAnsNotificationTest', function () {
expandedTitle
:
"
expandedTitle
"
expandedTitle
:
"
expandedTitle
"
}}
}}
})
})
expect
(
promise
).
assertEqual
(
undefined
)
expect
(
typeof
(
promise
)).
assertEqual
(
"
object
"
)
done
();
done
();
})
})
/*
/*
* @tc.number: ACTS_PublishLONGContent_0600
* @tc.number: ACTS_PublishLONGContent_0600
* @tc.name: publish()
* @tc.name: publish()
* @tc.desc: verify the function of publish(contentType:NOTIFICATION_CONTENT_
MEDIA
) promise
* @tc.desc: verify the function of publish(contentType:NOTIFICATION_CONTENT_
LONG_TEXT
) promise
*/
*/
it
(
'
ACTS_PublishLONGContent_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
ACTS_PublishLONGContent_0600
'
,
0
,
async
function
(
done
)
{
var
promise
=
notification
.
publish
({
var
promise
=
notification
.
publish
({
id
:
12
,
id
:
12
,
content
:
{
content
:
{
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_
MEDIA
,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_
LONG_TEXT
,
longText
:
{
longText
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
additionalText
:
"
test_additionalText
"
,
additionalText
:
"
test_additionalText
"
,
longText
:
"
longText
"
,
longText
:
"
longText
"
,
briefText
:
"
briefText
"
,
briefText
:
"
briefText
"
,
expandedTitle
:
"
expandedTitle
"
expandedTitle
:
"
expandedTitle
ing
"
}}
}}
})
})
expect
(
promise
).
assertEqual
(
undefined
)
expect
(
typeof
(
promise
)).
assertEqual
(
"
object
"
)
done
();
done
();
})
})
...
@@ -657,7 +657,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -657,7 +657,7 @@ describe('ActsAnsNotificationTest', function () {
await
notification
.
publish
({
await
notification
.
publish
({
id
:
14
,
id
:
14
,
content
:
{
content
:
{
//
contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_BASIC_TEXT
,
normal
:
{
normal
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
...
@@ -816,7 +816,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -816,7 +816,7 @@ describe('ActsAnsNotificationTest', function () {
var
promise
=
notification
.
publish
({
var
promise
=
notification
.
publish
({
id
:
18
,
id
:
18
,
content
:
{
content
:
{
//
contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_BASIC_TEXT
,
normal
:
{
normal
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
...
@@ -825,7 +825,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -825,7 +825,7 @@ describe('ActsAnsNotificationTest', function () {
},
},
slotType
:
notification
.
SlotType
.
CONTENT_INFORMATION
slotType
:
notification
.
SlotType
.
CONTENT_INFORMATION
})
})
expect
(
promise
).
assertEqual
(
undefined
)
expect
(
typeof
(
promise
)).
assertEqual
(
"
object
"
)
done
();
done
();
setTimeout
(
function
(){
setTimeout
(
function
(){
console
.
debug
(
"
====>time out ACTS_Publish_SlotTypeContent_0600====>
"
);
console
.
debug
(
"
====>time out ACTS_Publish_SlotTypeContent_0600====>
"
);
...
@@ -974,7 +974,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -974,7 +974,7 @@ describe('ActsAnsNotificationTest', function () {
await
notification
.
publish
({
await
notification
.
publish
({
id
:
22
,
id
:
22
,
content
:
{
content
:
{
//
contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_BASIC_TEXT
,
normal
:
{
normal
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
...
@@ -1133,7 +1133,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -1133,7 +1133,7 @@ describe('ActsAnsNotificationTest', function () {
var
promise
=
notification
.
publish
({
var
promise
=
notification
.
publish
({
id
:
26
,
id
:
26
,
content
:
{
content
:
{
//
contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_BASIC_TEXT
,
normal
:
{
normal
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
...
@@ -1142,7 +1142,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -1142,7 +1142,7 @@ describe('ActsAnsNotificationTest', function () {
slotType
:
notification
.
SlotType
.
OTHER_TYPES
slotType
:
notification
.
SlotType
.
OTHER_TYPES
}
}
})
})
expect
(
promise
).
assertEqual
(
undefined
)
expect
(
typeof
(
promise
)).
assertEqual
(
"
object
"
)
done
();
done
();
setTimeout
(
function
(){
setTimeout
(
function
(){
console
.
debug
(
"
====>time out ACTS_PublishSlotTypeOther_0600====>
"
);
console
.
debug
(
"
====>time out ACTS_PublishSlotTypeOther_0600====>
"
);
...
@@ -1291,7 +1291,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -1291,7 +1291,7 @@ describe('ActsAnsNotificationTest', function () {
await
notification
.
publish
({
await
notification
.
publish
({
id
:
30
,
id
:
30
,
content
:
{
content
:
{
//
contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_BASIC_TEXT
,
normal
:
{
normal
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
...
@@ -1450,7 +1450,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -1450,7 +1450,7 @@ describe('ActsAnsNotificationTest', function () {
var
promise
=
notification
.
publish
({
var
promise
=
notification
.
publish
({
id
:
34
,
id
:
34
,
content
:
{
content
:
{
//
contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_BASIC_TEXT
,
normal
:
{
normal
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
...
@@ -1459,7 +1459,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -1459,7 +1459,7 @@ describe('ActsAnsNotificationTest', function () {
},
},
slotType
:
notification
.
SlotType
.
SERVICE_INFORMATION
slotType
:
notification
.
SlotType
.
SERVICE_INFORMATION
})
})
expect
(
promise
).
assertEqual
(
undefined
)
expect
(
typeof
(
promise
)).
assertEqual
(
"
object
"
)
done
();
done
();
setTimeout
(
function
(){
setTimeout
(
function
(){
console
.
debug
(
"
====>time out ACTS_PublishSlotTypeService_0600====>
"
);
console
.
debug
(
"
====>time out ACTS_PublishSlotTypeService_0600====>
"
);
...
@@ -1608,7 +1608,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -1608,7 +1608,7 @@ describe('ActsAnsNotificationTest', function () {
await
notification
.
publish
({
await
notification
.
publish
({
id
:
38
,
id
:
38
,
content
:
{
content
:
{
//
contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_BASIC_TEXT
,
normal
:
{
normal
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
...
@@ -1767,7 +1767,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -1767,7 +1767,7 @@ describe('ActsAnsNotificationTest', function () {
var
promise
=
notification
.
publish
({
var
promise
=
notification
.
publish
({
id
:
42
,
id
:
42
,
content
:
{
content
:
{
//
contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
contentType
:
notification
.
ContentType
.
NOTIFICATION_CONTENT_BASIC_TEXT
,
normal
:
{
normal
:
{
title
:
"
test_title
"
,
title
:
"
test_title
"
,
text
:
"
test_text
"
,
text
:
"
test_text
"
,
...
@@ -1776,7 +1776,7 @@ describe('ActsAnsNotificationTest', function () {
...
@@ -1776,7 +1776,7 @@ describe('ActsAnsNotificationTest', function () {
slotType
:
notification
.
SlotType
.
SOCIAL_COMMUNICATION
slotType
:
notification
.
SlotType
.
SOCIAL_COMMUNICATION
}
}
})
})
expect
(
promise
).
assertEqual
(
undefined
)
expect
(
typeof
(
promise
)).
assertEqual
(
"
object
"
)
done
();
done
();
setTimeout
(
function
(){
setTimeout
(
function
(){
console
.
debug
(
"
====>time out ACTS_PublishSlotTypeSocial_0600====>
"
);
console
.
debug
(
"
====>time out ACTS_PublishSlotTypeSocial_0600====>
"
);
...
...
notification/ans_standard/publish_test/subscribe/subscribe/entry/src/main/js/test/Subscriber.js
浏览文件 @
58475793
...
@@ -364,7 +364,7 @@ describe('ActsAnsSubscriberTest', function () {
...
@@ -364,7 +364,7 @@ describe('ActsAnsSubscriberTest', function () {
})
})
/*
/*
* @tc.number: ActsSubscriber_test_0
7
00
* @tc.number: ActsSubscriber_test_0
6
00
* @tc.name: subscribe()
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
* @tc.desc: verify the function of subscribe
*/
*/
...
@@ -480,7 +480,7 @@ describe('ActsAnsSubscriberTest', function () {
...
@@ -480,7 +480,7 @@ describe('ActsAnsSubscriberTest', function () {
onConnect
:
connectCallbacko
,
onConnect
:
connectCallbacko
,
onDisconnect
:
disconnectCallbacko
,
onDisconnect
:
disconnectCallbacko
,
}
}
await
notify
.
subscribe
(
subInfo
,{
bundleNames
:[]},
subscribeCallbackp
);
await
notify
.
subscribe
(
subInfo
,{
bundleNames
:[
""
]},
subscribeCallbackp
);
await
notify
.
unsubscribe
(
subInfo
,
unSubscribeCallbacko
);
await
notify
.
unsubscribe
(
subInfo
,
unSubscribeCallbacko
);
console
.
debug
(
"
==ActsSubscriber_test_1400==end==>
"
);
console
.
debug
(
"
==ActsSubscriber_test_1400==end==>
"
);
done
();
done
();
...
...
鸿蒙社区
@harmonycommunity
mentioned in commit
931a35fc
·
7月 15, 2022
mentioned in commit
931a35fc
mentioned in commit 931a35fcf54711c35e4d66e173cad2a36f13d70b
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录