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

!8469 【ACE子系统】修改imageAnimator延时太长导致失败的测试用例

Merge pull request !8469 from 王旭鹏/master
...@@ -72,21 +72,21 @@ export default function imageAniamtorJsunit() { ...@@ -72,21 +72,21 @@ export default function imageAniamtorJsunit() {
// test the enum of state of animator // test the enum of state of animator
await CommonFunc.sleep(1000); await CommonFunc.sleep(1000);
globalThis.value.message.notify({name:'state',value:AnimationStatus.Running}) globalThis.value.message.notify({name:'state',value:AnimationStatus.Running})
await CommonFunc.sleep(2000); await CommonFunc.sleep(800);
let strJson = getInspectorByKey('imageAnimator'); let strJson = getInspectorByKey('imageAnimator');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info('[imageAniamtorJsunit_0200] component obj is: ' + obj.$attrs.state); console.info('[imageAniamtorJsunit_0200] component obj is: ' + obj.$attrs.state);
expect(obj.$attrs.state).assertEqual('AnimationStatus.Running'); expect(obj.$attrs.state).assertEqual('AnimationStatus.Running');
globalThis.value.message.notify({name:'state',value:AnimationStatus.Paused}) globalThis.value.message.notify({name:'state',value:AnimationStatus.Paused})
await CommonFunc.sleep(2000); await CommonFunc.sleep(800);
let strJson2 = getInspectorByKey('imageAnimator'); let strJson2 = getInspectorByKey('imageAnimator');
let obj2 = JSON.parse(strJson2); let obj2 = JSON.parse(strJson2);
console.info('[imageAniamtorJsunit_0200] component obj2 is: ' + obj2.$attrs.state); console.info('[imageAniamtorJsunit_0200] component obj2 is: ' + obj2.$attrs.state);
expect(obj2.$attrs.state).assertEqual('AnimationStatus.Paused'); expect(obj2.$attrs.state).assertEqual('AnimationStatus.Paused');
globalThis.value.message.notify({name:'state',value:AnimationStatus.Stopped}) globalThis.value.message.notify({name:'state',value:AnimationStatus.Stopped})
await CommonFunc.sleep(2000); await CommonFunc.sleep(800);
let strJson3 = getInspectorByKey('imageAnimator'); let strJson3 = getInspectorByKey('imageAnimator');
let obj3 = JSON.parse(strJson3); let obj3 = JSON.parse(strJson3);
console.info('[imageAniamtorJsunit_0200] component obj3 is: ' + obj3.$attrs.state); console.info('[imageAniamtorJsunit_0200] component obj3 is: ' + obj3.$attrs.state);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册