diff --git a/arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets b/arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets index 84c213f762a9d675bc6547698225ffd28db33254..2cd211802f4cca8a0870317ce43db9acd95f104e 100644 --- a/arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets +++ b/arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets @@ -321,7 +321,7 @@ export default function swiperJsunit() { try { let eventData = { data: { - "indicator": "false" + "indicator": false } } let indexEvent = { diff --git a/arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets b/arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets index d7dca8a5ced0c61c69e3f0939f0f0223cfc1dc20..e8c834790610f25bda9e439badbe5ba54d55d399 100644 --- a/arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets +++ b/arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets @@ -219,7 +219,7 @@ export default function textStyleJsunit() { console.info("[testTextStyle008] component strJson:" + strJson); let obj = JSON.parse(strJson); console.info("[testTextStyle008] fontSize: " + obj.$attrs.fontSize); - expect(obj.$attrs.fontSize).assertEqual('-2147483648.00fp'); + expect(obj.$attrs.fontSize).assertEqual('16.00fp'); done(); }); diff --git a/arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/page2.ets b/arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/page2.ets index fd5d474520843724d499a8fd7ad37780ad1c40e9..72be9f5739354996e17186ec6e5f5c39066165c9 100644 --- a/arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/page2.ets +++ b/arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/page2.ets @@ -25,7 +25,7 @@ const TAG = 'ets_apiLack_add'; struct Second { private content: string = "这是第二页" @State text: string = router.getParams()['text'] - @State data: number[] = router.getParams()['data'] + @State data: any = router.getParams()['data'] @State secondData : string = '' build() { @@ -37,7 +37,7 @@ struct Second { .fontSize(30) .key("SingleDataText") .onClick(()=>{ - this.secondData = (this.data[1]).toString() + this.secondData = (this.data.array[1]).toString() try { var backData = { data: { diff --git a/arkui/ace_ets_component_five/entry/src/main/ets/test/ShapeClippingJsunit.test.ets b/arkui/ace_ets_component_five/entry/src/main/ets/test/ShapeClippingJsunit.test.ets index ed14f108f831a4615338b1db0d5387ad17696b8e..eb1dbfc7e7c512f79ccdb3e991efb04a2708ad33 100644 --- a/arkui/ace_ets_component_five/entry/src/main/ets/test/ShapeClippingJsunit.test.ets +++ b/arkui/ace_ets_component_five/entry/src/main/ets/test/ShapeClippingJsunit.test.ets @@ -68,7 +68,9 @@ export default function shapeClippingJsunit() { let strJson = getInspectorByKey('image_mask'); let obj = JSON.parse(strJson); console.info("[testShapeClipping002] component obj is: " + JSON.stringify(obj)); - expect(obj.$attrs.mask.shape).assertEqual('Rect'); + console.info("[testShapeClipping002] component mask obj is: " + JSON.stringify(obj.$attrs.mask)); + let mask = JSON.parse(JSON.stringify(obj.$attrs.mask)); + expect(mask.shape).assertEqual('Rect'); expect(obj.$attrs.clip).assertEqual('false'); console.info('[testShapeClipping002] END'); done(); @@ -95,7 +97,9 @@ export default function shapeClippingJsunit() { let strJsonNew = getInspectorByKey('image_mask'); let objNew = JSON.parse(strJsonNew); console.info("[testShapeClipping003] component objNew is: " + JSON.stringify(objNew)); - expect(objNew.$attrs.mask.shape).assertEqual('Circle'); + console.info("[testShapeClipping003] component mask obj is: " + JSON.stringify(objNew.$attrs.mask)); + let mask = JSON.parse(JSON.stringify(objNew.$attrs.mask)); + expect(mask.shape).assertEqual('Circle'); console.info('[testShapeClipping003] END'); done(); }); diff --git a/arkui/ace_ets_component_three/entry/src/main/ets/test/TextJsunit.test.ets b/arkui/ace_ets_component_three/entry/src/main/ets/test/TextJsunit.test.ets index 6e690d5cd967ca3afa3276c56583fe30a96c5d0c..62e630cd25989b667db09ae4ee5d3fa5c6626d9d 100644 --- a/arkui/ace_ets_component_three/entry/src/main/ets/test/TextJsunit.test.ets +++ b/arkui/ace_ets_component_three/entry/src/main/ets/test/TextJsunit.test.ets @@ -296,7 +296,7 @@ export default function textJsunit() { let strJsonNew = getInspectorByKey('text'); let objNew = JSON.parse(strJsonNew); console.info("testText_1300 component objNew is: " + JSON.stringify(objNew.$attrs.fontSize)); - expect(objNew.$attrs.fontSize).assertEqual('nanfp'); + expect(objNew.$attrs.fontSize).assertEqual('16.00fp'); console.info('testText_1300 END'); done(); }); @@ -322,7 +322,7 @@ export default function textJsunit() { let strJsonNew = getInspectorByKey('text'); let objNew = JSON.parse(strJsonNew); console.info("testText_1400 component objNew is: " + JSON.stringify(objNew.$attrs.fontSize)); - expect(objNew.$attrs.fontSize).assertEqual('-20.00fp'); + expect(objNew.$attrs.fontSize).assertEqual('16.00fp'); console.info('testText_1400 END'); done(); }); diff --git a/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/configuration.ets b/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/configuration.ets index f52e3cf28e2b18936c481ae93099c426c03c5087..6397855feb43fc773754a76f6f6cbe08e07fed57 100644 --- a/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/configuration.ets +++ b/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/configuration.ets @@ -22,7 +22,7 @@ struct promptExample { build(){ Column(){ Button('click') - .key('button') + .key('button_c') .backgroundColor('#FF0B8FE2') .fontSize(20) .margin({top: 20}) diff --git a/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/imageAnimator.ets b/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/imageAnimator.ets index e59ffb7d252e32d4d6ae1c0d37a6e5d9d6ff605c..db1a425213f69b2ef74eb3dcdf53727db522916f 100644 --- a/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/imageAnimator.ets +++ b/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/imageAnimator.ets @@ -97,7 +97,7 @@ struct ImageAnimatorExample { console.info('Finish') }) Row() { - Button('start').key('button').width(100).padding(5).onClick(() => { + Button('start').key('button_0').width(100).padding(5).onClick(() => { this.state = AnimationStatus.Running try { var backData = { @@ -106,7 +106,7 @@ struct ImageAnimatorExample { } } var backEvent = { - eventId: 115, + eventId: 1150, priority: events_emitter.EventPriority.LOW } console.info("imageAnimator 115 button start to emit action state") diff --git a/arkui/ace_ets_component_two/entry/src/main/ets/test/ConfigurationJsunit.test.ets b/arkui/ace_ets_component_two/entry/src/main/ets/test/ConfigurationJsunit.test.ets index 0b88f58fa5d90523373a074257a372361717404e..03ed25ab5c15b4f5c9a4d8c2985d38df62cea5be 100644 --- a/arkui/ace_ets_component_two/entry/src/main/ets/test/ConfigurationJsunit.test.ets +++ b/arkui/ace_ets_component_two/entry/src/main/ets/test/ConfigurationJsunit.test.ets @@ -62,7 +62,7 @@ export default function transFormJsunit() { } catch (err) { console.info("configurationTest_0100 on configurationEvent err : " + JSON.stringify(err)); } - console.info("testAppear01 click result is: " + JSON.stringify(sendEventByKey('button', 10, ""))); + console.info("testAppear01 click result is: " + JSON.stringify(sendEventByKey('button_c', 10, ""))); console.info('[configurationTest01] END'); }); }) diff --git a/arkui/ace_ets_component_two/entry/src/main/ets/test/ImageAnimatorJsunit.test.ets b/arkui/ace_ets_component_two/entry/src/main/ets/test/ImageAnimatorJsunit.test.ets index 563aaa702613f533ce8d323dc32023f32348a6ec..9dd851395e6817b3706b6105b63278ff4484b90e 100644 --- a/arkui/ace_ets_component_two/entry/src/main/ets/test/ImageAnimatorJsunit.test.ets +++ b/arkui/ace_ets_component_two/entry/src/main/ets/test/ImageAnimatorJsunit.test.ets @@ -56,15 +56,16 @@ export default function imageAnimatorJsunit(){ done(); } let indexEvent = { - eventId: 115, + eventId: 1150, priority: events_emitter.EventPriority.LOW } try { events_emitter.on(indexEvent, callback); - console.info("imageAnimatorTest_0100 click result is: " + JSON.stringify(sendEventByKey('button',10,""))); } catch (err) { console.info("imageAnimatorTest_0100 on events_emitter err : " + JSON.stringify(err)); } + console.info("imageAnimatorTest_0100 click result is: " + JSON.stringify(sendEventByKey('button_0',10,""))); + await Utils.sleep(1000); console.info('imageAnimatorTest_0100 END'); });