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

!4512 元能力新增api覆盖

Merge pull request !4512 from chengxingzhen/OpenHarmony-3.1-Release
......@@ -74,6 +74,28 @@ export default function ApiCoverTest() {
expect(0).assertEqual(FormInfo.FormState.DEFAULT)
expect(1).assertEqual(FormInfo.FormState.READY)
done();
});
/*
* @tc.number SUB_AA_Form_Provider_Test_FormInfo_0200
* @tc.name Get all FormInfo.
* @tc.desc Function test
* @tc.level 3
*/
it('SUB_AA_Form_Provider_Test_FormInfo_0200', 0, async function (done) {
let TAG = 'SUB_AA_Form_Provider_Test_FormInfo_0200===<'
let Configuration = {
language: 'en-us'
}
try {
let formConfigAbility = FormInfo.FormInfo.formConfigAbility
let relatedBundleName = FormInfo.FormInfo.relatedBundleName
expect().assertFail();
done();
} catch(error) {
expect(Configuration.language).assertEqual('en-us')
done()
}
});
})
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册