Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
61e922ee
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看板
提交
61e922ee
编写于
12月 04, 2021
作者:
O
openharmony_ci
提交者:
Gitee
12月 04, 2021
浏览文件
操作
浏览文件
下载
差异文件
!1284 Update test code
Merge pull request !1284 from blackleon/update_LTS_1204
上级
dfc2d151
5f0b4892
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
66 addition
and
77 deletion
+66
-77
notification/ans_standard/publish_test/badgedisplayed/badgedisplay/Test.json
...andard/publish_test/badgedisplayed/badgedisplay/Test.json
+2
-1
notification/ans_standard/publish_test/badgedisplayed/badgedisplay/entry/.gitignore
...publish_test/badgedisplayed/badgedisplay/entry/.gitignore
+0
-1
notification/ans_standard/publish_test/getwantagentinfo/entry/.gitignore
...s_standard/publish_test/getwantagentinfo/entry/.gitignore
+0
-1
notification/ans_standard/publish_test/getwantagentinfo/entry/src/main/js/test/WantAgent.test.js
...getwantagentinfo/entry/src/main/js/test/WantAgent.test.js
+9
-9
notification/ans_standard/publish_test/wantagent/wantagent1/entry/src/main/js/test/WantAgent.test.js
...agent/wantagent1/entry/src/main/js/test/WantAgent.test.js
+14
-14
notification/ans_standard/publish_test/wantagent/wantagent1promise/entry/src/main/js/test/WantAgent.test.js
...antagent1promise/entry/src/main/js/test/WantAgent.test.js
+5
-6
notification/ans_standard/publish_test/wantagent/wantagent2/entry/src/main/js/test/WantAgent.test.js
...agent/wantagent2/entry/src/main/js/test/WantAgent.test.js
+6
-8
notification/ans_standard/publish_test/wantagent/wantagent2promise/entry/src/main/js/test/WantAgent.test.js
...antagent2promise/entry/src/main/js/test/WantAgent.test.js
+6
-8
notification/ans_standard/publish_test/wantagent/wantagent3/entry/src/main/js/test/WantAgent.test.js
...agent/wantagent3/entry/src/main/js/test/WantAgent.test.js
+4
-5
notification/ans_standard/publish_test/wantagent/wantagent3promise/entry/src/main/js/test/WantAgent.test.js
...antagent3promise/entry/src/main/js/test/WantAgent.test.js
+4
-5
notification/ans_standard/publish_test/wantagent/wantagent4/entry/src/main/js/test/WantAgent.test.js
...agent/wantagent4/entry/src/main/js/test/WantAgent.test.js
+4
-4
notification/ans_standard/publish_test/wantagent/wantagent4promise/entry/src/main/js/test/WantAgent.test.js
...antagent4promise/entry/src/main/js/test/WantAgent.test.js
+4
-5
notification/ans_standard/publish_test/wantagent/wantagent5/entry/src/main/js/test/WantAgent.test.js
...agent/wantagent5/entry/src/main/js/test/WantAgent.test.js
+4
-5
notification/ans_standard/publish_test/wantagent/wantagent5promise/entry/src/main/js/test/WantAgent.test.js
...antagent5promise/entry/src/main/js/test/WantAgent.test.js
+4
-5
未找到文件。
notification/ans_standard/publish_test/badgedisplayed/badgedisplay/Test.json
浏览文件 @
61e922ee
...
...
@@ -9,7 +9,8 @@
"kits"
:
[
{
"test-file-name"
:
[
"ActsAnsBadgeDisplayTest.hap"
"ActsAnsBadgeDisplayTest.hap"
,
"localcandisplay.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
...
...
notification/ans_standard/publish_test/badgedisplayed/badgedisplay/entry/.gitignore
已删除
100644 → 0
浏览文件 @
dfc2d151
/build
notification/ans_standard/publish_test/getwantagentinfo/entry/.gitignore
已删除
100644 → 0
浏览文件 @
dfc2d151
/build
notification/ans_standard/publish_test/getwantagentinfo/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
61e922ee
...
...
@@ -14,7 +14,7 @@
*/
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
{
OperationType
,
Flags
}
from
'
@ohos.wantagent
'
;
import
{
OperationType
,
WantAgent
Flags
}
from
'
@ohos.wantagent
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
var
WantAgenta
;
...
...
@@ -55,7 +55,7 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
wantAgent
.
getWantAgent
(
agentInfoa
,
(
err
,
data
)
=>
{
...
...
@@ -135,7 +135,7 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
wantAgent
.
getWantAgent
(
agentInfod
).
then
(
(
data
)
=>
{
...
...
@@ -198,7 +198,7 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
wantAgent
.
getWantAgent
(
agentInfob
,(
err
,
data
)
=>
{
WantAgentb
=
data
...
...
@@ -227,7 +227,7 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
wantAgent
.
getWantAgent
(
agentInfoc
,
(
err
,
data
)
=>
{
...
...
@@ -302,7 +302,7 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
wantAgent
.
getWantAgent
(
agentInfoe
,(
err
,
data
)
=>
{
console
.
log
(
"
=======agentInfoe=======
"
+
err
.
code
+
JSON
.
stringify
(
data
))
...
...
@@ -332,7 +332,7 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
wantAgent
.
getWantAgent
(
agentInfof
,
(
err
,
data
)
=>
{
...
...
@@ -394,7 +394,7 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
wantAgent
.
getWantAgent
(
agentInfoe
,(
err
,
data
)
=>
{
WantAgentd
=
data
...
...
@@ -423,7 +423,7 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
wantAgent
.
getWantAgent
(
agentInfof
,
(
err
,
data
)
=>
{
...
...
notification/ans_standard/publish_test/wantagent/wantagent1/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
61e922ee
...
...
@@ -14,7 +14,7 @@
*/
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
{
OperationType
,
Flags
}
from
'
@ohos.wantagent
'
;
import
{
OperationType
,
WantAgent
Flags
}
from
'
@ohos.wantagent
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
var
time
=
1000
var
WantAgent
;
...
...
@@ -32,8 +32,8 @@ describe('ActsAnsWantAgentOneTest', function () {
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.
neu.WantAgentTest1
"
,
abilityName
:
"
com.example.
t
est.MainAbility
"
,
bundleName
:
"
com.
example.WantAgentTest
"
,
abilityName
:
"
com.example.
WantAgentT
est.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
type
:
"
MIMETYPE
"
,
...
...
@@ -52,7 +52,7 @@ describe('ActsAnsWantAgentOneTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
await
wantAgent
.
getWantAgent
(
agentInfo
,
...
...
@@ -73,8 +73,8 @@ describe('ActsAnsWantAgentOneTest', function () {
expect
(
data
.
finalCode
).
assertEqual
(
0
);
expect
(
data
.
finalData
).
assertEqual
(
""
);
expect
(
data
.
want
.
deviceId
).
assertEqual
(
""
);
expect
(
data
.
want
.
bundleName
).
assertEqual
(
"
com.
neu.WantAgentTest1
"
);
expect
(
data
.
want
.
abilityName
).
assertEqual
(
"
com.example.
t
est.MainAbility
"
);
expect
(
data
.
want
.
bundleName
).
assertEqual
(
"
com.
example.WantAgentTest
"
);
expect
(
data
.
want
.
abilityName
).
assertEqual
(
"
com.example.
WantAgentT
est.MainAbility
"
);
expect
(
data
.
want
.
uri
).
assertEqual
(
"
key={true,true,false}
"
);
expect
(
JSON
.
stringify
(
data
.
want
.
entities
)).
assertEqual
(
JSON
.
stringify
([
"
entity1
"
]));
expect
(
data
.
want
.
action
).
assertEqual
(
"
action1
"
);
...
...
@@ -112,7 +112,7 @@ describe('ActsAnsWantAgentOneTest', function () {
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.
neu
.WantAgentTest1
"
,
bundleName
:
"
com.
example
.WantAgentTest1
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
...
...
@@ -132,7 +132,7 @@ describe('ActsAnsWantAgentOneTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
ONE_TIME_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
ONE_TIME_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
await
wantAgent
.
getWantAgent
(
agentInfo
,
...
...
@@ -165,7 +165,7 @@ describe('ActsAnsWantAgentOneTest', function () {
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.
neu
.WantAgentTest1
"
,
bundleName
:
"
com.
example
.WantAgentTest1
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
...
...
@@ -185,7 +185,7 @@ describe('ActsAnsWantAgentOneTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
NO_BUILD_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
NO_BUILD_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
await
wantAgent
.
getWantAgent
(
agentInfo
,
...
...
@@ -218,7 +218,7 @@ describe('ActsAnsWantAgentOneTest', function () {
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.
neu
.WantAgentTest1
"
,
bundleName
:
"
com.
example
.WantAgentTest1
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
...
...
@@ -238,7 +238,7 @@ describe('ActsAnsWantAgentOneTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
CANCEL_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
CANCEL_PRESENT_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
await
wantAgent
.
getWantAgent
(
agentInfo
,
...
...
@@ -271,7 +271,7 @@ describe('ActsAnsWantAgentOneTest', function () {
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.
neu
.WantAgentTest1
"
,
bundleName
:
"
com.
example
.WantAgentTest1
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
...
...
@@ -291,7 +291,7 @@ describe('ActsAnsWantAgentOneTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
CONSTANT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
CONSTANT_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
await
wantAgent
.
getWantAgent
(
agentInfo
,
...
...
notification/ans_standard/publish_test/wantagent/wantagent1promise/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
61e922ee
...
...
@@ -14,7 +14,7 @@
*/
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
{
OperationType
,
Flags
}
from
'
@ohos.wantagent
'
;
import
{
OperationType
,
WantAgent
Flags
}
from
'
@ohos.wantagent
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
var
time
=
1000
var
WantAgent
;
...
...
@@ -22,7 +22,7 @@ describe('ActsAnsWantAgentOneProTest', function () {
console
.
info
(
'
----ActsWantAgentTest----
'
);
/*
* @tc.number: ACTS_SetWant_0
1
00
* @tc.number: ACTS_SetWant_0
2
00
* @tc.name: getWantAgent(OperationType.START_ABILITY)
* @tc.desc: verify the function of getWantAgent(OperationType.START_ABILITY)
*/
...
...
@@ -30,9 +30,8 @@ describe('ActsAnsWantAgentOneProTest', function () {
var
agentInfo
=
{
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.neu.WantAgentTest1
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
bundleName
:
"
com.example.WantAgentTest1
"
,
abilityName
:
"
com.example.WantAgentTest1.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
type
:
"
MIMETYPE
"
,
...
...
@@ -51,7 +50,7 @@ describe('ActsAnsWantAgentOneProTest', function () {
],
operationType
:
OperationType
.
START_ABILITY
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
wantAgent
.
getWantAgent
(
agentInfo
).
then
(
...
...
notification/ans_standard/publish_test/wantagent/wantagent2/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
61e922ee
...
...
@@ -14,7 +14,7 @@
*/
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
{
OperationType
,
Flags
}
from
'
@ohos.wantagent
'
;
import
{
OperationType
,
WantAgent
Flags
}
from
'
@ohos.wantagent
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
var
time
=
1000
var
WantAgent
;
...
...
@@ -29,9 +29,8 @@ describe('ActsAnsWantAgentTwoTest', function () {
var
agentInfo
=
{
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.neu.WantAgentTest1
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
bundleName
:
"
com.example.WantAgentTest1
"
,
abilityName
:
"
com.example.WantAgentTest1.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
type
:
"
MIMETYPE
"
,
...
...
@@ -48,9 +47,8 @@ describe('ActsAnsWantAgentTwoTest', function () {
}
},
{
deviceId
:
""
,
bundleName
:
"
com.neu.WantAgenTest2
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
bundleName
:
"
com.example.WantAgenTest2
"
,
abilityName
:
"
com.example.WantAgenTest2.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
type
:
"
MIMETYPE
"
,
...
...
@@ -69,7 +67,7 @@ describe('ActsAnsWantAgentTwoTest', function () {
],
operationType
:
OperationType
.
START_ABILITIES
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
wantAgent
.
getWantAgent
(
agentInfo
,
...
...
notification/ans_standard/publish_test/wantagent/wantagent2promise/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
61e922ee
...
...
@@ -14,7 +14,7 @@
*/
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
{
OperationType
,
Flags
}
from
'
@ohos.wantagent
'
;
import
{
OperationType
,
WantAgent
Flags
}
from
'
@ohos.wantagent
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
var
time
=
1000
var
WantAgent
;
...
...
@@ -29,9 +29,8 @@ describe('ActsAnsWantAgentTwoProTest', function () {
var
agentInfo
=
{
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.neu.WantAgentTest1
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
bundleName
:
"
com.example.WantAgentTest1
"
,
abilityName
:
"
com.example.WantAgentTest1.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
type
:
"
MIMETYPE
"
,
...
...
@@ -48,9 +47,8 @@ describe('ActsAnsWantAgentTwoProTest', function () {
}
},
{
deviceId
:
""
,
bundleName
:
"
com.neu.WantAgenTest2
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
bundleName
:
"
com.example.WantAgenTest2
"
,
abilityName
:
"
com.example.WantAgenTest2.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
type
:
"
MIMETYPE
"
,
...
...
@@ -69,7 +67,7 @@ describe('ActsAnsWantAgentTwoProTest', function () {
],
operationType
:
OperationType
.
START_ABILITIES
,
requestCode
:
0
,
// wantAgentFlags:[
Flags.UPDATE_PRESENT_FLAG]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
wantAgent
.
getWantAgent
(
agentInfo
).
then
(
...
...
notification/ans_standard/publish_test/wantagent/wantagent3/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
61e922ee
...
...
@@ -14,7 +14,7 @@
*/
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
{
OperationType
,
Flags
}
from
'
@ohos.wantagent
'
;
import
{
OperationType
,
WantAgent
Flags
}
from
'
@ohos.wantagent
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
var
time
=
1000
var
WantAgent
;
...
...
@@ -29,9 +29,8 @@ describe('ActsAnsWantAgentTreeTest', function () {
var
agentInfo
=
{
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.neu.WantAgentTest1
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
bundleName
:
"
com.example.WantAgentTest1
"
,
abilityName
:
"
com.example.WantAgentTest1.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
type
:
"
MIMETYPE
"
,
...
...
@@ -50,7 +49,7 @@ describe('ActsAnsWantAgentTreeTest', function () {
],
operationType
:
OperationType
.
SEND_COMMON_EVENT
,
requestCode
:
0
,
// wantAgentFlags:[
Flags.UPDATE_PRESENT_FLAG]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
wantAgent
.
getWantAgent
(
agentInfo
,
...
...
notification/ans_standard/publish_test/wantagent/wantagent3promise/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
61e922ee
...
...
@@ -14,7 +14,7 @@
*/
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
{
OperationType
,
Flags
}
from
'
@ohos.wantagent
'
;
import
{
OperationType
,
WantAgent
Flags
}
from
'
@ohos.wantagent
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
var
time
=
1000
var
WantAgent
;
...
...
@@ -29,9 +29,8 @@ describe('ActsAnsWantAgentTreeProTest', function () {
var
agentInfo
=
{
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.neu.WantAgentTest1
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
bundleName
:
"
com.example.WantAgentTest1
"
,
abilityName
:
"
com.example.WantAgentTest1.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
type
:
"
MIMETYPE
"
,
...
...
@@ -50,7 +49,7 @@ describe('ActsAnsWantAgentTreeProTest', function () {
],
operationType
:
OperationType
.
SEND_COMMON_EVENT
,
requestCode
:
0
,
// wantAgentFlags:[
Flags.UPDATE_PRESENT_FLAG]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
wantAgent
.
getWantAgent
(
agentInfo
).
then
(
...
...
notification/ans_standard/publish_test/wantagent/wantagent4/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
61e922ee
...
...
@@ -14,7 +14,7 @@
*/
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
{
OperationType
,
Flags
}
from
'
@ohos.wantagent
'
;
import
{
OperationType
,
WantAgent
Flags
}
from
'
@ohos.wantagent
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
var
time
=
1000
var
WantAgent
;
...
...
@@ -30,8 +30,8 @@ describe('ActsAnsWantAgentFourTest', function () {
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.
neu
.WantAgentTest1
"
,
abilityName
:
"
com.example.
test
.MainAbility
"
,
bundleName
:
"
com.
example
.WantAgentTest1
"
,
abilityName
:
"
com.example.
WantAgentTest1
.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
type
:
"
MIMETYPE
"
,
...
...
@@ -50,7 +50,7 @@ describe('ActsAnsWantAgentFourTest', function () {
],
operationType
:
OperationType
.
UNKNOWN_TYPE
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
wantAgent
.
getWantAgent
(
agentInfo
,
...
...
notification/ans_standard/publish_test/wantagent/wantagent4promise/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
61e922ee
...
...
@@ -14,7 +14,7 @@
*/
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
{
OperationType
,
Flags
}
from
'
@ohos.wantagent
'
;
import
{
OperationType
,
WantAgent
Flags
}
from
'
@ohos.wantagent
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
var
time
=
1000
var
WantAgent
;
...
...
@@ -29,9 +29,8 @@ describe('ActsAnsWantAgentFourProTest', function () {
var
agentInfo
=
{
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.neu.WantAgentTest1
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
bundleName
:
"
com.example.WantAgentTest1
"
,
abilityName
:
"
com.example.WantAgentTest1.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
type
:
"
MIMETYPE
"
,
...
...
@@ -50,7 +49,7 @@ describe('ActsAnsWantAgentFourProTest', function () {
],
operationType
:
OperationType
.
UNKNOWN_TYPE
,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
wantAgent
.
getWantAgent
(
agentInfo
).
then
(
...
...
notification/ans_standard/publish_test/wantagent/wantagent5/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
61e922ee
...
...
@@ -14,7 +14,7 @@
*/
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
{
OperationType
,
Flags
}
from
'
@ohos.wantagent
'
;
import
{
OperationType
,
WantAgent
Flags
}
from
'
@ohos.wantagent
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
var
time
=
1000
var
WantAgent
;
...
...
@@ -29,9 +29,8 @@ describe('ActsAnsWantAgentFiveTest', function () {
var
agentInfo
=
{
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.neu.WantAgentTest1
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
bundleName
:
"
com.example.WantAgentTest1
"
,
abilityName
:
"
com.example.WantAgentTest1.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
type
:
"
MIMETYPE
"
,
...
...
@@ -50,7 +49,7 @@ describe('ActsAnsWantAgentFiveTest', function () {
],
// operationType: OperationType.START_ABILITY,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
wantAgent
.
getWantAgent
(
agentInfo
,
...
...
notification/ans_standard/publish_test/wantagent/wantagent5promise/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
61e922ee
...
...
@@ -14,7 +14,7 @@
*/
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
{
OperationType
,
Flags
}
from
'
@ohos.wantagent
'
;
import
{
OperationType
,
WantAgent
Flags
}
from
'
@ohos.wantagent
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
var
time
=
1000
var
WantAgent
;
...
...
@@ -29,9 +29,8 @@ describe('ActsAnsWantAgentFiveProTest', function () {
var
agentInfo
=
{
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.neu.WantAgentTest1
"
,
abilityName
:
"
com.example.test.MainAbility
"
,
bundleName
:
"
com.example.WantAgentTest1
"
,
abilityName
:
"
com.example.WantAgentTest1.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
type
:
"
MIMETYPE
"
,
...
...
@@ -50,7 +49,7 @@ describe('ActsAnsWantAgentFiveProTest', function () {
],
// operationType: OperationType.START_ABILITY,
requestCode
:
0
,
wantAgentFlags
:[
Flags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
WantAgent
Flags
.
UPDATE_PRESENT_FLAG
]
}
console
.
info
(
'
----getWantAgent before----
'
);
wantAgent
.
getWantAgent
(
agentInfo
).
then
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录