Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
d5d54be2
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
d5d54be2
编写于
3月 17, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 17, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2589 XTS用例fourth修复挑单release
Merge pull request !2589 from jiangwensai/cherry-pick-1647517596
上级
e7525bb9
90823eaa
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
57 deletion
+7
-57
aafwk/aafwk_standard/abilitymanager/actsamstestfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...hscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+7
-57
未找到文件。
aafwk/aafwk_standard/abilitymanager/actsamstestfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
d5d54be2
...
...
@@ -143,7 +143,7 @@ describe('ActsAmsTestFourthScene', function () {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
);
setTimeout
(
done
(),
5000
);
done
(
);
});
function
timeout
(
done
)
{
...
...
@@ -187,40 +187,6 @@ describe('ActsAmsTestFourthScene', function () {
expect
(
info
[
i
].
uid
).
assertLarger
(
0
);
}
done
();
setTimeout
(
timeout
,
5000
);
})
/*
* @tc.number : Acts_Ams_test_2100
* @tc.name : getMissionInfos : Query Recent Ability Mission Infos
* @tc.desc : Query Recent Ability Mission Infos(by Promise)
*/
it
(
'
Acts_Ams_test_2100
'
,
0
,
async
function
(
done
)
{
var
maxnum
=
20
;
var
data
=
await
missionManager
.
getMissionInfos
(
""
,
maxnum
);
console
.
info
(
'
Acts_Ams_test_2100 getMissionInfos error.code :
\
'
+
error
.
code
+
'
,data length [
'
+
data
.
length
+
'
]
'
);
expect
(
Array
.
isArray
(
data
)).
assertEqual
(
true
);
expect
(
data
.
length
).
assertEqual
(
5
);
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
console
.
info
(
'
Acts_Ams_test_2100 getMissionInfos data[
'
+
i
+
"
]:
"
+
JSON
.
stringify
(
data
[
i
]));
expect
(
typeof
(
data
[
i
].
missionId
)).
assertEqual
(
"
number
"
);
expect
(
data
[
i
].
missionId
).
assertLarger
(
0
);
expect
(
typeof
(
data
[
i
].
want
)).
assertEqual
(
"
object
"
);
expect
(
typeof
(
data
[
i
].
want
.
deviceId
)).
assertEqual
(
"
string
"
);
expect
(
typeof
(
data
[
i
].
want
.
bundleName
)).
assertEqual
(
"
string
"
);
expect
(
data
[
i
].
want
.
bundleName
.
length
).
assertLarger
(
0
);
expect
(
bundleNameList
.
indexOf
(
data
[
i
].
want
.
bundleName
)).
assertLarger
(
-
1
);
expect
(
typeof
(
data
[
i
].
want
.
abilityName
)).
assertEqual
(
"
string
"
);
expect
(
data
[
i
].
want
.
abilityName
.
length
).
assertLarger
(
0
);
expect
(
abilityNameList
.
indexOf
(
data
[
i
].
want
.
abilityName
)).
assertLarger
(
-
1
);
expect
(
typeof
(
data
[
i
].
label
)).
assertEqual
(
"
string
"
);
expect
(
typeof
(
data
[
i
].
iconPath
)).
assertEqual
(
"
string
"
);
}
done
();
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -234,12 +200,12 @@ describe('ActsAmsTestFourthScene', function () {
for
(
var
i
=
0
;
i
<
result
.
length
;
i
++
)
{
console
.
info
(
'
Acts_Ams_test_5500 getMissionInfos result[
'
+
i
+
"
]:
"
+
JSON
.
stringify
(
result
[
i
]));
}
var
info
=
await
abilityManager
.
clearMission
(
result
[
0
].
id
).
catch
(
err
=>
{
console
.
log
(
'
Acts_Ams_test_5500 clearMission failed:
'
+
err
);
expect
(
err
).
assertEqual
(
0
);
}
);
done
();
setTimeout
(
timeout
,
5000
);
missionManager
.
clearMission
(
result
[
0
].
missionId
,
(
error
,
info
)
=>
{
console
.
info
(
'
clearMission error.code:
'
+
error
.
code
);
done
(
);
}
);
})
/*
...
...
@@ -259,7 +225,6 @@ describe('ActsAmsTestFourthScene', function () {
});
console
.
info
(
'
Acts_Ams_test_5900 moveMissionToFront data [
'
+
info
+
'
]
'
);
done
();
setTimeout
(
timeout
,
5000
);
})
/*
...
...
@@ -279,20 +244,5 @@ describe('ActsAmsTestFourthScene', function () {
});
console
.
info
(
'
Acts_Ams_test_6100 clearAllMissions data [
'
+
info
+
'
]
'
);
done
();
setTimeout
(
timeout
,
5000
);
})
/*
* @tc.number : Acts_Ams_test_6300
* @tc.name : killProcessesByBundleName : Kill Processes By BundleName
* @tc.desc : Kill Processes By BundleName(by Promise)
*/
it
(
'
Acts_Ams_test_6300
'
,
0
,
async
function
(
done
)
{
var
info
=
await
appManager
.
killProcessesByBundleName
(
'
xxxxxxxxxxxx
'
);
console
.
info
(
'
Acts_Ams_test_6300 killProcessesByBundleName data [
'
+
info
+
'
]
'
);
expect
(
typeof
(
info
)).
assertEqual
(
"
number
"
);
expect
(
info
).
assertEqual
(
2097215
);
done
();
setTimeout
(
timeout
,
5000
);
})
})
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录