Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
515ce447
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看板
未验证
提交
515ce447
编写于
6月 06, 2022
作者:
O
openharmony_ci
提交者:
Gitee
6月 06, 2022
浏览文件
操作
浏览文件
下载
差异文件
!3442 【XTS】【事件通知子系统】系统接口修改及部分用例修改
Merge pull request !3442 from 付家睿/master
上级
4248707e
b2cab02d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
21 addition
and
10 deletion
+21
-10
notification/ans_standard/publish_test/BUILD.gn
notification/ans_standard/publish_test/BUILD.gn
+3
-2
notification/ans_standard/publish_test/activebtn/activebutton/entry/src/main/js/test/ActiveButton.js
...vebtn/activebutton/entry/src/main/js/test/ActiveButton.js
+2
-2
notification/ans_standard/publish_test/badgedisplayed/BUILD.gn
...ication/ans_standard/publish_test/badgedisplayed/BUILD.gn
+1
-1
notification/ans_standard/publish_test/enablenotification/BUILD.gn
...ion/ans_standard/publish_test/enablenotification/BUILD.gn
+1
-1
notification/ans_standard/publish_test/getactive/actsansgetactive/entry/src/main/js/test/getActive.js
...tive/actsansgetactive/entry/src/main/js/test/getActive.js
+13
-3
notification/ans_standard/publish_test/subscribe/BUILD.gn
notification/ans_standard/publish_test/subscribe/BUILD.gn
+1
-1
未找到文件。
notification/ans_standard/publish_test/BUILD.gn
浏览文件 @
515ce447
...
@@ -31,13 +31,14 @@ group("publish_test") {
...
@@ -31,13 +31,14 @@ group("publish_test") {
"actsansgetallactive:ActsAnsGetAllActiveTestXts",
"actsansgetallactive:ActsAnsGetAllActiveTestXts",
"ansactscancelgroup:ActsAnsCancelGroupTest",
"ansactscancelgroup:ActsAnsCancelGroupTest",
"ansactsremovegroup:ActsAnsRemoveGroupTest",
"ansactsremovegroup:ActsAnsRemoveGroupTest",
"donotdisturbmode:ActsAnsDoNotDisturbTest",
#"donotdisturbmode:ActsAnsDoNotDisturbTest",
#"publish:ActsAnsNotificationPublishXts",
#"publish:ActsAnsNotificationPublishXts",
"publishsound:ActsAnsPublishSoundTest",
"publishsound:ActsAnsPublishSoundTest",
#"publishvibra:ActsAnsPublishVibraTest",
#"publishvibra:ActsAnsPublishVibraTest",
"sub:ActsAnsSubTestXts",
#
"sub:ActsAnsSubTestXts",
"unsubscribe:ActsAnsUnSubscriberTest",
"unsubscribe:ActsAnsUnSubscriberTest",
"wantagent:wantagent",
"wantagent:wantagent",
]
]
...
...
notification/ans_standard/publish_test/activebtn/activebutton/entry/src/main/js/test/ActiveButton.js
浏览文件 @
515ce447
...
@@ -85,7 +85,7 @@ describe('ActsAnsActionButtonTest', function () {
...
@@ -85,7 +85,7 @@ describe('ActsAnsActionButtonTest', function () {
}
}
}
}
],
],
operationType
:
OperationType
.
START_ABILITY
,
operationType
:
WantAgent
.
OperationType
.
START_ABILITY
,
requestCode
:
0
,
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
};
};
...
@@ -170,7 +170,7 @@ describe('ActsAnsActionButtonTest', function () {
...
@@ -170,7 +170,7 @@ describe('ActsAnsActionButtonTest', function () {
}
}
}
}
],
],
operationType
:
OperationType
.
START_ABILITY
,
operationType
:
WantAgent
.
OperationType
.
START_ABILITY
,
requestCode
:
0
,
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
};
};
...
...
notification/ans_standard/publish_test/badgedisplayed/BUILD.gn
浏览文件 @
515ce447
...
@@ -17,7 +17,7 @@ group("badgedisplayed") {
...
@@ -17,7 +17,7 @@ group("badgedisplayed") {
testonly = true
testonly = true
if (is_standard_system) {
if (is_standard_system) {
deps = [
deps = [
"badgedisplay:ActsAnsBadgeDisplayTest",
#
"badgedisplay:ActsAnsBadgeDisplayTest",
"localcandisplay:localcandisplay",
"localcandisplay:localcandisplay",
]
]
}
}
...
...
notification/ans_standard/publish_test/enablenotification/BUILD.gn
浏览文件 @
515ce447
...
@@ -17,7 +17,7 @@ group("enablenotification") {
...
@@ -17,7 +17,7 @@ group("enablenotification") {
testonly = true
testonly = true
if (is_standard_system) {
if (is_standard_system) {
deps = [
deps = [
"enablenotification:ActsAnsEnableNotificationTest",
#
"enablenotification:ActsAnsEnableNotificationTest",
"localnotificationenable:ActsAnsLocalNotificationTest",
"localnotificationenable:ActsAnsLocalNotificationTest",
]
]
}
}
...
...
notification/ans_standard/publish_test/getactive/actsansgetactive/entry/src/main/js/test/getActive.js
浏览文件 @
515ce447
...
@@ -17,6 +17,7 @@ import notify from '@ohos.notification'
...
@@ -17,6 +17,7 @@ import notify from '@ohos.notification'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
var
time
=
300
var
time
=
300
var
ERR_ANS_NON_SYSTEM_APP
=
67108877
var
ERR_ANS_NON_SYSTEM_APP
=
67108877
var
cancalAllFlag
=
false
describe
(
'
ActsAnsActiveTest
'
,
function
()
{
describe
(
'
ActsAnsActiveTest
'
,
function
()
{
console
.
info
(
"
===========ActsAnsActiveTest start====================>
"
);
console
.
info
(
"
===========ActsAnsActiveTest start====================>
"
);
function
getCallback
(
err
,
data
){
function
getCallback
(
err
,
data
){
...
@@ -50,6 +51,11 @@ describe('ActsAnsActiveTest', function () {
...
@@ -50,6 +51,11 @@ describe('ActsAnsActiveTest', function () {
}
}
}
}
function
cancelAllCallback
(
err
)
{
cancalAllFlag
=
true
console
.
info
(
"
===>cancelAllCallback===>
"
);
}
/*
/*
* @tc.number: Ans_GetActive_0100
* @tc.number: Ans_GetActive_0100
* @tc.name: getActiveNotifications(callback: AsyncCallback<Array<NotificationRequest>>): void;
* @tc.name: getActiveNotifications(callback: AsyncCallback<Array<NotificationRequest>>): void;
...
@@ -942,14 +948,17 @@ describe('ActsAnsActiveTest', function () {
...
@@ -942,14 +948,17 @@ describe('ActsAnsActiveTest', function () {
console
.
debug
(
"
===============Ans_GetActive_1900 publish1 end==================>
"
);
console
.
debug
(
"
===============Ans_GetActive_1900 publish1 end==================>
"
);
await
notify
.
publish
(
notificationRequest2
);
await
notify
.
publish
(
notificationRequest2
);
console
.
debug
(
"
===============Ans_GetActive_1900 publish2 end==================>
"
);
console
.
debug
(
"
===============Ans_GetActive_1900 publish2 end==================>
"
);
await
notify
.
cancelAll
();
await
notify
.
cancelAll
(
cancelAllCallback
);
expect
(
cancalAllFlag
).
assertEqual
(
false
);
console
.
debug
(
"
===============Ans_GetActive_1900 cancel end==================>
"
);
console
.
debug
(
"
===============Ans_GetActive_1900 cancel end==================>
"
);
notify
.
getActiveNotificationCount
(
getCountCallbackFive
);
await
notify
.
getActiveNotificationCount
(
getCountCallbackFive
);
console
.
debug
(
"
===============Ans_GetActive_1900 getActiveNotifications end==================>
"
);
console
.
debug
(
"
===============Ans_GetActive_1900 getActiveNotifications end==================>
"
);
setTimeout
(
function
(){
setTimeout
(
function
(){
console
.
debug
(
"
===============Ans_GetActive_1900 done==================>
"
);
console
.
debug
(
"
===============Ans_GetActive_1900 done==================>
"
);
done
();
done
();
},
time
);
},
time
);
})
})
/*
/*
...
@@ -989,7 +998,8 @@ describe('ActsAnsActiveTest', function () {
...
@@ -989,7 +998,8 @@ describe('ActsAnsActiveTest', function () {
console
.
debug
(
"
===============Ans_GetActive_2000 publish1 end==================>
"
);
console
.
debug
(
"
===============Ans_GetActive_2000 publish1 end==================>
"
);
await
notify
.
publish
(
notificationRequest2
);
await
notify
.
publish
(
notificationRequest2
);
console
.
debug
(
"
===============Ans_GetActive_2000 publish2 end==================>
"
);
console
.
debug
(
"
===============Ans_GetActive_2000 publish2 end==================>
"
);
await
notify
.
cancelAll
();
await
notify
.
cancelAll
(
cancelAllCallback
);
expect
(
cancalAllFlag
).
assertEqual
(
true
);
console
.
debug
(
"
===============Ans_GetActive_2000 cancelAll end==================>
"
);
console
.
debug
(
"
===============Ans_GetActive_2000 cancelAll end==================>
"
);
var
promiseCount
=
await
notify
.
getActiveNotificationCount
();
var
promiseCount
=
await
notify
.
getActiveNotificationCount
();
expect
(
promiseCount
).
assertEqual
(
0
);
expect
(
promiseCount
).
assertEqual
(
0
);
...
...
notification/ans_standard/publish_test/subscribe/BUILD.gn
浏览文件 @
515ce447
...
@@ -18,7 +18,7 @@ group("subscribe") {
...
@@ -18,7 +18,7 @@ group("subscribe") {
if (is_standard_system) {
if (is_standard_system) {
deps = [
deps = [
"publish:ActsAnsPublishTest",
"publish:ActsAnsPublishTest",
"subscribe:ActsAnsSubscriberTest",
#
"subscribe:ActsAnsSubscriberTest",
]
]
}
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录