From f3cd360ee3240c98951ab40d0806452ad3a37add Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 20 May 2023 11:23:53 +0800 Subject: [PATCH] add user Signed-off-by: unknown --- .../src/main/ets/test/StageContextProperties.test.ets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ability/ability_runtime/context/actsstagecontext/actsstagecontextpropertiestest/entry/src/main/ets/test/StageContextProperties.test.ets b/ability/ability_runtime/context/actsstagecontext/actsstagecontextpropertiestest/entry/src/main/ets/test/StageContextProperties.test.ets index 7ff9200b7..59166c758 100644 --- a/ability/ability_runtime/context/actsstagecontext/actsstagecontextpropertiestest/entry/src/main/ets/test/StageContextProperties.test.ets +++ b/ability/ability_runtime/context/actsstagecontext/actsstagecontextpropertiestest/entry/src/main/ets/test/StageContextProperties.test.ets @@ -400,7 +400,7 @@ export default function stageContextPropertiesTest(abilityContext) { console.log(TAG + " --- start"); let result = await abilityContext.resourceManager.getString(16777219); console.log(TAG + " : result = " + JSON.stringify(result)); - expect(result).assertEqual("feature_MainAbility"); + expect(result).assertEqual("entry_MainAbility"); done(); }); @@ -415,7 +415,7 @@ export default function stageContextPropertiesTest(abilityContext) { console.log(TAG + " --- start"); let result = await globalThis.abilityStageContext.resourceManager.getString(16777219); console.log(TAG + " : result = " + JSON.stringify(result)); - expect(result).assertEqual("feature_MainAbility"); + expect(result).assertEqual("entry_MainAbility"); done(); }); @@ -431,7 +431,7 @@ export default function stageContextPropertiesTest(abilityContext) { let result = await globalThis.abilityStageContext.getApplicationContext() .resourceManager.getString(16777219); console.log(TAG + " : result = " + JSON.stringify(result)); - expect(result).assertEqual("feature_MainAbility"); + expect(result).assertEqual("entry_MainAbility"); done(); }); @@ -450,7 +450,7 @@ export default function stageContextPropertiesTest(abilityContext) { + "err: " + JSON.stringify(err)); let result = await globalThis.abilityContextA.resourceManager.getString(16777219); console.log(TAG + " : result = " + JSON.stringify(result)); - expect(result).assertEqual("feature_MainAbility"); + expect(result).assertEqual("entry_MainAbility"); checkContextDirEqualB(abilityContext, globalThis.abilityContextA) commonEvent.unsubscribe(Subscriber, UnSubscribeCallback); } -- GitLab