提交 885ccaab 编写于 作者: C chengxingzhen

XTS失败用例适配

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 82034e3e
...@@ -54,8 +54,11 @@ export default function OnAndOffScreenTest() { ...@@ -54,8 +54,11 @@ export default function OnAndOffScreenTest() {
async function slideScreen(TAG) { async function slideScreen(TAG) {
console.log(TAG + "slideScreen start"); console.log(TAG + "slideScreen start");
var driver = UiDriver.create(); var driver = UiDriver.create();
await driver.swipe(1000, 3000, 1000, 500, 1200); await driver.swipe(1000, 3000, 1000, 500, 1200).then((data) => {
await driver.delayMs(500); console.log(TAG + "swipe : " + JSON.stringify(data));
}).catch((error) => {
console.log(TAG + "swipe error = " + JSON.stringify(error));
})
console.log(TAG + "slideScreen end"); console.log(TAG + "slideScreen end");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册