From f28af034c0d91f83fe29acbd3c3cc45c8fe5c81c Mon Sep 17 00:00:00 2001 From: limeng Date: Sat, 26 Aug 2023 15:31:45 +0800 Subject: [PATCH] =?UTF-8?q?fixed=2089f6f8a=20from=20https://gitee.com/lime?= =?UTF-8?q?ng1210/xts=5Facts/pulls/9884=20ListItem=E9=95=BF=E8=B7=9D?= =?UTF-8?q?=E7=A6=BB=E5=B7=A6=E6=BB=91=E5=88=A0=E9=99=A4=EF=BC=8CbindMenu?= =?UTF-8?q?=E8=83=BD=E5=8A=9B=E5=A2=9E=E5=BC=BAxts=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: limeng --- .../src/main/ets/test/BindMenu.test.ets | 18 +----------------- .../src/main/ets/test/ListDelete.test.ets | 4 ++-- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/arkui/ace_ets_component_api/src/main/ets/test/BindMenu.test.ets b/arkui/ace_ets_component_api/src/main/ets/test/BindMenu.test.ets index 472faddad..73ac5f535 100644 --- a/arkui/ace_ets_component_api/src/main/ets/test/BindMenu.test.ets +++ b/arkui/ace_ets_component_api/src/main/ets/test/BindMenu.test.ets @@ -93,25 +93,9 @@ export default function BindMenuTest() { let CASE = 'ArkUI_Menu_0200' console.info(`${SUITE} ${CASE} START`); - - async function step2() { - let callback2 = (event) => { - expect(event.data.action).assertEqual('onDisappear'); - done(); - } - let event2 = { - eventId: 60003, - priority: events_emitter.EventPriority.LOW - } - events_emitter.on(event2, callback2); - let driver = Driver.create() - await driver.delayMs(waitUiReadyMs) - driver.click(100, 400) - } - let callback = (event) => { expect(event.data.action).assertEqual('onAppear'); - step2() + done() } let event = { eventId: 60002, diff --git a/arkui/ace_ets_component_api/src/main/ets/test/ListDelete.test.ets b/arkui/ace_ets_component_api/src/main/ets/test/ListDelete.test.ets index bb55adfdc..baf3601d9 100644 --- a/arkui/ace_ets_component_api/src/main/ets/test/ListDelete.test.ets +++ b/arkui/ace_ets_component_api/src/main/ets/test/ListDelete.test.ets @@ -104,7 +104,7 @@ export default function ListDeleteTest() { let rectCenter = getRectCenterVp(obj.$rect) let driver = Driver.create() - await driver.swipe(rectCenter[0], rectCenter[1], 600, rectCenter[1]) + await driver.swipe(rectCenter[0] - 200, rectCenter[1], rectCenter[0] + 200, rectCenter[1]) let strJsonButtonDel = getInspectorByKey(baseKey + '_Button_Del'); let objButtonDel = JSON.parse(strJsonButtonDel); @@ -145,7 +145,7 @@ export default function ListDeleteTest() { } events_emitter.on(event, callback); let rectCenter = getRectCenter(obj.$rect) - await driver.swipe(Math.round(rectCenter[0]), Math.round(rectCenter[1]), + await driver.swipe(Math.round(rectCenter[0]) + 200, Math.round(rectCenter[1]), 0, Math.round(rectCenter[1])) console.info(`${SUITE} ${CASE} END`); }); -- GitLab