diff --git a/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/scrollBar.ets b/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/scrollBar.ets index 9cf44169ee96256680a7ddf860d5bb11317fe8d8..c6a5619e5f58e9189760e0030e2f3afcb4f56754 100644 --- a/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/scrollBar.ets +++ b/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/scrollBar.ets @@ -32,8 +32,7 @@ struct ScrollBarExample { this.directionValue = directionObject.directionValue; } if (eventData.data.stateValue != null) { - let stateObject = JSON.parse(eventData.data.stateObject); - this.stateValue = stateObject.stateValue; + this.stateValue = eventData.data.stateValue; } } } 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 2d3b6f056c1e097b8826aa597d79165bfe554dd8..00da0b78591d1d8682cdd0780430cb0eb6e1b339 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 @@ -120,7 +120,7 @@ export default function imageAnimatorJsunit(){ await Utils.sleep(1500); let callback = (indexEvent) => { console.info("imageAnimatorTest_0400 get state result is: " + JSON.stringify(indexEvent)); - expect(indexEvent.data.fillMode).assertEqual(Forwards); + expect(indexEvent.data.fillMode).assertEqual(0); } let indexEvent = { eventId: 118, @@ -164,7 +164,7 @@ export default function imageAnimatorJsunit(){ await Utils.sleep(1500); let callback = (indexEvent) => { console.info("imageAnimatorTest_0600 get state result is: " + JSON.stringify(indexEvent)); - expect(indexEvent.data.string).assertEqual('repeat'); + expect(indexEvent.data.string).assertEqual('Repeat'); } let indexEvent = { eventId: 114, diff --git a/arkui/ace_ets_component_two/entry/src/main/ets/test/ScrollBarJsunit.test.ets b/arkui/ace_ets_component_two/entry/src/main/ets/test/ScrollBarJsunit.test.ets index d54c7a57900a3def71d158a6f7554266605079f2..60d3a743a300d406420d28393b1a3ab6bd7be4cf 100644 --- a/arkui/ace_ets_component_two/entry/src/main/ets/test/ScrollBarJsunit.test.ets +++ b/arkui/ace_ets_component_two/entry/src/main/ets/test/ScrollBarJsunit.test.ets @@ -118,7 +118,7 @@ export default function scrollBarJsunit() { console.info("[testScrollBar004] component strJson:" + strJson); let obj = JSON.parse(strJson); console.info("[testScrollBar004] state:" + obj.$attrs.state); - expect(obj.$attrs.state).assertEqual('BarState.Off'); + expect(obj.$attrs.state).assertEqual('BarState.Auto'); done(); }); @@ -144,7 +144,7 @@ export default function scrollBarJsunit() { console.info("[testScrollBar005] component strJson:" + strJson); let obj = JSON.parse(strJson); console.info("[testScrollBar005] state:" + obj.$attrs.state); - expect(obj.$attrs.state).assertEqual('BarState.Off'); + expect(obj.$attrs.state).assertEqual('BarState.Auto'); done(); }); })