1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-17 17:24:02 +01:00

Fix inverted swipe up/down gestures

Tested on Chromebook and Mate 8
This commit is contained in:
James Hartley
2016-12-15 15:01:38 +00:00
parent f76c00dd99
commit b4026ae390
4 changed files with 10 additions and 10 deletions

View File

@@ -274,19 +274,19 @@ public class BaseUiAutomation extends UiAutomatorTestCase {
public void uiDeviceSwipeUp(int steps) {
UiDevice.getInstance().swipe(
getDisplayCentreWidth(),
(getDisplayCentreHeight() / 2),
getDisplayCentreWidth(),
(getDisplayCentreHeight() + (getDisplayCentreHeight() / 2)),
getDisplayCentreWidth(),
(getDisplayCentreHeight() / 2),
steps);
}
public void uiDeviceSwipeDown(int steps) {
UiDevice.getInstance().swipe(
getDisplayCentreWidth(),
(getDisplayCentreHeight() + (getDisplayCentreHeight() / 2)),
getDisplayCentreWidth(),
(getDisplayCentreHeight() / 2),
getDisplayCentreWidth(),
(getDisplayCentreHeight() + (getDisplayCentreHeight() / 2)),
steps);
}