diff --git a/ability/dmsfwk/dmsfwkfatest/src/main/js/test/DmsFwkFaTest.test.js b/ability/dmsfwk/dmsfwkfatest/src/main/js/test/DmsFwkFaTest.test.js index aa8a15b..20ba2f4 100644 --- a/ability/dmsfwk/dmsfwkfatest/src/main/js/test/DmsFwkFaTest.test.js +++ b/ability/dmsfwk/dmsfwkfatest/src/main/js/test/DmsFwkFaTest.test.js @@ -692,6 +692,10 @@ export default function DmsFwkFaTest() { console.error(TAG + ' fail, error: ' + error.code); expect(error.code).assertEqual(1); done(); + } else { + console.log(TAG + ' StartAbilityForResult_callback success'); + expect().assertFail() + done(); } }); await sleep(1000); @@ -721,7 +725,11 @@ export default function DmsFwkFaTest() { console.error(TAG + ' fail, error: ' + error.code); expect(error.code).assertEqual(1); done(); - } + } else { + console.log(TAG + ' StartAbilityForResult_callback success'); + expect().assertFail() + done(); + } }); await sleep(1000); console.info("---------------SUB_DMS_StandardOs_collaboration_Startability_StartAbilityForResult_callback_0200 is end---------------"); @@ -750,6 +758,10 @@ export default function DmsFwkFaTest() { console.error(TAG + ' fail, error: ' + error.code); expect(error.code).assertEqual(1); done(); + } else { + console.log(TAG + ' StartAbilityForResult_callback success'); + expect().assertFail() + done(); } }); done(); @@ -758,7 +770,6 @@ export default function DmsFwkFaTest() { }); - /* * @tc.number SUB_DMS_StandardOs_collaboration_connetability_connectRemoteAbility_1300 * @tc.name Connect the remote ServiceAbility.