提交 088e47aa 编写于 作者: L limeng

ListItem测试用例05失败

Signed-off-by: Nlimeng <limeng208@huawei.com>
上级 af971cd2
...@@ -127,7 +127,7 @@ export default function ListDeleteTest() { ...@@ -127,7 +127,7 @@ export default function ListDeleteTest() {
console.info(`${SUITE} ${CASE} START`); console.info(`${SUITE} ${CASE} START`);
let driver = Driver.create() let driver = Driver.create()
await driver.delayMs(500) await driver.delayMs(1000)
let baseKey = 'MyList5_ListItem0' let baseKey = 'MyList5_ListItem0'
let strJson = getInspectorByKey(baseKey); let strJson = getInspectorByKey(baseKey);
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
...@@ -144,13 +144,11 @@ export default function ListDeleteTest() { ...@@ -144,13 +144,11 @@ export default function ListDeleteTest() {
priority: events_emitter.EventPriority.LOW priority: events_emitter.EventPriority.LOW
} }
events_emitter.on(event, callback); events_emitter.on(event, callback);
let rectCenter = getRectCenter(obj.$rect) 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`); console.info(`${SUITE} ${CASE} END`);
}); });
}) })
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册