提交 89f6f8a0 编写于 作者: L limeng

ListItem长距离左滑删除,bindMenu能力增强xts测试用例修复

Signed-off-by: Nlimeng <limeng208@huawei.com>
上级 00d8dd8e
...@@ -93,25 +93,9 @@ export default function BindMenuTest() { ...@@ -93,25 +93,9 @@ export default function BindMenuTest() {
let CASE = 'ArkUI_Menu_0200' let CASE = 'ArkUI_Menu_0200'
console.info(`${SUITE} ${CASE} START`); console.info(`${SUITE} ${CASE} START`);
async function step2() {
let callback2 = (event) => {
expect(event.data.action).assertEqual('onDisappear');
done();
}
let event2 = {
eventId: 60003,
priority: events_emitter.EventPriority.LOW
}
events_emitter.on(event2, callback2);
let driver = Driver.create()
await driver.delayMs(waitUiReadyMs)
driver.click(100, 400)
}
let callback = (event) => { let callback = (event) => {
expect(event.data.action).assertEqual('onAppear'); expect(event.data.action).assertEqual('onAppear');
step2() done()
} }
let event = { let event = {
eventId: 60002, eventId: 60002,
......
...@@ -104,7 +104,7 @@ export default function ListDeleteTest() { ...@@ -104,7 +104,7 @@ export default function ListDeleteTest() {
let rectCenter = getRectCenterVp(obj.$rect) let rectCenter = getRectCenterVp(obj.$rect)
let driver = Driver.create() let driver = Driver.create()
await driver.swipe(rectCenter[0], rectCenter[1], 600, rectCenter[1]) await driver.swipe(rectCenter[0] - 200, rectCenter[1], rectCenter[0] + 200, rectCenter[1])
let strJsonButtonDel = getInspectorByKey(baseKey + '_Button_Del'); let strJsonButtonDel = getInspectorByKey(baseKey + '_Button_Del');
let objButtonDel = JSON.parse(strJsonButtonDel); let objButtonDel = JSON.parse(strJsonButtonDel);
...@@ -145,7 +145,7 @@ export default function ListDeleteTest() { ...@@ -145,7 +145,7 @@ export default function ListDeleteTest() {
} }
events_emitter.on(event, callback); events_emitter.on(event, callback);
let rectCenter = getRectCenter(obj.$rect) let rectCenter = getRectCenter(obj.$rect)
await driver.swipe(Math.round(rectCenter[0]), Math.round(rectCenter[1]), await driver.swipe(Math.round(rectCenter[0]) + 200, Math.round(rectCenter[1]),
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.
先完成此消息的编辑!
想要评论请 注册