From 5174f392e79218dec3abab80b05417bd9047b531 Mon Sep 17 00:00:00 2001 From: luffy505 Date: Sat, 26 Mar 2022 14:12:21 +0800 Subject: [PATCH] modify ace test Signed-off-by: luffy505 --- .../test/DatePickerJsunit.test.ets | 11 ------ .../MainAbility/test/ToggleJsunit.test.ets | 34 ------------------- 2 files changed, 45 deletions(-) diff --git a/ace/ace_ets_component_two/entry/src/main/ets/MainAbility/test/DatePickerJsunit.test.ets b/ace/ace_ets_component_two/entry/src/main/ets/MainAbility/test/DatePickerJsunit.test.ets index 70958e7d0..b2fc353fc 100755 --- a/ace/ace_ets_component_two/entry/src/main/ets/MainAbility/test/DatePickerJsunit.test.ets +++ b/ace/ace_ets_component_two/entry/src/main/ets/MainAbility/test/DatePickerJsunit.test.ets @@ -56,17 +56,6 @@ export default function datePickerJsunit() { done(); }); - it('datePickerTest_0200', 0, async function (done) { - console.info('datePickerTest_0200 START'); - let strJson = getInspectorByKey('datePicker'); - console.info("datePickerTest_0200 component strJson:" + strJson); - let obj = JSON.parse(strJson); - console.info("datePickerTest_0200 component obj is: " + JSON.stringify(obj)); - expect(obj.$attrs.useMilitaryTime).assertEqual('true'); - console.info('datePickerTest_0200 END'); - done(); - }); - it('datePickerTest_0300', 0, async function (done) { console.info('datePickerTest_0300 START'); try { diff --git a/ace/ace_ets_third_test/entry/src/main/ets/MainAbility/test/ToggleJsunit.test.ets b/ace/ace_ets_third_test/entry/src/main/ets/MainAbility/test/ToggleJsunit.test.ets index e3689ddde..1779e06d6 100644 --- a/ace/ace_ets_third_test/entry/src/main/ets/MainAbility/test/ToggleJsunit.test.ets +++ b/ace/ace_ets_third_test/entry/src/main/ets/MainAbility/test/ToggleJsunit.test.ets @@ -97,40 +97,6 @@ export default function toggleJsunit() { done(); }); - /** - * @tc.number SUB_ACE_BASIC_ETS_API_1660 - * @tc.name testToggle030 - * @tc.desc aceEtsTest - */ - it('testToggle030', 0, async function (done) { - console.info('testToggle030 START'); - let strJson = getInspectorByKey('toggle3'); - let obj = JSON.parse(strJson); - console.info("[toggle3] get inspector value is: " + JSON.stringify(obj)); - expect(obj.$type).assertEqual('Toggle') - expect(obj.$attrs.type).assertEqual('ToggleType.Checkbox') - expect(obj.$attrs.isOn).assertEqual('false') - console.info('testToggle030 End'); - done(); - }); - - /** - * @tc.number SUB_ACE_BASIC_ETS_API_1670 - * @tc.name testToggle040 - * @tc.desc aceEtsTest - */ - it('testToggle040', 0, async function (done) { - console.info('testToggle040 START'); - let strJson = getInspectorByKey('toggle4'); - let obj = JSON.parse(strJson); - console.info("[toggle4] get inspector value is: " + JSON.stringify(obj)); - expect(obj.$type).assertEqual('Toggle') - expect(obj.$attrs.type).assertEqual('ToggleType.Checkbox') - expect(obj.$attrs.isOn).assertEqual('true') - console.info('testToggle040 End'); - done(); - }); - /** * @tc.number SUB_ACE_BASIC_ETS_API_1680 * @tc.name testToggle050 -- GitLab