Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
22f3411b
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看板
未验证
提交
22f3411b
编写于
8月 23, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 23, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5114 XTS元能力UN/FAILED用例适配
Merge pull request !5114 from chengxingzhen/master
上级
1615ff66
3219d55d
变更
12
显示空白变更内容
内联
并排
Showing
12 changed file
with
27 addition
and
20 deletion
+27
-20
ability/ability_runtime/abilitymanager/actsamscallbackfirstscene/src/main/js/test/MangerAbilityJsunit.test.js
...ckfirstscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-0
ability/ability_runtime/abilitymanager/actsamscallbackfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
...kfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-0
ability/ability_runtime/abilitymanager/actsamscallbacksecondscene/src/main/js/test/MangerAbilityJsunit.test.js
...ksecondscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-0
ability/ability_runtime/abilitymanager/actsamscallbackthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
...ckthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-0
ability/ability_runtime/abilitymanager/actsamstestfifthscene/src/main/js/test/MangerAbilityJsunit.test.js
...stfifthscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-0
ability/ability_runtime/abilitymanager/actsamstestfirstscene/src/main/js/test/MangerAbilityJsunit.test.js
...stfirstscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-0
ability/ability_runtime/abilitymanager/actsamstestfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
...tfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-0
ability/ability_runtime/abilitymanager/actsamstestsecondscene/src/main/js/test/MangerAbilityJsunit.test.js
...tsecondscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-0
ability/ability_runtime/abilitymanager/actsamstestthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
...stthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
+1
-0
ability/ability_runtime/actsusers/ActsAmsUsersSystemTest/entry/src/main/ets/MainAbility2/MainAbility2.ts
...ystemTest/entry/src/main/ets/MainAbility2/MainAbility2.ts
+2
-2
ability/ability_runtime/actsusers/ActsAmsUsersSystemTest/entry/src/main/ets/MainAbility3/MainAbility3.ts
...ystemTest/entry/src/main/ets/MainAbility3/MainAbility3.ts
+2
-2
ability/ability_runtime/killprocesswithaccountstage/ActsKillProcessWithAccountTest/entry/src/main/ets/test/Ability.test.ets
...sWithAccountTest/entry/src/main/ets/test/Ability.test.ets
+14
-16
未找到文件。
ability/ability_runtime/abilitymanager/actsamscallbackfirstscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
22f3411b
...
...
@@ -35,6 +35,7 @@ export default function ActsAmsCallBackFirstScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
);
sleep
(
500
);
done
();
});
...
...
ability/ability_runtime/abilitymanager/actsamscallbackfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
22f3411b
...
...
@@ -86,6 +86,7 @@ export default function ActsAmsCallBackFourthScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
);
sleep
(
500
);
done
();
});
...
...
ability/ability_runtime/abilitymanager/actsamscallbacksecondscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
22f3411b
...
...
@@ -52,6 +52,7 @@ export default function ActsAmsCallBackSecondScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
);
sleep
(
500
);
done
();
});
...
...
ability/ability_runtime/abilitymanager/actsamscallbackthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
22f3411b
...
...
@@ -52,6 +52,7 @@ export default function ActsAmsCallBackThirdScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
);
sleep
(
500
);
done
();
});
...
...
ability/ability_runtime/abilitymanager/actsamstestfifthscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
22f3411b
...
...
@@ -106,6 +106,7 @@ export default function ActsAmsTestFifthScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
);
sleep
(
500
);
done
();
});
...
...
ability/ability_runtime/abilitymanager/actsamstestfirstscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
22f3411b
...
...
@@ -40,6 +40,7 @@ export default function ActsAmsTestFirstScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
);
sleep
(
500
);
done
();
});
...
...
ability/ability_runtime/abilitymanager/actsamstestfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
22f3411b
...
...
@@ -106,6 +106,7 @@ export default function ActsAmsTestFourthScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
);
sleep
(
500
);
done
();
});
...
...
ability/ability_runtime/abilitymanager/actsamstestsecondscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
22f3411b
...
...
@@ -62,6 +62,7 @@ export default function ActsAmsTestSecondScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
);
sleep
(
500
);
done
();
});
...
...
ability/ability_runtime/abilitymanager/actsamstestthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
22f3411b
...
...
@@ -63,6 +63,7 @@ export default function ActsAmsTestThirdScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
);
sleep
(
500
);
done
();
});
...
...
ability/ability_runtime/actsusers/ActsAmsUsersSystemTest/entry/src/main/ets/MainAbility2/MainAbility2.ts
浏览文件 @
22f3411b
...
...
@@ -16,7 +16,7 @@ import Ability from '@ohos.application.Ability'
import
commonEvent
from
'
@ohos.commonEvent
'
function
PublishCallBackOne
()
{
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_0100_CommonEvent====>
"
);
globalThis
.
abilityContext
.
terminateSelf
().
then
(()
=>
{
globalThis
.
abilityContext
2
.
terminateSelf
().
then
(()
=>
{
commonEvent
.
publish
(
"
ACTS_TerminateSelf_CommonEvent
"
,
PublishCallBackTwo
);
console
.
debug
(
"
====>publish ACTS_TerminateSelf_CommonEvent finish====>
"
)
});
...
...
@@ -40,7 +40,7 @@ export default class MainAbility2 extends Ability {
onWindowStageCreate
(
windowStage
)
{
// Main window is created, set main page for this ability
console
.
log
(
"
MainAbility2 onWindowStageCreate
"
)
globalThis
.
abilityContext
=
this
.
context
globalThis
.
abilityContext
2
=
this
.
context
windowStage
.
setUIContent
(
this
.
context
,
"
MainAbility/pages/index/second
"
,
null
)
commonEvent
.
publish
(
"
ACTS_InterfaceMultiUsers_0100_Start_CommonEvent
"
,
PublishCallBackOne
);
}
...
...
ability/ability_runtime/actsusers/ActsAmsUsersSystemTest/entry/src/main/ets/MainAbility3/MainAbility3.ts
浏览文件 @
22f3411b
...
...
@@ -28,9 +28,9 @@ export default class MainAbility3 extends Ability {
onWindowStageCreate
(
windowStage
)
{
// Main window is created, set main page for this ability
console
.
log
(
"
MainAbility3 onWindowStageCreate
"
)
globalThis
.
abilityContext
=
this
.
context
globalThis
.
abilityContext
3
=
this
.
context
windowStage
.
setUIContent
(
this
.
context
,
"
MainAbility/pages/index/second
"
,
null
)
globalThis
.
abilityContext
.
terminateSelfWithResult
(
globalThis
.
abilityContext
3
.
terminateSelfWithResult
(
{
resultCode
:
1
,
want
:{
...
...
ability/ability_runtime/killprocesswithaccountstage/ActsKillProcessWithAccountTest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
22f3411b
...
...
@@ -44,35 +44,33 @@ export default function killProcessWithAccountTest() {
beforeEach(async (done) => {
console.log('======>beforeEach killProcessWithAccountTest<=======');
console.log('======>beforeEach killProcessWithAccountTest<======='
+ flag
);
if(flag == false){
setTimeout(()=>{
globalThis.abilityContext.startAbilityWithAccount(
setTimeout(
async
()=>{
await
globalThis.abilityContext.startAbilityWithAccount(
{
bundleName: 'com.acts.killprocesswithaccountpackage',
abilityName: 'com.acts.killprocesswithaccountpackage.MainAbility'
}, ACCOUNT_ID,
{
windowMode: 2,
displayId: 1
}).then(() => {
}, ACCOUNT_ID).then(() => {
console.log(" ====>ACTS_KillProcessWithAccount startability ====> success! ")
done();
}).catch((error) => {
console.log(" ====>ACTS_KillProcessWithAccount startability ====> error: " + JSON.stringify(error))
})
sleep(500);
done();
},1000)
}else{
globalThis.abilityContext.startAbilityWithAccount(
await
globalThis.abilityContext.startAbilityWithAccount(
{
bundleName: 'com.acts.killprocesswithaccountpackage',
abilityName: 'com.acts.killprocesswithaccountpackage.MainAbility'
}, ACCOUNT_ID,
{
windowMode: 2,
displayId: 1
}).then(() => {
}, ACCOUNT_ID).then(() => {
console.log(" ====>ACTS_KillProcessWithAccount startability ====> success! ")
done();
}).catch((error) => {
console.log(" ====>ACTS_KillProcessWithAccount startability ====> error: " + JSON.stringify(error))
})
sleep(500);
done();
}
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录