Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
e602072e
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看板
提交
e602072e
编写于
11月 23, 2022
作者:
Z
zhoujun62
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Solve XTS Singlehap_LifeCycleTest_2100 fail problem
Signed-off-by:
N
zhoujun62
<
zhoujun62@huawei.com
>
上级
e2507d8f
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
47 addition
and
47 deletion
+47
-47
ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets
...lesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets
+47
-47
未找到文件。
ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/main/ets/test/LifeCycleTest.ets
浏览文件 @
e602072e
...
...
@@ -83,7 +83,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -138,7 +138,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility1",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -149,7 +149,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -212,7 +212,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility1",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -223,7 +223,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -297,7 +297,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility3",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start3 successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -308,7 +308,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start2 successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -386,7 +386,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility1",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start1 successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -397,7 +397,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility3",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start3 successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -418,7 +418,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility4",
}
globalThis.
globalThis.
abilityContext.startAbility(str2)
globalThis.abilityContext.startAbility(str2)
.then((data) => {
console.info(TAG + ' start4 successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -463,7 +463,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility1",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start1 successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -474,7 +474,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility5",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start5 successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -486,7 +486,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str2)
globalThis.abilityContext.startAbility(str2)
.then((data) => {
console.info(TAG + ' start2 successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -619,7 +619,7 @@ export default function lifecycleTest() {
listKey8.push(abilityname + " onAbilityContinue");
}
}
let applicationContext = globalThis.
globalThis.
abilityContext.getApplicationContext();
let applicationContext = globalThis.abilityContext.getApplicationContext();
id1 = applicationContext.registerAbilityLifecycleCallback(AbilityLifecycleCallback);
console.log(TAG + " registerAbilityLifecycleCallback1 number: " + JSON.stringify(id1));
applicationContext.unregisterAbilityLifecycleCallback(id1, (error, data) => {
...
...
@@ -668,7 +668,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility1",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -679,7 +679,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -691,7 +691,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -704,7 +704,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -775,7 +775,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility1",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -786,7 +786,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -798,7 +798,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -866,7 +866,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility6",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -881,7 +881,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -919,7 +919,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility7",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -934,7 +934,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility7",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -983,7 +983,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility8",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -998,7 +998,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility8",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1167,7 +1167,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility11",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1178,7 +1178,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1194,7 +1194,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility11",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1205,7 +1205,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1347,7 +1347,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility12",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1358,7 +1358,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1390,7 +1390,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility12",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1401,7 +1401,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1459,7 +1459,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility1",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1470,7 +1470,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility12",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1481,7 +1481,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str2)
globalThis.abilityContext.startAbility(str2)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1534,7 +1534,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility1",
}
globalThis.
globalThis.
abilityContext.startAbility(str)
globalThis.abilityContext.startAbility(str)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1545,7 +1545,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility12",
}
globalThis.
globalThis.
abilityContext.startAbility(str1)
globalThis.abilityContext.startAbility(str1)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1556,7 +1556,7 @@ export default function lifecycleTest() {
"bundleName": "com.example.lifecycle_xts",
"abilityName": "MainAbility2",
}
globalThis.
globalThis.
abilityContext.startAbility(str2)
globalThis.abilityContext.startAbility(str2)
.then((data) => {
console.info(TAG + ' start successful. Data: ' + data);
}).catch((error) => {
...
...
@@ -1609,12 +1609,12 @@ export default function lifecycleTest() {
expect(exlist[2]).assertEqual("MainAbility2 onAbilityForeground");
expect(exlist[3]).assertEqual("MainAbility2 onAbilityBackground");
expect(exlist[4]).assertEqual("MainAbility2 onWindowStageDestroy");
expect(exlist
12[0
]).assertEqual("MainAbility2 onAbilityDestroy");
expect(exlist12[
1
]).assertEqual("MainAbility12 onAbilityCreate");
expect(exlist12[
2
]).assertEqual("MainAbility12 onWindowStageCreate");
expect(exlist12[
3
]).assertEqual("MainAbility12 onAbilityForeground");
expect(exlist12[
4
]).assertEqual("MainAbility12 onAbilityBackground");
expect(exlist12[
5
]).assertEqual("MainAbility12 onAbilityForeground");
expect(exlist
[5
]).assertEqual("MainAbility2 onAbilityDestroy");
expect(exlist12[
0
]).assertEqual("MainAbility12 onAbilityCreate");
expect(exlist12[
1
]).assertEqual("MainAbility12 onWindowStageCreate");
expect(exlist12[
2
]).assertEqual("MainAbility12 onAbilityForeground");
expect(exlist12[
3
]).assertEqual("MainAbility12 onAbilityBackground");
expect(exlist12[
4
]).assertEqual("MainAbility12 onAbilityForeground");
expect(exlist1[0]).assertEqual("MainAbility2 onAbilityCreate");
expect(exlist1[1]).assertEqual("MainAbility2 onWindowStageCreate");
expect(exlist1[2]).assertEqual("MainAbility2 onAbilityForeground");
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录