提交 14c5f188 编写于 作者: W wanghang 提交者: 耿文广

fixed 75180ee9 from https://gitee.com/geng-wenguang/xts_acts/pulls/4685

IssueNo:#I5JBFN
Description:fix getAbilityLabel callback
Sig:SIG_ApplicaitonFramework
Feature or Bugfix:Bugfix
Binary Source:No
Signed-off-by: Nwanghang <wanghang26@huawei.com>
Change-Id: I40390276811e79edce1a16a0551702b79c240a94
上级 e74e3b92
......@@ -268,7 +268,7 @@ export default function actsBmsJsModuleNameTest() {
expect(err).assertFail();
});
bundle.getAbilityLabel(BUNDLE_NAME, MODULE_NAME3, ABILITY_NAME, (err, data) => {
expect(err).assertEqual(SUCCESS_CODE);
expect(err).assertNull();
if (err) {
console.error('[GetAbilityLabel_0300]Operation failed. Err: ' + JSON.stringify(err));
}
......
......@@ -41,7 +41,7 @@ export default function getAbilityLabel() {
expect(error).assertFail();
});
Bundle.getAbilityLabel(BUNDLE_NAME, ABILITY_NAME, (error, data) => {
expect(error).assertEqual(0);
expect(error).assertNull();
expect(data).assertEqual("entry_MainAbility");
done();
});
......@@ -66,7 +66,7 @@ export default function getAbilityLabel() {
let timeNewStamp = Utils.getNowTime();
Utils.getDurationTime('[context_getAbilityLabel_test_0200]', timeOldStamp, timeNewStamp);
expect(data).assertEqual("bmsfirstright");
expect(error).assertEqual(0);
expect(error).assertNull();
done();
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册