未验证 提交 4686f719 编写于 作者: O openharmony_ci 提交者: Gitee

!8693 测试用例修复

Merge pull request !8693 from jerry/cherry-pick-1684578727
...@@ -400,7 +400,7 @@ export default function stageContextPropertiesTest(abilityContext) { ...@@ -400,7 +400,7 @@ export default function stageContextPropertiesTest(abilityContext) {
console.log(TAG + " --- start"); console.log(TAG + " --- start");
let result = await abilityContext.resourceManager.getString(16777219); let result = await abilityContext.resourceManager.getString(16777219);
console.log(TAG + " : result = " + JSON.stringify(result)); console.log(TAG + " : result = " + JSON.stringify(result));
expect(result).assertEqual("feature_MainAbility"); expect(result).assertEqual("entry_MainAbility");
done(); done();
}); });
...@@ -415,7 +415,7 @@ export default function stageContextPropertiesTest(abilityContext) { ...@@ -415,7 +415,7 @@ export default function stageContextPropertiesTest(abilityContext) {
console.log(TAG + " --- start"); console.log(TAG + " --- start");
let result = await globalThis.abilityStageContext.resourceManager.getString(16777219); let result = await globalThis.abilityStageContext.resourceManager.getString(16777219);
console.log(TAG + " : result = " + JSON.stringify(result)); console.log(TAG + " : result = " + JSON.stringify(result));
expect(result).assertEqual("feature_MainAbility"); expect(result).assertEqual("entry_MainAbility");
done(); done();
}); });
...@@ -431,7 +431,7 @@ export default function stageContextPropertiesTest(abilityContext) { ...@@ -431,7 +431,7 @@ export default function stageContextPropertiesTest(abilityContext) {
let result = await globalThis.abilityStageContext.getApplicationContext() let result = await globalThis.abilityStageContext.getApplicationContext()
.resourceManager.getString(16777219); .resourceManager.getString(16777219);
console.log(TAG + " : result = " + JSON.stringify(result)); console.log(TAG + " : result = " + JSON.stringify(result));
expect(result).assertEqual("feature_MainAbility"); expect(result).assertEqual("entry_MainAbility");
done(); done();
}); });
...@@ -450,7 +450,7 @@ export default function stageContextPropertiesTest(abilityContext) { ...@@ -450,7 +450,7 @@ export default function stageContextPropertiesTest(abilityContext) {
+ "err: " + JSON.stringify(err)); + "err: " + JSON.stringify(err));
let result = await globalThis.abilityContextA.resourceManager.getString(16777219); let result = await globalThis.abilityContextA.resourceManager.getString(16777219);
console.log(TAG + " : result = " + JSON.stringify(result)); console.log(TAG + " : result = " + JSON.stringify(result));
expect(result).assertEqual("feature_MainAbility"); expect(result).assertEqual("entry_MainAbility");
checkContextDirEqualB(abilityContext, globalThis.abilityContextA) checkContextDirEqualB(abilityContext, globalThis.abilityContextA)
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback); commonEvent.unsubscribe(Subscriber, UnSubscribeCallback);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册