未验证 提交 0341b555 编写于 作者: O openharmony_ci 提交者: Gitee

!7414 xts-系统权限用例下库

Merge pull request !7414 from chengxingzhen/master
......@@ -149,43 +149,5 @@ export default function actsStageContextTest() {
done()
})
})
/*
* @tc.number : ACTS_StageContext_1500
* @tc.name : get resource by Resource in applicationInfo from context(API8)
* @tc.desc : get resource by Resource in applicationInfo from context(API8)
*/
it('ACTS_StageContext_1500',0, async function (done) {
await bundleManager.getApplicationInfo("com.example.fa8_app", 0).then(appInfo => {
return globalThis.abilityContext.resourceManager.getString(appInfo.labelResource)
}).then(str => {
console.info("ACTS_StageContext_1500 labelId: " + str)
expect(str).assertEqual("fa8_app")
done()
}).catch(e => {
console.info("ACTS_StageContext_1500 error: " + e)
expect().assertFail()
done()
})
})
/*
* @tc.number : ACTS_StageContext_2200
* @tc.name : get resource by Resource in applicationInfo from context
* @tc.desc : get resource by Resource in applicationInfo from context
*/
it('ACTS_StageContext_2200',0, async function (done) {
await bundleManager.getApplicationInfo("com.example.contextapp", 0).then(appInfo => {
return globalThis.abilityContext.resourceManager.getString(appInfo.labelResource)
}).then(str => {
console.info("ACTS_StageContext_2200 labelId: " + str)
expect(str).assertEqual("ContextApp")
done()
}).catch(e => {
console.info("ACTS_StageContext_2200 error: " + e)
expect().assertFail()
done()
})
})
})
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册