未验证 提交 88a19f12 编写于 作者: O openharmony_ci 提交者: Gitee

!4642 【包管理子系统】增加isDefaultApplication接口的callback调用场景

Merge pull request !4642 from ry/OpenHarmony-3.2-Beta2
......@@ -21,14 +21,20 @@ export default function isDefaultApplicationTest() {
/**
* @tc.number: isDefaultApplication_0100
* @tc.name: isDefaultApplication Promise
* @tc.name: isDefaultApplication Promise and Callback
* @tc.desc: No default image application is set. Query and return false
*/
it('isDefaultApplication_0100', 0, async function (done) {
const data = await defaultAppMgr.isDefaultApplication(defaultAppMgr.ApplicationType.IMAGE)
console.info("isDefaultApplication_0100 --- " + data)
expect(data).assertFalse()
done()
defaultAppMgr.isDefaultApplication(defaultAppMgr.ApplicationType.IMAGE,(err,data) => {
console.info("isDefaultApplication_0100 data--- " + data)
console.info("isDefaultApplication_0100 err--- " + err)
expect(data).assertFalse()
expect(err).assertEqual(0)
done()
})
});
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册