update ability/dmsfwk/dmsfwkfatest/src/main/js/test/DmsFwkFaTest.test.js.

Signed-off-by: zhaominjie11 <zhaominjie9@huawei.com>
This commit is contained in:
zhaominjie11 2024-03-18 01:59:07 +00:00 committed by Gitee
parent f2c2b05ab7
commit 5e2e042839
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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.