Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
626cb5ad
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
12 个月 前同步成功
通知
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
626cb5ad
编写于
6月 07, 2022
作者:
F
fjr
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
系统接口修改及部分用例修改r
Signed-off-by:
N
fjr
<
fujiarui6@huawei.com
>
上级
70ca5839
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
22 addition
and
10 deletion
+22
-10
notification/ans_standard/publish_test/BUILD.gn
notification/ans_standard/publish_test/BUILD.gn
+4
-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
浏览文件 @
626cb5ad
...
...
@@ -31,12 +31,14 @@ group("publish_test") {
"actsansgetallactive:ActsAnsGetAllActiveTestXts",
"ansactscancelgroup:ActsAnsCancelGroupTest",
"ansactsremovegroup:ActsAnsRemoveGroupTest",
"donotdisturbmode:ActsAnsDoNotDisturbTest",
#"donotdisturbmode:ActsAnsDoNotDisturbTest",
#"publish:ActsAnsNotificationPublishXts",
"publishsound:ActsAnsPublishSoundTest",
#"publishvibra:ActsAnsPublishVibraTest",
"sub:ActsAnsSubTestXts",
#
"sub:ActsAnsSubTestXts",
"unsubscribe:ActsAnsUnSubscriberTest",
"wantagent:wantagent",
]
...
...
notification/ans_standard/publish_test/activebtn/activebutton/entry/src/main/js/test/ActiveButton.js
浏览文件 @
626cb5ad
...
...
@@ -85,7 +85,7 @@ describe('ActsAnsActionButtonTest', function () {
}
}
],
operationType
:
OperationType
.
START_ABILITY
,
operationType
:
WantAgent
.
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
};
...
...
@@ -170,7 +170,7 @@ describe('ActsAnsActionButtonTest', function () {
}
}
],
operationType
:
OperationType
.
START_ABILITY
,
operationType
:
WantAgent
.
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
};
...
...
notification/ans_standard/publish_test/badgedisplayed/BUILD.gn
浏览文件 @
626cb5ad
...
...
@@ -17,7 +17,7 @@ group("badgedisplayed") {
testonly = true
if (is_standard_system) {
deps = [
"badgedisplay:ActsAnsBadgeDisplayTest",
#
"badgedisplay:ActsAnsBadgeDisplayTest",
"localcandisplay:localcandisplay",
]
}
...
...
notification/ans_standard/publish_test/enablenotification/BUILD.gn
浏览文件 @
626cb5ad
...
...
@@ -17,7 +17,7 @@ group("enablenotification") {
testonly = true
if (is_standard_system) {
deps = [
"enablenotification:ActsAnsEnableNotificationTest",
#
"enablenotification:ActsAnsEnableNotificationTest",
"localnotificationenable:ActsAnsLocalNotificationTest",
]
}
...
...
notification/ans_standard/publish_test/getactive/actsansgetactive/entry/src/main/js/test/getActive.js
浏览文件 @
626cb5ad
...
...
@@ -17,6 +17,7 @@ import notify from '@ohos.notification'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
var
time
=
300
var
ERR_ANS_NON_SYSTEM_APP
=
67108877
var
cancalAllFlag
=
false
describe
(
'
ActsAnsActiveTest
'
,
function
()
{
console
.
info
(
"
===========ActsAnsActiveTest start====================>
"
);
function
getCallback
(
err
,
data
){
...
...
@@ -50,6 +51,11 @@ describe('ActsAnsActiveTest', function () {
}
}
function
cancelAllCallback
(
err
)
{
cancalAllFlag
=
true
console
.
info
(
"
===>cancelAllCallback===>
"
);
}
/*
* @tc.number: Ans_GetActive_0100
* @tc.name: getActiveNotifications(callback: AsyncCallback<Array<NotificationRequest>>): void;
...
...
@@ -942,14 +948,17 @@ describe('ActsAnsActiveTest', function () {
console
.
debug
(
"
===============Ans_GetActive_1900 publish1 end==================>
"
);
await
notify
.
publish
(
notificationRequest2
);
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==================>
"
);
notify
.
getActiveNotificationCount
(
getCountCallbackFive
);
await
notify
.
getActiveNotificationCount
(
getCountCallbackFive
);
console
.
debug
(
"
===============Ans_GetActive_1900 getActiveNotifications end==================>
"
);
setTimeout
(
function
(){
console
.
debug
(
"
===============Ans_GetActive_1900 done==================>
"
);
done
();
},
time
);
})
/*
...
...
@@ -989,7 +998,8 @@ describe('ActsAnsActiveTest', function () {
console
.
debug
(
"
===============Ans_GetActive_2000 publish1 end==================>
"
);
await
notify
.
publish
(
notificationRequest2
);
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==================>
"
);
var
promiseCount
=
await
notify
.
getActiveNotificationCount
();
expect
(
promiseCount
).
assertEqual
(
0
);
...
...
notification/ans_standard/publish_test/subscribe/BUILD.gn
浏览文件 @
626cb5ad
...
...
@@ -18,7 +18,7 @@ group("subscribe") {
if (is_standard_system) {
deps = [
"publish:ActsAnsPublishTest",
"subscribe:ActsAnsSubscriberTest",
#
"subscribe:ActsAnsSubscriberTest",
]
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录