From 088e47aa859198baeac970dd4a26cd30f6486ebe Mon Sep 17 00:00:00 2001 From: limeng Date: Fri, 11 Aug 2023 19:34:25 +0800 Subject: [PATCH] =?UTF-8?q?ListItem=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B05?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: limeng --- .../src/main/ets/test/ListDelete.test.ets | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 0e84a243a..bb55adfdc 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 @@ -127,7 +127,7 @@ export default function ListDeleteTest() { console.info(`${SUITE} ${CASE} START`); let driver = Driver.create() - await driver.delayMs(500) + await driver.delayMs(1000) let baseKey = 'MyList5_ListItem0' let strJson = getInspectorByKey(baseKey); let obj = JSON.parse(strJson); @@ -144,13 +144,11 @@ export default function ListDeleteTest() { priority: events_emitter.EventPriority.LOW } events_emitter.on(event, callback); - let rectCenter = getRectCenter(obj.$rect) - await driver.swipe(rectCenter[0], rectCenter[1], 0, rectCenter[1]) - + await driver.swipe(Math.round(rectCenter[0]), Math.round(rectCenter[1]), + 0, Math.round(rectCenter[1])) console.info(`${SUITE} ${CASE} END`); }); - }) } -- GitLab