diff --git a/arkui/ace_ets_component_apilack/entry/src/main/ets/test/gauge.test.ets b/arkui/ace_ets_component_apilack/entry/src/main/ets/test/gauge.test.ets index 0d536a37a54b6d2b2de62e596863b58ca83d7675..ae819ae0bccb40f6f6c6f07f9ce34ab0883c91ea 100644 --- a/arkui/ace_ets_component_apilack/entry/src/main/ets/test/gauge.test.ets +++ b/arkui/ace_ets_component_apilack/entry/src/main/ets/test/gauge.test.ets @@ -142,7 +142,7 @@ export default function gaugeColorsJsunit() { console.info("[testgaugeColors0006] component colors strJson:" + strJson); let obj = JSON.parse(strJson); expect(obj.$type).assertEqual('Gauge'); - expect(obj.$attrs.colors).assertEqual('["#FF317AF7","#FF5BA854","#FFE08C3A","#FF9C554B","#FFD94838"]'); + expect(obj.$attrs.colors).assertEqual('[["#FF317AF7",1],["#FF5BA854",1],["#FFE08C3A",1],["#FF9C554B",1],["#FFD94838",1]]'); console.info("[testgaugeColors0006] colors value :" + obj.$attrs.colors); done(); }); diff --git a/arkui/ace_ets_component_apilack/entry/src/main/ets/test/line.test.ets b/arkui/ace_ets_component_apilack/entry/src/main/ets/test/line.test.ets index 38bb38eadea2710b6e0ce9b7b3432ea91c2f6a9d..20958552a1e7dc2fc888f9b4ccad40bbf43402b9 100644 --- a/arkui/ace_ets_component_apilack/entry/src/main/ets/test/line.test.ets +++ b/arkui/ace_ets_component_apilack/entry/src/main/ets/test/line.test.ets @@ -108,7 +108,7 @@ export default function lineNeJsunit() { console.info("[testlineNe0006] component height strJson:" + strJson); let obj = JSON.parse(strJson); expect(obj.$type).assertEqual('Shape'); - expect(obj.$attrs.height).assertEqual("200.00"); + expect(obj.$attrs.height).assertEqual("200.00vp"); console.info("[testlineNe0006] height value :" + obj.$attrs.height); done(); }); diff --git a/arkui/ace_ets_component_apilack/entry/src/main/ets/test/list_item.test.ets b/arkui/ace_ets_component_apilack/entry/src/main/ets/test/list_item.test.ets index 21ae0c0d0c8b4d7b1e31ca1904eeea8430affbb5..4520c9cbda705b24d154d9958b84161f4ed6a223 100644 --- a/arkui/ace_ets_component_apilack/entry/src/main/ets/test/list_item.test.ets +++ b/arkui/ace_ets_component_apilack/entry/src/main/ets/test/list_item.test.ets @@ -21,7 +21,7 @@ import Utils from './Utils.ets' export default function list_itemOnSelectJsunit() { describe('list_itemOnSelectTest', function () { beforeAll(async function (done) { - console.info("flex beforeEach start");testlist_itemOnSelect0002 + console.info("flex beforeEach start"); let options = { uri: 'pages/list_item', } @@ -75,7 +75,7 @@ export default function list_itemOnSelectJsunit() { console.info("[testlist_itemOnSelect0002] component border strJson:" + strJson); let obj = JSON.parse(strJson); expect(obj.$type).assertEqual('ListItem'); - expect(obj.$attrs.selectable).assertEqual(false); + expect(obj.$attrs.selectable).assertEqual("false"); console.info("[testlist_itemOnSelect0002] selectable value :" + obj.$attrs.selectable); done(); }); @@ -106,7 +106,7 @@ export default function list_itemOnSelectJsunit() { console.info('selectOnSelect testlist_itemSwipeAction0004 START'); await Utils.sleep(2000); let obj = JSON.stringify(sendEventByKey('Del', 10, "")) - expect(obj).assertEqual('false'); + expect(obj).assertEqual('true'); done(); }); }) diff --git a/arkui/ace_ets_component_apilack/entry/src/main/ets/test/swiper.test.ets b/arkui/ace_ets_component_apilack/entry/src/main/ets/test/swiper.test.ets index 280de445a85098dda6dec1a8d52278caeb9c3396..d1ab4f572a3eb7f680c176b3676e7dc3c9403670 100644 --- a/arkui/ace_ets_component_apilack/entry/src/main/ets/test/swiper.test.ets +++ b/arkui/ace_ets_component_apilack/entry/src/main/ets/test/swiper.test.ets @@ -28,7 +28,7 @@ export default function swiperCurveJsunit() { router.clear(); let pages = router.getState(); console.info("get swiper state success " + JSON.stringify(pages)); - if (!("swiper" == pages.name)) + if (!("swiper" == pages.name)) { console.info("get swiper state success " + JSON.stringify(pages.name)); let result = await router.push(options); await Utils.sleep(2000); diff --git a/arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/textArea.ets b/arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/textArea.ets index 69e0c2d2d93baf2d5fb769cdbc17bb72587c06e1..00c7a0f99afb50a845dfd80437a33cb6f0661f26 100644 --- a/arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/textArea.ets +++ b/arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/textArea.ets @@ -19,7 +19,7 @@ import events_emitter from '@ohos.events.emitter'; @Component struct TextAreaExample2 { @State text: string = 'TextArea' - @State fontColor: string = "Color.Red"; + @State fontColor: string = "#FF182432"; @State fontSize: number = 30; @State textAlign: TextAlign = TextAlign.Center; @State text: String = 'test text'; diff --git a/arkui/ace_ets_component_four/entry/src/main/ets/test/TextAreaJsunit.test.ets b/arkui/ace_ets_component_four/entry/src/main/ets/test/TextAreaJsunit.test.ets index bbe66aa74231df52bdf998c61e5ec30552224576..bb4b52af25bf6a4f0fbe0cbc04d60dd894eb30fe 100644 --- a/arkui/ace_ets_component_four/entry/src/main/ets/test/TextAreaJsunit.test.ets +++ b/arkui/ace_ets_component_four/entry/src/main/ets/test/TextAreaJsunit.test.ets @@ -90,7 +90,8 @@ export default function textAreaJsunit() { let strJson = getInspectorByKey('textArea'); let obj = JSON.parse(strJson); console.info("[textAreaTest03] obj is: " + JSON.stringify(obj)); - expect(obj.$attrs.fontColor).assertEqual('#FF000000'); + // 适配开发侧非法入参修改 + expect(obj.$attrs.fontColor).assertEqual('#FF182432'); console.info('textAreaTest03 END'); done(); });