提交 5e9c02a0 编写于 作者: K kirl75

提交onBackPress2

Signed-off-by: Nkirl75 <kirl.liu@huawei.com>
上级 77e08337
...@@ -374,13 +374,13 @@ export default function ApiCoverTest() { ...@@ -374,13 +374,13 @@ export default function ApiCoverTest() {
}) })
}) })
/* /*
* @tc.number SUB_AA_AMS_Context_0200 * @tc.number SUB_AA_AMS_Context_0200
* @tc.name Register the listener of Ability and cancel the listener. * @tc.name Register the listener of Ability and cancel the listener.
* @tc.desc Function test * @tc.desc Function test
* @tc.level 3 * @tc.level 3
*/ */
it('SUB_AA_AMS_Context_0200', 0, async function (done) { it('SUB_AA_AMS_Context_0200', 0, async function (done) {
await globalThis.abilityContext.eventHub.on("contextEvent", func1) await globalThis.abilityContext.eventHub.on("contextEvent", func1)
globalThis.abilityContext.eventHub.emit("contextEvent", "aa", "bb") globalThis.abilityContext.eventHub.emit("contextEvent", "aa", "bb")
await sleep(500) await sleep(500)
......
...@@ -255,6 +255,7 @@ export default function stageAppContextTest(abilityContext) { ...@@ -255,6 +255,7 @@ export default function stageAppContextTest(abilityContext) {
context.getProcessRunningInformation((err, data) => { context.getProcessRunningInformation((err, data) => {
console.log(TAG + " result = " + JSON.stringify(data)); console.log(TAG + " result = " + JSON.stringify(data));
expect(data[0].processName).assertEqual("com.example.stageappcontexttest"); expect(data[0].processName).assertEqual("com.example.stageappcontexttest");
expect(typepf data[0].state).assertEqual("number");
}) })
done(); done();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册