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

!9862 【ACE子系统】解决手势冲突问题

Merge pull request !9862 from hekun/master
...@@ -98,7 +98,7 @@ export default function ListJsunit() { ...@@ -98,7 +98,7 @@ export default function ListJsunit() {
let gridRight = CommonFunc.getComponentRect('list'); let gridRight = CommonFunc.getComponentRect('list');
let right = gridRight.right let right = gridRight.right
let driver = await UiDriver.create() let driver = await UiDriver.create()
await driver.swipe(Math.round(top + 50), Math.round(right - 50), Math.round(bottom - 50), Math.round(right - 50)); await driver.swipe(Math.round(top + 50), Math.round(right - 50), 20, Math.round(right - 50));
await CommonFunc.sleep(1000); await CommonFunc.sleep(1000);
let onScrollText = await driver.findComponent(BY.key('onScrollText')); let onScrollText = await driver.findComponent(BY.key('onScrollText'));
...@@ -135,12 +135,12 @@ export default function ListJsunit() { ...@@ -135,12 +135,12 @@ export default function ListJsunit() {
expect(text5).assertEqual('onScrollStop'); expect(text5).assertEqual('onScrollStop');
// Verify the functions of onReachEnd // Verify the functions of onReachEnd
await driver.swipe(Math.round(bottom - 50), Math.round(right - 50), Math.round(top + 50), Math.round(right - 50)); await driver.swipe(Math.round(right), Math.round(top -100), 10, Math.round(top - 100));
await driver.swipe(Math.round(bottom - 50), Math.round(right - 50), Math.round(top + 50), Math.round(right - 50)); await driver.swipe(Math.round(right), Math.round(top -100), 10, Math.round(top - 100));
await CommonFunc.sleep(1000); await CommonFunc.sleep(1000);
await driver.swipe(Math.round(bottom - 50), Math.round(right - 50), Math.round(top + 50), Math.round(right - 50)); await driver.swipe(Math.round(right), Math.round(top -100), 10, Math.round(top - 100));
await driver.swipe(Math.round(bottom - 50), Math.round(right - 50), Math.round(top + 50), Math.round(right - 50)); await driver.swipe(Math.round(right), Math.round(top -100), 10, Math.round(top - 100));
await driver.swipe(Math.round(bottom - 50), Math.round(right - 50), Math.round(top + 50), Math.round(right - 50)); await driver.swipe(Math.round(right), Math.round(top -100), 10, Math.round(top - 100));
await CommonFunc.sleep(1000); await CommonFunc.sleep(1000);
let onReachEndText = await driver.findComponent(BY.key('onReachEndText')); let onReachEndText = await driver.findComponent(BY.key('onReachEndText'));
let text= await onReachEndText.getText(); let text= await onReachEndText.getText();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册