未验证 提交 4b05c238 编写于 作者: O openharmony_ci 提交者: Gitee

!4720 getAbilityLabel接口callback形式,调用成功第一个参数为null 3.1

Merge pull request !4720 from 耿文广/OpenHarmony-3.1-Release
......@@ -41,7 +41,7 @@ export default function getAbilityLabelJsUnit() {
expect(error).assertFail();
});
Bundle.getAbilityLabel(BUNDLE_NAME, ABILITY_NAME, (error, data) => {
expect(error).assertEqual(undefined);
expect(error).assertNull();
expect(data).assertEqual("entry_MainAbility");
done();
});
......@@ -66,7 +66,7 @@ export default function getAbilityLabelJsUnit() {
let timeNewStamp = Utils.getNowTime();
Utils.getDurationTime('[context_getAbilityLabel_test_0200]', timeOldStamp, timeNewStamp);
expect(data).assertEqual("bmsfirstright");
expect(error).assertEqual(undefined);
expect(error).assertNull();
done();
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册