Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6af21709
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看板
提交
6af21709
编写于
6月 23, 2022
作者:
F
fjr
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
info
Signed-off-by:
N
fjr
<
fujiarui6@huawei.com
>
上级
6c3d6653
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
18 addition
and
17 deletion
+18
-17
notification/ans_standard/publish_test/getwantagentinfo/entry/src/main/js/test/WantAgent.test.js
...getwantagentinfo/entry/src/main/js/test/WantAgent.test.js
+18
-17
未找到文件。
notification/ans_standard/publish_test/getwantagentinfo/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
6af21709
...
@@ -14,7 +14,8 @@
...
@@ -14,7 +14,8 @@
*/
*/
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
{
OperationType
,
WantAgentFlags
}
from
'
@ohos.wantagent
'
;
//import { OperationType, WantAgentFlags } from '@ohos.wantagent';
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
var
WantAgenta
;
var
WantAgenta
;
...
@@ -53,9 +54,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
...
@@ -53,9 +54,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
}
}
},
},
],
],
operationType
:
OperationType
.
START_ABILITY
,
operationType
:
wantAgent
.
OperationType
.
START_ABILITY
,
requestCode
:
0
,
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
wantAgent
.
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
}
}
wantAgent
.
getWantAgent
(
agentInfoa
,
wantAgent
.
getWantAgent
(
agentInfoa
,
(
err
,
data
)
=>
{
(
err
,
data
)
=>
{
...
@@ -133,9 +134,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
...
@@ -133,9 +134,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
}
}
},
},
],
],
operationType
:
OperationType
.
START_ABILITY
,
operationType
:
wantAgent
.
OperationType
.
START_ABILITY
,
requestCode
:
0
,
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
wantAgent
.
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
}
}
wantAgent
.
getWantAgent
(
agentInfod
).
then
(
wantAgent
.
getWantAgent
(
agentInfod
).
then
(
(
data
)
=>
{
(
data
)
=>
{
...
@@ -196,9 +197,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
...
@@ -196,9 +197,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
}
}
},
},
],
],
operationType
:
OperationType
.
START_ABILITY
,
operationType
:
wantAgent
.
OperationType
.
START_ABILITY
,
requestCode
:
0
,
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
wantAgent
.
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
}
}
wantAgent
.
getWantAgent
(
agentInfob
,(
err
,
data
)
=>
{
wantAgent
.
getWantAgent
(
agentInfob
,(
err
,
data
)
=>
{
WantAgentb
=
data
WantAgentb
=
data
...
@@ -225,9 +226,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
...
@@ -225,9 +226,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
}
}
},
},
],
],
operationType
:
OperationType
.
START_ABILITY
,
operationType
:
wantAgent
.
OperationType
.
START_ABILITY
,
requestCode
:
0
,
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
wantAgent
.
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
}
}
setTimeout
(
function
(){
setTimeout
(
function
(){
wantAgent
.
getWantAgent
(
agentInfoc
,
wantAgent
.
getWantAgent
(
agentInfoc
,
...
@@ -303,9 +304,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
...
@@ -303,9 +304,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
}
}
},
},
],
],
operationType
:
OperationType
.
START_ABILITY
,
operationType
:
wantAgent
.
OperationType
.
START_ABILITY
,
requestCode
:
0
,
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
wantAgent
.
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
}
}
wantAgent
.
getWantAgent
(
agentInfoe
,(
err
,
data
)
=>
{
wantAgent
.
getWantAgent
(
agentInfoe
,(
err
,
data
)
=>
{
console
.
log
(
"
=======agentInfoe=======
"
+
err
.
code
+
JSON
.
stringify
(
data
))
console
.
log
(
"
=======agentInfoe=======
"
+
err
.
code
+
JSON
.
stringify
(
data
))
...
@@ -333,9 +334,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
...
@@ -333,9 +334,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
}
}
},
},
],
],
operationType
:
OperationType
.
START_ABILITY
,
operationType
:
wantAgent
.
OperationType
.
START_ABILITY
,
requestCode
:
0
,
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
wantAgent
.
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
}
}
setTimeout
(
function
(){
setTimeout
(
function
(){
wantAgent
.
getWantAgent
(
agentInfof
,
wantAgent
.
getWantAgent
(
agentInfof
,
...
@@ -398,9 +399,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
...
@@ -398,9 +399,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
}
}
},
},
],
],
operationType
:
OperationType
.
START_ABILITY
,
operationType
:
wantAgent
.
OperationType
.
START_ABILITY
,
requestCode
:
0
,
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
wantAgent
.
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
}
}
wantAgent
.
getWantAgent
(
agentInfoe
,(
err
,
data
)
=>
{
wantAgent
.
getWantAgent
(
agentInfoe
,(
err
,
data
)
=>
{
WantAgentd
=
data
WantAgentd
=
data
...
@@ -427,9 +428,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
...
@@ -427,9 +428,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () {
}
}
},
},
],
],
operationType
:
OperationType
.
START_ABILITY
,
operationType
:
wantAgent
.
OperationType
.
START_ABILITY
,
requestCode
:
0
,
requestCode
:
0
,
wantAgentFlags
:[
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
wantAgentFlags
:[
wantAgent
.
WantAgentFlags
.
UPDATE_PRESENT_FLAG
]
}
}
setTimeout
(
function
(){
setTimeout
(
function
(){
wantAgent
.
getWantAgent
(
agentInfof
,
wantAgent
.
getWantAgent
(
agentInfof
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录