提交 9ea2eb36 编写于 作者: H hu0475

删除无用注释代码

Signed-off-by: Nhu0475 <huyanqiang5@huawei.com>
上级 69c9f680
...@@ -17,11 +17,11 @@ group("ability_crossplatform_runtime") { ...@@ -17,11 +17,11 @@ group("ability_crossplatform_runtime") {
testonly = true testonly = true
if (is_standard_system) { if (is_standard_system) {
deps = [ deps = [
"actscontexttest:ActsCrossplatformAbilityContextTest",
"actscontexttestentry:ActsCrossplatformAbilityContextEntryTest"
"ActsLifeCycleEtsFeatureTest:ActsLifeCycleEtsFeatureTest", "ActsLifeCycleEtsFeatureTest:ActsLifeCycleEtsFeatureTest",
"ActsLifeCycleEtsTest:ActsLifeCycleEtsTest", "ActsLifeCycleEtsTest:ActsLifeCycleEtsTest",
"ActsUiAbilityEtsTest:ActsUiAbilityEtsTest", "ActsUiAbilityEtsTest:ActsUiAbilityEtsTest",
"actscontexttest:ActsCrossplatformAbilityContextTest",
"actscontexttestentry:ActsCrossplatformAbilityContextEntryTest",
"commonTestAbilityApp:commonTestAbilityApp", "commonTestAbilityApp:commonTestAbilityApp",
] ]
} }
......
...@@ -90,7 +90,6 @@ export default class MainAbility extends Ability { ...@@ -90,7 +90,6 @@ export default class MainAbility extends Ability {
} }
} }
globalThis.applicationContext1 = this.context.getApplicationContext(); globalThis.applicationContext1 = this.context.getApplicationContext();
// let lifecycleid = globalThis.applicationContext1.registerAbilityLifecycleCallback(AbilityLifecycleCallback);
let lifecycleid = globalThis.applicationContext1.on('abilityLifecycle', AbilityLifecycleCallback); let lifecycleid = globalThis.applicationContext1.on('abilityLifecycle', AbilityLifecycleCallback);
console.log("[Demo] registerAbilityLifecycleCallback1 number: " + JSON.stringify(lifecycleid)); console.log("[Demo] registerAbilityLifecycleCallback1 number: " + JSON.stringify(lifecycleid));
setTimeout(function () { setTimeout(function () {
...@@ -108,7 +107,6 @@ export default class MainAbility extends Ability { ...@@ -108,7 +107,6 @@ export default class MainAbility extends Ability {
// Main window is created, set main page for this ability // Main window is created, set main page for this ability
console.log("[Demo] MainAbility onWindowStageCreate") console.log("[Demo] MainAbility onWindowStageCreate")
globalThis.featureAbilityContext = this.context; globalThis.featureAbilityContext = this.context;
// windowStage.setUIContent(this.context, "testability/pages/index1", null)
windowStage.loadContent('pages/Index', (err, data) => { windowStage.loadContent('pages/Index', (err, data) => {
if (err.code) { if (err.code) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册