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

!7215 [master]ace_ets_component_four部分未触发回调用例修复

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