diff --git a/ace/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/imageAnimator.ets b/ace/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/imageAnimator.ets index 9dd6b5158baf1abb9a1f536262bbfaf8eded2ec5..5145f03546e42fe0bc108d3a480368356933d925 100755 --- a/ace/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/imageAnimator.ets +++ b/ace/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('buttonStart').width(100).padding(5).onClick(() => { this.state = AnimationStatus.Running try { var backData = { diff --git a/ace/ace_ets_component_two/entry/src/main/ets/MainAbility/test/ImageAnimatorJsunit.test.ets b/ace/ace_ets_component_two/entry/src/main/ets/MainAbility/test/ImageAnimatorJsunit.test.ets index 351f979197b375cebd89d5164b1b0ac9cdb59153..50ff4c46ecfc49bb1d5c7276fe4a8b3fd0499ecf 100755 --- a/ace/ace_ets_component_two/entry/src/main/ets/MainAbility/test/ImageAnimatorJsunit.test.ets +++ b/ace/ace_ets_component_two/entry/src/main/ets/MainAbility/test/ImageAnimatorJsunit.test.ets @@ -64,7 +64,7 @@ export default function imageAnimatorJsunit(){ console.info("imageAnimatorTest_0100 on events_emitter err : " + JSON.stringify(err)); } await Utils.sleep(1000); - console.info("imageAnimatorTest_0100 click result is: " + JSON.stringify(sendEventByKey('button',10,""))); + console.info("imageAnimatorTest_0100 click result is: " + JSON.stringify(sendEventByKey('buttonStart',10,""))); await Utils.sleep(1000); console.info('imageAnimatorTest_0100 END'); done(); @@ -176,7 +176,7 @@ export default function imageAnimatorJsunit(){ } catch (err) { console.info("imageAnimatorTest_0600 on events_emitter err : " + JSON.stringify(err)); } - console.info("imageAnimatorTest_0600 click result is: " + JSON.stringify(sendEventByKey('button',10,""))); + console.info("imageAnimatorTest_0600 click result is: " + JSON.stringify(sendEventByKey('buttonStart',10,""))); await Utils.sleep(1000); console.info('imageAnimatorTest_0600 END'); done();