未验证 提交 52419bb7 编写于 作者: O openharmony_ci 提交者: Gitee

!9735 【xts ListItem 05】 ListItem测试用例05失败

Merge pull request !9735 from limeng/fix_xts_listitem_failed
......@@ -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`);
});
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册