未验证 提交 762a3253 编写于 作者: O openharmony_ci 提交者: Gitee

!9533 xts_修复内存泄漏

Merge pull request !9533 from kirl75/cherry-pick-1690447043
...@@ -251,6 +251,7 @@ export default function ApiCoverTest() { ...@@ -251,6 +251,7 @@ export default function ApiCoverTest() {
}, },
onFailed: function () { onFailed: function () {
console.log("onFailed"); console.log("onFailed");
done();
} }
} }
try { try {
...@@ -259,8 +260,8 @@ export default function ApiCoverTest() { ...@@ -259,8 +260,8 @@ export default function ApiCoverTest() {
} catch (err) { } catch (err) {
console.log(`connectServiceExtensionAbility catch code: ${err.code}, message: ${err.message}`); console.log(`connectServiceExtensionAbility catch code: ${err.code}, message: ${err.message}`);
expect().assertFail(); expect().assertFail();
done();
} }
done();
}) })
/* /*
...@@ -318,6 +319,7 @@ export default function ApiCoverTest() { ...@@ -318,6 +319,7 @@ export default function ApiCoverTest() {
let appContext: common.ApplicationContext = abilityContext.getApplicationContext(); let appContext: common.ApplicationContext = abilityContext.getApplicationContext();
let baseContext: common.BaseContext = stageContext; let baseContext: common.BaseContext = stageContext;
let context: common.Context = stageContext; let context: common.Context = stageContext;
let flag = false;
let el1 = contextConstant.AreaMode.EL1; let el1 = contextConstant.AreaMode.EL1;
let el2 = contextConstant.AreaMode.EL2; let el2 = contextConstant.AreaMode.EL2;
let eventHub: common.EventHub = context.eventHub; let eventHub: common.EventHub = context.eventHub;
...@@ -334,12 +336,19 @@ export default function ApiCoverTest() { ...@@ -334,12 +336,19 @@ export default function ApiCoverTest() {
} }
abilityDelegator.addAbilityMonitor(abilityMonitor, (err, data) => { abilityDelegator.addAbilityMonitor(abilityMonitor, (err, data) => {
console.log(`printMsg, err: ${JSON.stringify(err)}, data: ${JSON.stringify(data)}`); console.log(`printMsg, err: ${JSON.stringify(err)}, data: ${JSON.stringify(data)}`);
flag = true;
}) })
let shellCmdResult: abilityDelegatorRegistry.ShellCmdResult; let shellCmdResult: abilityDelegatorRegistry.ShellCmdResult;
abilityDelegator.removeAbilityMonitor(abilityMonitor, (err, data) => {
console.log(`SUB_AA_ABILITY_Extension_API_012 printMsg, err: ${JSON.stringify(err)}, data: ${JSON.stringify(data)}`);
expect(flag).assertTrue();
done();
})
} catch (err) { } catch (err) {
console.log(`catch code: ${err.code}, message: ${err.message}`); console.log(`catch code: ${err.code}, message: ${err.message}`);
expect().assertFail();
done();
} }
done();
}) })
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册