on xenial help sign in
Remove the swipe to the left.
commita75bf345b645ab77372a2b8b8ba1a0bcd2ee3864 authorLeo Arias <leo.arias@canonical.com> dateWed 9 Jul 2014, 11:31 (12 years ago) parent2a8bad3
1 file changed+4−11
tests/autopilot/unity8/shell/emulators/launcher.py+4−11
tests/autopilot/unity8/shell/emulators/launcher.py+4−11
@@ -35,24 +35,17 @@ class Launcher(emulators.UnityEmulatorBase):
3535 def show(self):
3636 """Show the launcher swiping it to the right."""
3737 if not self.shown:
38− self._swipe_launcher('right')
38+ self._swipe_to_show_launcher()
3939 self.shown.wait_for(True)
4040 else:
4141 logger.debug('The launcher is already opened.')
4242
43− def _swipe_launcher(self, direction):
43+ def _swipe_to_show_launcher(self):
4444 view = self.get_root_instance().select_single('QQuickView')
4545 start_y = stop_y = view.y + view.height // 2
4646
47− left = view.x + 1
48− right = left + self.panelWidth - 1
49−
50− if direction == 'right':
51− start_x = left
52− stop_x = right
53− elif direction == 'left':
54− start_x = right
55− stop_x = left
47+ start_x = view.x + 1
48+ stop_x = start_x + self.panelWidth - 1
5649
5750 self.pointing_device.drag(start_x, start_y, stop_x, stop_y)
5851