未验证 提交 736895f0 编写于 作者: O openharmony_ci 提交者: Gitee

!6462 XTS失败用例适配

Merge pull request !6462 from chengxingzhen/master
...@@ -772,7 +772,7 @@ export default function StartAbilityForResult() { ...@@ -772,7 +772,7 @@ export default function StartAbilityForResult() {
/* /*
* @tc.number: FreeInstall_FA_StartAbilityForResult_1900 * @tc.number: FreeInstall_FA_StartAbilityForResult_1900
* @tc.name: startAbilityForResult: yuanzihua already installed,input wrong flags('11'),start successfully. * @tc.name: startAbilityForResult: yuanzihua already installed,input wrong flags('11'),start failed.
* @tc.desc: Function test * @tc.desc: Function test
* @tc.level 0 * @tc.level 0
*/ */
...@@ -800,14 +800,14 @@ export default function StartAbilityForResult() { ...@@ -800,14 +800,14 @@ export default function StartAbilityForResult() {
} }
await featureAbility.startAbilityForResult(startAbilityParameter) await featureAbility.startAbilityForResult(startAbilityParameter)
.then((data) => { .then((data) => {
details = data;
console.info(TAG + ' StartAbilityForResultPromise successful. Data: ' + JSON.stringify(data)) console.info(TAG + ' StartAbilityForResultPromise successful. Data: ' + JSON.stringify(data))
}).catch((error) => { }).catch((error) => {
details = error;
console.info(TAG + ' StartAbilityForResultPromise failed. Cause: ' + JSON.stringify(error)); console.info(TAG + ' StartAbilityForResultPromise failed. Cause: ' + JSON.stringify(error));
}) })
await Utils.sleep(2000); await Utils.sleep(2000);
console.log(TAG + " resultCode: " + details.resultCode); console.log(TAG + " errorCode: " + details.code);
expect(details.resultCode).assertEqual(1); expect(details.code).assertEqual(1);
done(); done();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册