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

!7884 【ACE子系统】修改js crash error

Merge pull request !7884 from hekun/monthly_20221018
......@@ -65,6 +65,7 @@ export default function appearJsunit() {
console.info("testAppear01 on appearEvent err : " + JSON.stringify(err));
}
console.info("testAppear01 click result is: " + JSON.stringify(sendEventByKey('appear', 10, "")));
await Utils.sleep(1000);
console.info('[testAppear01] END');
console.info('[testAppear02] START');
......
......@@ -86,8 +86,8 @@ export default function dragEventJsunit(){
await Utils.drag(downX, downY, upX, upY, 10)
let callback = (indexEvent) => {
console.info("dragEventTest_0200 get state result is: " + JSON.stringify(indexEvent));
expect(indexEvent.data.pointX).assertNotEqual(Null);
expect(indexEvent.data.pointY).assertNotEqual(Null);
expect(Number.isNaN(indexEvent.data.pointX)).assertFalse();
expect(Number.isNaN(indexEvent.data.pointY)).assertFalse();
}
let indexEvent = {
eventId: 87,
......
......@@ -55,7 +55,7 @@ export default function playModeJsunit(){
}
let callback= (indexEvent) => {
console.info("playModeTest_0100 get state result is: " + JSON.stringify(indexEvent))
except(indexEvent.data.playMode).assertEqual(PlayMode.AlternateReverse)
expect(indexEvent.data.playMode).assertEqual(PlayMode.AlternateReverse);
}
try {
events_emitter.on(indexEvent, callback);
......
......@@ -72,7 +72,7 @@ export default function ScrollJsunit() {
expect(obj.$type).assertEqual('Scroll');
expect(obj.$attrs.scrollable).assertEqual('ScrollDirection.Vertical')
expect(obj.$attrs.scrollBarColor).assertEqual('#FFFFC0CB')
expect(obj.$attrs.scrollBarWidth).assertEqual('20.00px')
expect(obj.$attrs.scrollBarWidth).assertEqual('20.00vp')
console.info('cd ScorllGetInspectorByKey END');
done();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册