Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a38f7dfc
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看板
提交
a38f7dfc
编写于
3月 21, 2022
作者:
付
付家睿
提交者:
fujiarui
3月 21, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed
e4688caf
from
https://gitee.com/fwx1083616/xts_acts/pulls/2690
fail用例修改 Signed-off-by:
N
付家睿
<
fujiarui6@huawei.com
>
上级
97caefc9
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
36 addition
and
11 deletion
+36
-11
notification/ans_standard/publish_test/actsansdistributedtest/entry/src/main/js/test/actsansdistributedtest.js
...utedtest/entry/src/main/js/test/actsansdistributedtest.js
+15
-6
notification/ans_standard/publish_test/getwantagentinfo/entry/src/main/js/test/WantAgent.test.js
...getwantagentinfo/entry/src/main/js/test/WantAgent.test.js
+13
-5
notification/ans_standard/publish_test/publish/entry/src/main/config.json
..._standard/publish_test/publish/entry/src/main/config.json
+3
-0
notification/ans_standard/publish_test/publish/signature/openharmony_sx.p7b
...tandard/publish_test/publish/signature/openharmony_sx.p7b
+0
-0
notification/ans_standard/publish_test/sub/entry/src/main/config.json
.../ans_standard/publish_test/sub/entry/src/main/config.json
+5
-0
notification/ans_standard/publish_test/sub/signature/openharmony_sx.p7b
...ns_standard/publish_test/sub/signature/openharmony_sx.p7b
+0
-0
未找到文件。
notification/ans_standard/publish_test/actsansdistributedtest/entry/src/main/js/test/actsansdistributedtest.js
浏览文件 @
a38f7dfc
...
...
@@ -61,10 +61,13 @@ describe('ActsAnsDistributeTest', function () {
it
(
'
ActsDistribute_test_0300
'
,
0
,
async
function
(
done
)
{
await
notify
.
getDeviceRemindType
((
err
,
data
)
=>
{
console
.
debug
(
"
===>ActsDistribute_test_0300===>
"
+
JSON
.
stringify
(
data
))
expect
(
data
!=
notify
.
DeviceRemindType
.
IDLE_DONOT_REMIND
).
assertEqual
(
true
);
expect
(
data
!=
notify
.
DeviceRemindType
.
IDLE_REMIND
).
assertEqual
(
true
);
expect
(
data
!=
notify
.
DeviceRemindType
.
ACTIVE_DONOT_REMIND
).
assertEqual
(
true
);
expect
(
data
).
assertEqual
(
notify
.
DeviceRemindType
.
ACTIVE_REMIND
);
if
(
data
!=
notify
.
DeviceRemindType
.
IDLE_DONOT_REMIND
&&
data
!=
notify
.
DeviceRemindType
.
IDLE_REMIND
&&
data
!=
notify
.
DeviceRemindType
.
ACTIVE_DONOT_REMIND
&&
data
!=
notify
.
DeviceRemindType
.
ACTIVE_REMIND
)
{
expect
().
assertFail
();
}
done
();
});
})
...
...
@@ -77,9 +80,15 @@ describe('ActsAnsDistributeTest', function () {
it
(
'
ActsDistribute_test_0400
'
,
0
,
async
function
(
done
)
{
function
onConsume0100
(
data
)
{
console
.
info
(
"
========ActsDistribute_test_0400 onConsume data:=======>
"
+
JSON
.
stringify
(
data
));
expect
(
data
.
request
.
distributedOption
.
remindType
).
assertEqual
(
3
);
if
(
data
.
request
.
distributedOption
.
remindType
!=
notify
.
DeviceRemindType
.
IDLE_DONOT_REMIND
&&
data
.
request
.
distributedOption
.
remindType
!=
notify
.
DeviceRemindType
.
IDLE_REMIND
&&
data
.
request
.
distributedOption
.
remindType
!=
notify
.
DeviceRemindType
.
ACTIVE_DONOT_REMIND
&&
data
.
request
.
distributedOption
.
remindType
!=
notify
.
DeviceRemindType
.
ACTIVE_REMIND
)
{
expect
().
assertFail
();
}
expect
(
data
.
request
.
deviceId
).
assertEqual
(
""
);
console
.
info
(
"
========ActsDistribute_test_0400 onConsume data:=======>
"
+
JSON
.
stringify
(
data
.
request
.
notificationFlags
));
console
.
info
(
"
ActsDistribute_test_0400 onConsume data
"
+
JSON
.
stringify
(
data
.
request
.
notificationFlags
));
expect
(
JSON
.
stringify
(
data
.
request
.
notificationFlags
)).
assertEqual
(
undefined
);
}
await
notify
.
enableDistributed
(
true
);
...
...
notification/ans_standard/publish_test/getwantagentinfo/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
a38f7dfc
...
...
@@ -229,7 +229,8 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
}
wantAgent
.
getWantAgent
(
agentInfoc
,
setTimeout
(
function
(){
wantAgent
.
getWantAgent
(
agentInfoc
,
(
err
,
data
)
=>
{
if
(
err
.
code
==
0
)
{
WantAgentc
=
data
;
...
...
@@ -266,11 +267,13 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
console
.
info
(
data
);
expect
(
typeof
(
data
)).
assertEqual
(
"
object
"
);
}
done
();
setTimeout
(
function
(){
console
.
debug
(
"
====>time out ACTS_SetWantInfo_0300====>
"
);
done
();
},
time
);
});
},
1000
);
})
/*
...
...
@@ -334,7 +337,8 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
}
wantAgent
.
getWantAgent
(
agentInfof
,
setTimeout
(
function
(){
wantAgent
.
getWantAgent
(
agentInfof
,
(
err
,
data
)
=>
{
console
.
log
(
"
=======agentInfof=======
"
+
err
.
code
+
JSON
.
stringify
(
data
))
if
(
err
.
code
==
0
)
{
...
...
@@ -359,11 +363,13 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
else
{
console
.
info
(
'
----getWantAgent failed!----
'
+
err
.
code
+
data
);
}
done
();
setTimeout
(
function
(){
console
.
debug
(
"
====>time out ACTS_SetWantInfo_0400====>
"
);
done
();
},
time
);
});
},
1000
);
})
/*
* @tc.number: ACTS_SetWantInfo_0500
...
...
@@ -425,7 +431,8 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
}
wantAgent
.
getWantAgent
(
agentInfof
,
setTimeout
(
function
(){
wantAgent
.
getWantAgent
(
agentInfof
,
(
err
,
data
)
=>
{
if
(
err
.
code
==
0
)
{
WantAgente
=
data
;
...
...
@@ -462,6 +469,7 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
console
.
debug
(
"
====>time out ACTS_SetWantInfo_0500====>
"
);
},
time
);
});
},
1000
);
})
/*
* @tc.number: ACTS_SetWantInfo_0600
...
...
notification/ans_standard/publish_test/publish/entry/src/main/config.json
浏览文件 @
a38f7dfc
...
...
@@ -19,6 +19,9 @@
"deviceType"
:
[
"phone"
],
"reqPermissions"
:
[{
"name"
:
"ohos.permission.NOTIFICATION_CONTROLLER"
}],
"distro"
:
{
"deliveryWithInstall"
:
true
,
"moduleName"
:
"entry"
,
...
...
notification/ans_standard/publish_test/publish/signature/openharmony_sx.p7b
浏览文件 @
a38f7dfc
无法预览此类型文件
notification/ans_standard/publish_test/sub/entry/src/main/config.json
浏览文件 @
a38f7dfc
...
...
@@ -18,6 +18,11 @@
"name"
:
".MyApplication"
,
"deviceType"
:
[
"phone"
],
"reqPermissions"
:
[
{
"name"
:
"ohos.permission.NOTIFICATION_CONTROLLER"
}
],
"distro"
:
{
"deliveryWithInstall"
:
true
,
...
...
notification/ans_standard/publish_test/sub/signature/openharmony_sx.p7b
浏览文件 @
a38f7dfc
无法预览此类型文件
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录