diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-09-10 15:03:18 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-09-10 15:03:18 +0200 |
| commit | ed1dfd5ceab547a4537b4a4140f62fed359738d7 (patch) | |
| tree | 74a75377c58a476c8aaaaee8bd7fe52b3a96ec4a | |
| parent | f8f77eae5eb2d1d087f7c540d3d7d2db7605493f (diff) | |
Autpilot, launcher: make dragging tests more reliable
(bzr r3964.6.8)
| -rw-r--r-- | tests/autopilot/unity/emulators/launcher.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/autopilot/unity/emulators/launcher.py b/tests/autopilot/unity/emulators/launcher.py index 5deb2fa18..1c403f0b3 100644 --- a/tests/autopilot/unity/emulators/launcher.py +++ b/tests/autopilot/unity/emulators/launcher.py @@ -382,11 +382,11 @@ class Launcher(UnityIntrospectionObject, KeybindingsHelper): self.move_mouse_to_icon(icon) self._mouse.press() - sleep(2) + sleep(1) if drag_type == IconDragType.OUTSIDE: shift_over = self._mouse.x + (icon_height * 2) - self._mouse.move(shift_over, self._mouse.y) + self._mouse.move(shift_over, self._mouse.y, rate=20, time_between_events=0.005) sleep(0.5) self.move_mouse_to_icon(target) @@ -397,8 +397,8 @@ class Launcher(UnityIntrospectionObject, KeybindingsHelper): if pos == IconDragType.BEFORE: target_y -= icon_height + (icon_height / 2) - self._mouse.move(self._mouse.x, target_y) - sleep(0.5) + self._mouse.move(self._mouse.x, target_y, rate=20, time_between_events=0.005) + sleep(1) self._mouse.release() self.move_mouse_to_right_of_launcher() |
