From 3ef00df2d4022fc738c4c4f7ef05f2c9baec09f9 Mon Sep 17 00:00:00 2001 From: jiyong Date: Wed, 5 Jul 2023 10:06:15 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!9210=20?= =?UTF-8?q?:=20=E3=80=90Select=E3=80=91=E5=BC=82=E5=B8=B8=E5=80=BC?= =?UTF-8?q?=E6=8C=89=E9=BB=98=E8=AE=A4=E5=80=BC=E5=A4=84=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3xts=E7=94=A8=E4=BE=8B'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entry/src/main/ets/test/SelectJsunit.test.ets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arkui/ace_ets_component_ui/entry/src/main/ets/test/SelectJsunit.test.ets b/arkui/ace_ets_component_ui/entry/src/main/ets/test/SelectJsunit.test.ets index 01dc2bfe7..6fabeaf24 100644 --- a/arkui/ace_ets_component_ui/entry/src/main/ets/test/SelectJsunit.test.ets +++ b/arkui/ace_ets_component_ui/entry/src/main/ets/test/SelectJsunit.test.ets @@ -184,16 +184,16 @@ export default function SelectJsunit() { let strJson = getInspectorByKey('select'); let obj = JSON.parse(strJson); console.info("[SelectJsunit_0400] component obj is: " + JSON.stringify(obj)); - expect(obj.$attrs.selected).assertEqual('-1'); + expect(obj.$attrs.selected).assertEqual('0'); expect(obj.$attrs.value).assertEqual('10'); expect(obj.$attrs.font).assertEqual('{"size":"16.00fp","weight":"500","family":"","style":"FontStyle.Normal"}'); expect(obj.$attrs.fontColor).assertEqual('#FF00007B'); expect(obj.$attrs.selectedOptionBgColor).assertEqual('#FF0000FF'); expect(obj.$attrs.selectedOptionFont).assertEqual('{"size":"16.00fp","weight":"400","family":"","style":"FontStyle.Normal"}'); - expect(obj.$attrs.selectedOptionFontColor).assertEqual('#FF007DFF'); - expect(obj.$attrs.optionBgColor).assertEqual('#FFFFFFFF'); + expect(obj.$attrs.selectedOptionFontColor).assertEqual('#FFFFFF00'); + expect(obj.$attrs.optionBgColor).assertEqual('#FF0000FF'); expect(obj.$attrs.optionFont).assertEqual('{"size":"16.00fp","weight":"400","family":"","style":"FontStyle.Normal"}'); - expect(obj.$attrs.optionFontColor).assertEqual('#FF00007B'); + expect(obj.$attrs.optionFontColor).assertEqual('#FFFFFF00'); await CommonFunc.sleep(1000); let strJson1 = getInspectorByKey('indexValue'); let obj1 = JSON.parse(strJson1); -- GitLab