Merge lp:~3v1n0/unity/scroll-wheel-ap-fixes into lp:unity

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Andrea Azzarone
Approved revision: no longer in the source branch.
Merged at revision: 3852
Proposed branch: lp:~3v1n0/unity/scroll-wheel-ap-fixes
Merge into: lp:unity
Diff against target: 22 lines (+4/-4)
1 file modified
tests/autopilot/unity/emulators/switcher.py (+4/-4)
To merge this branch: bzr merge lp:~3v1n0/unity/scroll-wheel-ap-fixes
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Andrea Azzarone (community) Approve
Review via email: mp+229754@code.launchpad.net

Commit message

Autopilot, Switcher: use correct right/left scroll buttons for next/prev mouse selection

To post a comment you must log in.
Revision history for this message
Andrea Azzarone (azzar1) wrote :

LGTM.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/autopilot/unity/emulators/switcher.py'
--- tests/autopilot/unity/emulators/switcher.py 2013-12-21 04:31:32 +0000
+++ tests/autopilot/unity/emulators/switcher.py 2014-08-06 10:02:41 +0000
@@ -189,14 +189,14 @@
189 def next_via_mouse(self):189 def next_via_mouse(self):
190 """Move to the next icon using the mouse scroll wheel."""190 """Move to the next icon using the mouse scroll wheel."""
191 logger.debug("Selecting next item in switcher with mouse scroll wheel.")191 logger.debug("Selecting next item in switcher with mouse scroll wheel.")
192 self._mouse.press(6)192 self._mouse.press(7)
193 self._mouse.release(6)193 self._mouse.release(7)
194194
195 def previous_via_mouse(self):195 def previous_via_mouse(self):
196 """Move to the previous icon using the mouse scroll wheel."""196 """Move to the previous icon using the mouse scroll wheel."""
197 logger.debug("Selecting previous item in switcher with mouse scroll wheel.")197 logger.debug("Selecting previous item in switcher with mouse scroll wheel.")
198 self._mouse.press(7)198 self._mouse.press(6)
199 self._mouse.release(7)199 self._mouse.release(6)
200200
201 @property201 @property
202 def detail_selection_index(self):202 def detail_selection_index(self):