未验证 提交 a851d0e5 编写于 作者: O openharmony_ci 提交者: Gitee

!7554 用例适配3.1

Merge pull request !7554 from 陈宇怀/OpenHarmony-3.1-Release
...@@ -97,7 +97,7 @@ struct ImageAnimatorExample { ...@@ -97,7 +97,7 @@ struct ImageAnimatorExample {
console.info('Finish') console.info('Finish')
}) })
Row() { Row() {
Button('start').key('button').width(100).padding(5).onClick(() => { Button('start').key('buttonStart').width(100).padding(5).onClick(() => {
this.state = AnimationStatus.Running this.state = AnimationStatus.Running
try { try {
var backData = { var backData = {
......
...@@ -64,7 +64,7 @@ export default function imageAnimatorJsunit(){ ...@@ -64,7 +64,7 @@ export default function imageAnimatorJsunit(){
console.info("imageAnimatorTest_0100 on events_emitter err : " + JSON.stringify(err)); console.info("imageAnimatorTest_0100 on events_emitter err : " + JSON.stringify(err));
} }
await Utils.sleep(1000); 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); await Utils.sleep(1000);
console.info('imageAnimatorTest_0100 END'); console.info('imageAnimatorTest_0100 END');
done(); done();
...@@ -176,7 +176,7 @@ export default function imageAnimatorJsunit(){ ...@@ -176,7 +176,7 @@ export default function imageAnimatorJsunit(){
} catch (err) { } catch (err) {
console.info("imageAnimatorTest_0600 on events_emitter err : " + JSON.stringify(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); await Utils.sleep(1000);
console.info('imageAnimatorTest_0600 END'); console.info('imageAnimatorTest_0600 END');
done(); done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册