From c389c2aa09bf313df61d8c40f4dcc67d7c1a6c88 Mon Sep 17 00:00:00 2001 From: wang-xupeng2 Date: Sun, 28 May 2023 19:04:30 +0800 Subject: [PATCH] update TextInput and marquee testcases Signed-off-by: wang-xupeng2 --- .../entry/src/main/ets/test/TextInputJsunit.test.ets | 2 +- .../entry/src/main/ets/test/marqueeJsunit.test.ets | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arkui/ace_ets_component_ui/entry/src/main/ets/test/TextInputJsunit.test.ets b/arkui/ace_ets_component_ui/entry/src/main/ets/test/TextInputJsunit.test.ets index f7dd6ea33..4a49a62ba 100644 --- a/arkui/ace_ets_component_ui/entry/src/main/ets/test/TextInputJsunit.test.ets +++ b/arkui/ace_ets_component_ui/entry/src/main/ets/test/TextInputJsunit.test.ets @@ -267,7 +267,7 @@ export default function TextInputJsunit() { console.info("[TextInputJsunit_0500] textAlign: " + JSON.stringify(obj.$attrs.textAlign)); expect(obj.$attrs.placeholder).assertEqual(''); expect(obj.$attrs.type).assertEqual('InputType.Normal'); - expect(obj.$attrs.placeholderColor).assertEqual('#FF000000'); + expect(obj.$attrs.placeholderColor).assertEqual('#FF008000'); expect(obj.$attrs.placeholderFont).assertEqual('{"style":"FontStyle.Normal","size":"18.00fp","weight":"500","fontFamily":"sans-serif"}'); expect(obj.$attrs.enterKeyType).assertEqual('EnterKeyType.Done'); expect(obj.$attrs.caretColor).assertEqual('#FF00007B'); diff --git a/arkui/ace_ets_component_ui/entry/src/main/ets/test/marqueeJsunit.test.ets b/arkui/ace_ets_component_ui/entry/src/main/ets/test/marqueeJsunit.test.ets index 94ca07b1e..6d3785a05 100644 --- a/arkui/ace_ets_component_ui/entry/src/main/ets/test/marqueeJsunit.test.ets +++ b/arkui/ace_ets_component_ui/entry/src/main/ets/test/marqueeJsunit.test.ets @@ -131,7 +131,7 @@ export default function marqueeJsunit() { let strJson = getInspectorByKey('marquee'); let obj = JSON.parse(strJson); // to confirm - expect(parseInt(obj.$attrs.step)).assertEqual(vp2px(6)); + expect(parseInt(obj.$attrs.step)).assertEqual(6); done(); }); -- GitLab