From 6fe7b31f0685f81a816f5825e056a13efb6199ce Mon Sep 17 00:00:00 2001 From: chengxingzhen Date: Thu, 29 Sep 2022 09:58:24 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20885ccaa=20from=20https://gitee.com/chen?= =?UTF-8?q?gxingzhen/xts=5Facts=5Fmaster/pulls/5772=20XTS=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=94=A8=E4=BE=8B=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chengxingzhen --- .../entry/src/main/ets/test/OnAndOffScreenTest.test.ets | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ability/ability_runtime/actssupportfunction/actsonandoffscreentest/entry/src/main/ets/test/OnAndOffScreenTest.test.ets b/ability/ability_runtime/actssupportfunction/actsonandoffscreentest/entry/src/main/ets/test/OnAndOffScreenTest.test.ets index 8b1994eba..f83fcea06 100644 --- a/ability/ability_runtime/actssupportfunction/actsonandoffscreentest/entry/src/main/ets/test/OnAndOffScreenTest.test.ets +++ b/ability/ability_runtime/actssupportfunction/actsonandoffscreentest/entry/src/main/ets/test/OnAndOffScreenTest.test.ets @@ -54,8 +54,11 @@ export default function OnAndOffScreenTest() { async function slideScreen(TAG) { console.log(TAG + "slideScreen start"); var driver = UiDriver.create(); - await driver.swipe(1000, 3000, 1000, 500, 1200); - await driver.delayMs(500); + await driver.swipe(1000, 3000, 1000, 500, 1200).then((data) => { + console.log(TAG + "swipe : " + JSON.stringify(data)); + }).catch((error) => { + console.log(TAG + "swipe error = " + JSON.stringify(error)); + }) console.log(TAG + "slideScreen end"); } -- GitLab