Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
075f1601
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看板
提交
075f1601
编写于
12月 16, 2021
作者:
O
openharmony_ci
提交者:
Gitee
12月 16, 2021
浏览文件
操作
浏览文件
下载
差异文件
!1377 Ans xts failed fix
Merge pull request !1377 from blackleon/master_1215_01
上级
449803ee
24216245
变更
3
展开全部
显示空白变更内容
内联
并排
Showing
3 changed file
with
108 addition
and
108 deletion
+108
-108
notification/ans_standard/publish_test/donotdisturbmode/entry/src/main/js/test/doNotDisturbTest.js
...notdisturbmode/entry/src/main/js/test/doNotDisturbTest.js
+98
-98
notification/ans_standard/publish_test/getactive/actsansgetactive/entry/src/main/js/test/getActive.js
...tive/actsansgetactive/entry/src/main/js/test/getActive.js
+2
-2
notification/ans_standard/publish_test/unsubscribe/entry/src/main/js/test/UnSubscriber.js
...h_test/unsubscribe/entry/src/main/js/test/UnSubscriber.js
+8
-8
未找到文件。
notification/ans_standard/publish_test/donotdisturbmode/entry/src/main/js/test/doNotDisturbTest.js
浏览文件 @
075f1601
此差异已折叠。
点击以展开。
notification/ans_standard/publish_test/getactive/actsansgetactive/entry/src/main/js/test/getActive.js
浏览文件 @
075f1601
...
...
@@ -1003,7 +1003,7 @@ describe('ActsAnsActiveTest', function () {
function
getAllCallbackNine
(
err
,
data
){
console
.
debug
(
"
===========Ans_GetAllActive_0900 getAllCallbackNine data.length============>
"
+
data
.
length
);
console
.
debug
(
"
===========Ans_GetAllActive_0900 getAllCallbackNine err.code============>
"
+
err
.
code
);
expect
(
err
.
code
).
assertEqual
(
ERR_ANS_NON_SYSTEM_APP
);
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
}
/*
...
...
@@ -1063,7 +1063,7 @@ describe('ActsAnsActiveTest', function () {
await
notify
.
getAllActiveNotifications
().
then
(()
=>
{
console
.
debug
(
"
=======Ans_GetAllActive_1000 then========>
"
);
}).
catch
((
err
)
=>
{
expect
(
err
.
code
).
assertEqual
(
ERR_ANS_NON_SYSTEM_APP
);
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
console
.
debug
(
"
=======Ans_GetAllActive_1000 err==========>
"
+
err
.
code
);
});
setTimeout
(
function
(){
...
...
notification/ans_standard/publish_test/unsubscribe/entry/src/main/js/test/UnSubscriber.js
浏览文件 @
075f1601
...
...
@@ -35,7 +35,7 @@ describe('ActsAnsUnSubscriberTest', function () {
onConnect
:
onConnecteOne
,
onDisconnect
:
onDisconnectOne
}
notify
.
subscribe
(
subscriber
);
await
notify
.
subscribe
(
subscriber
);
console
.
info
(
"
===========Ans_UnSubscriber_0100 subscribe=============>
"
);
notify
.
unsubscribe
(
subscriber
,
(
err
)
=>
{
console
.
debug
(
"
===========Ans_UnSubscriber_0100 unsubscribe err.code=================>
"
+
err
.
code
);
...
...
@@ -65,7 +65,7 @@ describe('ActsAnsUnSubscriberTest', function () {
onConnect
:
onConnecteTwo
,
onDisconnect
:
onDisconnectTwo
}
notify
.
subscribe
(
subscriber
);
await
notify
.
subscribe
(
subscriber
);
console
.
info
(
"
===========Ans_UnSubscriber_0200 subscribe=============>
"
);
notify
.
unsubscribe
(
subscriber
).
then
(()
=>
{
console
.
debug
(
"
=======Ans_UnSubscriber_0200 subscribe then==========>
"
);
...
...
@@ -179,7 +179,7 @@ describe('ActsAnsUnSubscriberTest', function () {
onConnect
:
onConnecteTest
,
onDisconnect
:
onDisconnectTest
}
notify
.
subscribe
(
subscriber
);
await
notify
.
subscribe
(
subscriber
);
console
.
info
(
"
===========Ans_UnSubscriber_0500 subscribe=============>
"
);
notify
.
unsubscribe
(
subscriberTest
,(
err
)
=>
{
console
.
debug
(
"
Ans_UnSubscriber_0500 unsubscribe err.code=================>
"
+
err
.
code
);
...
...
@@ -223,7 +223,7 @@ describe('ActsAnsUnSubscriberTest', function () {
onConnect
:
onConnecteTestTwo
,
onDisconnect
:
onDisconnectTestTwo
}
notify
.
subscribe
(
subscriber
);
await
notify
.
subscribe
(
subscriber
);
console
.
info
(
"
===========Ans_UnSubscriber_0600 subscribe=============>
"
);
notify
.
unsubscribe
(
subscriberTest
).
then
().
catch
((
err
)
=>
{
console
.
debug
(
"
=======Ans_UnSubscriber_0600 unsubscribe catch err=================>
"
+
err
.
code
);
...
...
@@ -259,7 +259,7 @@ describe('ActsAnsUnSubscriberTest', function () {
onConnect
:
onConnecteSeven
,
onDisconnect
:
onDisconnectSeven
}
notify
.
subscribe
(
subscriber
);
await
notify
.
subscribe
(
subscriber
);
console
.
info
(
"
===========Ans_UnSubscriber_0700 subscribe=============>
"
);
notify
.
unsubscribe
(
subscriber
,
(
err
)
=>
{
console
.
debug
(
"
Ans_UnSubscriber_0700 unsubscribe first err.code=================>
"
+
err
.
code
);
...
...
@@ -299,7 +299,7 @@ describe('ActsAnsUnSubscriberTest', function () {
onConnect
:
onConnecteEight
,
onDisconnect
:
onDisconnectEight
}
notify
.
subscribe
(
subscriber
);
await
notify
.
subscribe
(
subscriber
);
console
.
info
(
"
===========Ans_UnSubscriber_0800 subscribe=============>
"
);
notify
.
unsubscribe
(
subscriber
).
then
((
err
)
=>
{
console
.
debug
(
"
=======Ans_UnSubscriber_0800 subscribe first then err=================>
"
+
err
.
code
);
...
...
@@ -394,7 +394,7 @@ describe('ActsAnsUnSubscriberTest', function () {
*/
it
(
'
Ans_UnSubscriber_1100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
===========Ans_UnSubscriber_1100 start=============>
"
);
notify
.
subscribe
({
await
notify
.
subscribe
({
onConnect
:
onConnecteEleven
,
onDisconnect
:
onDisconnectEleven
});
...
...
@@ -429,7 +429,7 @@ describe('ActsAnsUnSubscriberTest', function () {
*/
it
(
'
Ans_UnSubscriber_1200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
===========Ans_UnSubscriber_1200 start=============>
"
);
notify
.
subscribe
({
await
notify
.
subscribe
({
onConnect
:
onConnecteTwelve
,
onDisconnect
:
onConnecteTwelve
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录