Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
fb250908
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,发现更多精彩内容 >>
未验证
提交
fb250908
编写于
3月 18, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 18, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2624 XTS用例修复
Merge pull request !2624 from jiangwensai/xts
上级
ec59c6ab
949db634
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
23 addition
and
87 deletion
+23
-87
aafwk/aafwk_standard/abilitymanager/actsamscallbackfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...hscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+8
-1
aafwk/aafwk_standard/abilitymanager/actsamstestfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...hscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+0
-21
aafwk/aafwk_standard/abilitymanager/actsamstestfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...hscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+14
-7
aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
...ytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
+1
-58
未找到文件。
aafwk/aafwk_standard/abilitymanager/actsamscallbackfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
fb250908
...
...
@@ -219,10 +219,17 @@ describe('ActsAmsCallBackFourthScene', function () {
it
(
'
Acts_Ams_test_5600
'
,
0
,
async
function
(
done
)
{
var
maxnum
=
30
;
var
result
=
await
missionManager
.
getMissionInfos
(
""
,
maxnum
);
let
id
=
0
;
for
(
var
i
=
0
;
i
<
result
.
length
;
i
++
)
{
console
.
info
(
'
Acts_Ams_test_5600 getMissionInfos result[
'
+
i
+
"
]:
"
+
JSON
.
stringify
(
result
[
i
]));
if
(
result
[
i
].
want
.
abilityName
!=
'
com.example.actsamscallbackfourthscene.MainAbility
'
&&
result
[
i
].
runningState
==
0
)
{
console
.
info
(
'
5600 id[
'
+
result
[
i
].
missionId
+
"
]
"
);
id
=
result
[
i
].
missionId
;
break
;
}
}
missionManager
.
clearMission
(
result
[
0
].
missionI
d
,
missionManager
.
clearMission
(
i
d
,
(
error
,
info
)
=>
{
console
.
info
(
'
Acts_Ams_test_5600 clearMission error.code
\
'
+
error
.
code
+
'
,data [
'
+
info
+
'
]
'
);
...
...
aafwk/aafwk_standard/abilitymanager/actsamstestfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
fb250908
...
...
@@ -225,27 +225,6 @@ describe('ActsAmsTestFifthScene', function () {
});
})
/*
* @tc.number : Acts_Ams_test_0700
* @tc.name : clearMission : Remove Mission
* @tc.desc : Remove Mission(by Promise)
*/
it
(
'
Acts_Ams_test_0700
'
,
0
,
async
function
(
done
)
{
var
maxnum
=
10
;
var
result
=
await
missionManager
.
getMissionInfos
(
""
,
maxnum
).
catch
(
err
=>
{
console
.
log
(
'
Acts_Ams_test_0700 getMissionInfos failed:
'
+
err
);
});
for
(
var
i
=
0
;
i
<
result
.
length
;
i
++
)
{
console
.
info
(
'
Acts_Ams_test_0700 getMissionInfos result[
'
+
i
+
"
]:
"
+
JSON
.
stringify
(
result
[
i
]));
}
var
info
=
await
missionManager
.
clearMission
(
result
[
1
].
missionId
).
catch
(
err
=>
{
console
.
log
(
'
Acts_Ams_test_0700 clearMission failed:
'
+
err
);
expect
(
err
).
assertEqual
(
0
);
});
console
.
info
(
'
Acts_Ams_test_0700 clearMission data [
'
+
info
+
'
]
'
);
done
();
})
/*
* @tc.number : Acts_Ams_test_1500
* @tc.name : killProcessesByBundleName : Kill Processes By BundleName
...
...
aafwk/aafwk_standard/abilitymanager/actsamstestfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
fb250908
...
...
@@ -197,15 +197,22 @@ describe('ActsAmsTestFourthScene', function () {
it
(
'
Acts_Ams_test_5500
'
,
0
,
async
function
(
done
)
{
var
maxnum
=
30
;
var
result
=
await
missionManager
.
getMissionInfos
(
""
,
maxnum
);
let
id
=
0
;
for
(
var
i
=
0
;
i
<
result
.
length
;
i
++
)
{
console
.
info
(
'
Acts_Ams_test_
5500 getMissionInfos result[
'
+
i
+
"
]:
"
+
JSON
.
stringify
(
result
[
i
]));
}
missionManager
.
clearMission
(
result
[
0
].
missionId
,
(
error
,
info
)
=>
{
console
.
info
(
'
clearMission error.code:
'
+
error
.
code
)
;
done
()
;
console
.
info
(
'
5500 getMissionInfos result[
'
+
i
+
"
]:
"
+
JSON
.
stringify
(
result
[
i
]));
if
(
result
[
i
].
want
.
abilityName
!=
'
com.example.actsamstestfourthscene.MainAbility
'
&&
result
[
i
].
runningState
==
0
)
{
console
.
info
(
'
5500 id[
'
+
result
[
i
].
missionId
+
"
]
"
);
id
=
result
[
i
].
missionId
;
break
;
}
);
}
missionManager
.
clearMission
(
id
).
then
(
data
=>
{
console
.
info
(
'
5500 clearMission data.code:
'
+
data
);
done
();
}).
catch
(
err
=>
{
console
.
info
(
'
5500 clearMission error.code:
'
+
err
.
code
);
});
})
/*
...
...
aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
浏览文件 @
fb250908
...
...
@@ -1298,63 +1298,6 @@ describe('ActsFeatureAbilityTest', function () {
done
();
})
/**
* @tc.number: ACTS_StartAbilityForResult_0400
* @tc.name: StartAbilityForResult : Start other ability for result.
* @tc.desc: Check the return value of the interface (by AsyncCallback)
*/
it
(
'
ACTS_StartAbilityForResult_0400
'
,
0
,
async
function
(
done
)
{
featureAbility
.
startAbilityForResult
(
{
want
:
{
action
:
"
action.system.home
"
,
entities
:
[
"
entity.system.home
"
],
type
:
"
MIMETYPE
"
,
options
:
{
// indicates the grant to perform read operations on the URI
authReadUriPermission
:
true
,
// indicates the grant to perform write operations on the URI
authWriteUriPermission
:
true
,
// support forward intent result to origin ability
abilityForwardResult
:
true
,
// used for marking the ability start-up is triggered by continuation
abilityContinuation
:
true
,
// specifies whether a component does not belong to ohos
notOhosComponent
:
true
,
// specifies whether an ability is started
abilityFormEnabled
:
true
,
// indicates the grant for possible persisting on the URI.
authPersistableUriPermission
:
true
,
// indicates the grant for possible persisting on the URI.
authPrefixUriPermission
:
true
,
// support distributed scheduling system start up multiple devices
abilitySliceMultiDevice
:
true
,
// indicates that an ability using the service template is started regardless of whether the
// host application has been started.
startForegroundAbility
:
true
,
// install the specified ability if it's not installed.
installOnDemand
:
true
,
// return result to origin ability slice
abilitySliceForwardResult
:
true
,
// install the specified ability with background mode if it's not installed.
installWithBackgroundMode
:
true
},
deviceId
:
""
,
bundleName
:
"
com.example.startabilityforresult
"
,
abilityName
:
"
com.example.startabilityforresult.MainAbility
"
,
uri
:
""
}
},
(
error
,
result
)
=>
{
console
.
log
(
'
featureAbilityTest ACTS_StartAbilityForResult_0400 first asyncCallback
'
+
'
errCode :
'
+
error
+
"
result:
"
+
result
)
checkOnAbilityResult
(
result
);
done
();
}
);
})
/**
* @tc.number: ACTS_StartAbilityForResult_0500
* @tc.name: StartAbilityForResult : Start other ability for result.
...
...
@@ -2766,7 +2709,7 @@ describe('ActsFeatureAbilityTest', function () {
featureAbility
.
startAbility
(
StartAbilityParameter
,(
err
,
data
)
=>
{
console
.
log
(
'
ACTS_StartAbility_1400 asyncCallback errCode :
'
+
JSON
.
stringify
(
err
)
+
"
data:
"
+
JSON
.
stringify
(
data
));
expect
(
err
.
code
!
=
0
).
assertTrue
();
expect
(
err
.
code
=
=
0
).
assertTrue
();
done
();
});
}
catch
(
error
){
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录