提交 c1fb2994 编写于 作者: B bayanxing

ace_ets_component_four部分未触发回调用例修复

Signed-off-by: Nbayanxing <bayanxing@kaihong.com>
上级 5e6727d2
......@@ -50,6 +50,7 @@ export default function customDialogControllerJsunit() {
var callback = (eventData) => {
console.info("[testClickEvent001] get event state result is: " + JSON.stringify(eventData));
expect(eventData.data.ACTION).assertEqual(true)
done();
}
var innerEvent = {
eventId: 236,
......@@ -60,10 +61,9 @@ export default function customDialogControllerJsunit() {
} catch (err) {
console.info("[testClickEvent001] on events_emitter err : " + JSON.stringify(err));
}
console.info('[testClickEvent001] sendEventByKey ' + JSON.stringify(sendEventByKey('button', 10, "")));
console.info('[testClickEvent001] sendEventByKey ' + JSON.stringify(sendEventByKey('dialogController', 10, "")));
await Utils.sleep(1000)
console.info('[testClickEvent001] testSendTouchEvent END');
done();
});
})
......
......@@ -50,10 +50,13 @@ export default function systemRouterJsunit() {
} catch (err) {
console.error("[systemRouterTest002] push page error " + JSON.stringify(result));
}
await Utils.sleep(1000);
router.clear();
await Utils.sleep(1500);
let callback = (paramsEvent) => {
console.info("[systemRouterTest002] get state result is: " + JSON.stringify(paramsEvent));
expect(paramsEvent.data.params).assertEqual('B Page');
done();
}
let paramsEvent = {
eventId: 211,
......@@ -69,7 +72,6 @@ export default function systemRouterJsunit() {
await Utils.sleep(1000);
router.back();
await Utils.sleep(1000);
done();
});
it('systemRouterTest003', 0, async function (done) {
......@@ -131,6 +133,7 @@ export default function systemRouterJsunit() {
let callback = (paramsEvent) => {
console.info("[systemRouterTest005] get state result is: " + JSON.stringify(paramsEvent));
expect(paramsEvent.data.params).assertEqual('B Page');
done();
}
let paramsEvent = {
eventId: 211,
......@@ -143,7 +146,6 @@ export default function systemRouterJsunit() {
}
console.info("[systemRouterTest005] click replace button result is: "
+ JSON.stringify(sendEventByKey('ReplaceButtonA', 10, "")));
done();
});
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册