Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
3219d55d
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,发现更多精彩内容 >>
提交
3219d55d
编写于
8月 23, 2022
作者:
C
chengxingzhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
XTS测试套UN/FAILED用例适配
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
1615ff66
变更
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
浏览文件 @
3219d55d
...
@@ -35,6 +35,7 @@ export default function ActsAmsCallBackFirstScene() {
...
@@ -35,6 +35,7 @@ export default function ActsAmsCallBackFirstScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
}
);
);
sleep
(
500
);
done
();
done
();
});
});
...
...
ability/ability_runtime/abilitymanager/actsamscallbackfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3219d55d
...
@@ -86,6 +86,7 @@ export default function ActsAmsCallBackFourthScene() {
...
@@ -86,6 +86,7 @@ export default function ActsAmsCallBackFourthScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
}
);
);
sleep
(
500
);
done
();
done
();
});
});
...
...
ability/ability_runtime/abilitymanager/actsamscallbacksecondscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3219d55d
...
@@ -52,6 +52,7 @@ export default function ActsAmsCallBackSecondScene() {
...
@@ -52,6 +52,7 @@ export default function ActsAmsCallBackSecondScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
}
);
);
sleep
(
500
);
done
();
done
();
});
});
...
...
ability/ability_runtime/abilitymanager/actsamscallbackthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3219d55d
...
@@ -52,6 +52,7 @@ export default function ActsAmsCallBackThirdScene() {
...
@@ -52,6 +52,7 @@ export default function ActsAmsCallBackThirdScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
}
);
);
sleep
(
500
);
done
();
done
();
});
});
...
...
ability/ability_runtime/abilitymanager/actsamstestfifthscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3219d55d
...
@@ -106,6 +106,7 @@ export default function ActsAmsTestFifthScene() {
...
@@ -106,6 +106,7 @@ export default function ActsAmsTestFifthScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
}
);
);
sleep
(
500
);
done
();
done
();
});
});
...
...
ability/ability_runtime/abilitymanager/actsamstestfirstscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3219d55d
...
@@ -40,6 +40,7 @@ export default function ActsAmsTestFirstScene() {
...
@@ -40,6 +40,7 @@ export default function ActsAmsTestFirstScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
}
);
);
sleep
(
500
);
done
();
done
();
});
});
...
...
ability/ability_runtime/abilitymanager/actsamstestfourthscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3219d55d
...
@@ -106,6 +106,7 @@ export default function ActsAmsTestFourthScene() {
...
@@ -106,6 +106,7 @@ export default function ActsAmsTestFourthScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
}
);
);
sleep
(
500
);
done
();
done
();
});
});
...
...
ability/ability_runtime/abilitymanager/actsamstestsecondscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3219d55d
...
@@ -62,6 +62,7 @@ export default function ActsAmsTestSecondScene() {
...
@@ -62,6 +62,7 @@ export default function ActsAmsTestSecondScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
}
);
);
sleep
(
500
);
done
();
done
();
});
});
...
...
ability/ability_runtime/abilitymanager/actsamstestthirdscene/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
3219d55d
...
@@ -63,6 +63,7 @@ export default function ActsAmsTestThirdScene() {
...
@@ -63,6 +63,7 @@ export default function ActsAmsTestThirdScene() {
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
'
+
error
.
code
+
'
, data length [
'
+
data
.
length
+
'
]
'
);
}
}
);
);
sleep
(
500
);
done
();
done
();
});
});
...
...
ability/ability_runtime/actsusers/ActsAmsUsersSystemTest/entry/src/main/ets/MainAbility2/MainAbility2.ts
浏览文件 @
3219d55d
...
@@ -16,7 +16,7 @@ import Ability from '@ohos.application.Ability'
...
@@ -16,7 +16,7 @@ import Ability from '@ohos.application.Ability'
import
commonEvent
from
'
@ohos.commonEvent
'
import
commonEvent
from
'
@ohos.commonEvent
'
function
PublishCallBackOne
()
{
function
PublishCallBackOne
()
{
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_0100_CommonEvent====>
"
);
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_0100_CommonEvent====>
"
);
globalThis
.
abilityContext
.
terminateSelf
().
then
(()
=>
{
globalThis
.
abilityContext
2
.
terminateSelf
().
then
(()
=>
{
commonEvent
.
publish
(
"
ACTS_TerminateSelf_CommonEvent
"
,
PublishCallBackTwo
);
commonEvent
.
publish
(
"
ACTS_TerminateSelf_CommonEvent
"
,
PublishCallBackTwo
);
console
.
debug
(
"
====>publish ACTS_TerminateSelf_CommonEvent finish====>
"
)
console
.
debug
(
"
====>publish ACTS_TerminateSelf_CommonEvent finish====>
"
)
});
});
...
@@ -40,7 +40,7 @@ export default class MainAbility2 extends Ability {
...
@@ -40,7 +40,7 @@ export default class MainAbility2 extends Ability {
onWindowStageCreate
(
windowStage
)
{
onWindowStageCreate
(
windowStage
)
{
// Main window is created, set main page for this ability
// Main window is created, set main page for this ability
console
.
log
(
"
MainAbility2 onWindowStageCreate
"
)
console
.
log
(
"
MainAbility2 onWindowStageCreate
"
)
globalThis
.
abilityContext
=
this
.
context
globalThis
.
abilityContext
2
=
this
.
context
windowStage
.
setUIContent
(
this
.
context
,
"
MainAbility/pages/index/second
"
,
null
)
windowStage
.
setUIContent
(
this
.
context
,
"
MainAbility/pages/index/second
"
,
null
)
commonEvent
.
publish
(
"
ACTS_InterfaceMultiUsers_0100_Start_CommonEvent
"
,
PublishCallBackOne
);
commonEvent
.
publish
(
"
ACTS_InterfaceMultiUsers_0100_Start_CommonEvent
"
,
PublishCallBackOne
);
}
}
...
...
ability/ability_runtime/actsusers/ActsAmsUsersSystemTest/entry/src/main/ets/MainAbility3/MainAbility3.ts
浏览文件 @
3219d55d
...
@@ -28,9 +28,9 @@ export default class MainAbility3 extends Ability {
...
@@ -28,9 +28,9 @@ export default class MainAbility3 extends Ability {
onWindowStageCreate
(
windowStage
)
{
onWindowStageCreate
(
windowStage
)
{
// Main window is created, set main page for this ability
// Main window is created, set main page for this ability
console
.
log
(
"
MainAbility3 onWindowStageCreate
"
)
console
.
log
(
"
MainAbility3 onWindowStageCreate
"
)
globalThis
.
abilityContext
=
this
.
context
globalThis
.
abilityContext
3
=
this
.
context
windowStage
.
setUIContent
(
this
.
context
,
"
MainAbility/pages/index/second
"
,
null
)
windowStage
.
setUIContent
(
this
.
context
,
"
MainAbility/pages/index/second
"
,
null
)
globalThis
.
abilityContext
.
terminateSelfWithResult
(
globalThis
.
abilityContext
3
.
terminateSelfWithResult
(
{
{
resultCode
:
1
,
resultCode
:
1
,
want
:{
want
:{
...
...
ability/ability_runtime/killprocesswithaccountstage/ActsKillProcessWithAccountTest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
3219d55d
...
@@ -44,35 +44,33 @@ export default function killProcessWithAccountTest() {
...
@@ -44,35 +44,33 @@ export default function killProcessWithAccountTest() {
beforeEach(async (done) => {
beforeEach(async (done) => {
console.log('======>beforeEach killProcessWithAccountTest<=======');
console.log('======>beforeEach killProcessWithAccountTest<======='
+ flag
);
if(flag == false){
if(flag == false){
setTimeout(()=>{
setTimeout(
async
()=>{
globalThis.abilityContext.startAbilityWithAccount(
await
globalThis.abilityContext.startAbilityWithAccount(
{
{
bundleName: 'com.acts.killprocesswithaccountpackage',
bundleName: 'com.acts.killprocesswithaccountpackage',
abilityName: 'com.acts.killprocesswithaccountpackage.MainAbility'
abilityName: 'com.acts.killprocesswithaccountpackage.MainAbility'
}, ACCOUNT_ID,
}, ACCOUNT_ID).then(() => {
{
windowMode: 2,
displayId: 1
}).then(() => {
console.log(" ====>ACTS_KillProcessWithAccount startability ====> success! ")
console.log(" ====>ACTS_KillProcessWithAccount startability ====> success! ")
done();
}).catch((error) => {
console.log(" ====>ACTS_KillProcessWithAccount startability ====> error: " + JSON.stringify(error))
})
})
sleep(500);
done();
},1000)
},1000)
}else{
}else{
globalThis.abilityContext.startAbilityWithAccount(
await
globalThis.abilityContext.startAbilityWithAccount(
{
{
bundleName: 'com.acts.killprocesswithaccountpackage',
bundleName: 'com.acts.killprocesswithaccountpackage',
abilityName: 'com.acts.killprocesswithaccountpackage.MainAbility'
abilityName: 'com.acts.killprocesswithaccountpackage.MainAbility'
}, ACCOUNT_ID,
}, ACCOUNT_ID).then(() => {
{
windowMode: 2,
displayId: 1
}).then(() => {
console.log(" ====>ACTS_KillProcessWithAccount startability ====> success! ")
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录