From dcdf534f65c7d1b82ce7281ecd6369be415ecb5b Mon Sep 17 00:00:00 2001 From: chengxingzhen Date: Fri, 22 Jul 2022 18:11:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=83=E8=83=BD=E5=8A=9B=E6=96=B0=E5=A2=9Eap?= =?UTF-8?q?i=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chengxingzhen --- .../main/ets/test/ApiCoverAbility.test.ets | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/aafwk/aafwk_standard/faapicover/faapicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets b/aafwk/aafwk_standard/faapicover/faapicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets index fdcec4206..8d6440d4f 100644 --- a/aafwk/aafwk_standard/faapicover/faapicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets +++ b/aafwk/aafwk_standard/faapicover/faapicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets @@ -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 -- GitLab