提交 c385ee87 编写于 作者: H hekun

fix the crash errror

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