Merge lp:~brandontschaefer/unity/quicklist-close-super-open-dash into lp:unity
Proposed by
Brandon Schaefer
Status: | Merged |
---|---|
Approved by: | Brandon Schaefer |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2496 |
Proposed branch: | lp:~brandontschaefer/unity/quicklist-close-super-open-dash |
Merge into: | lp:unity |
Diff against target: |
54 lines (+24/-3) 2 files modified
plugins/unityshell/src/unityshell.cpp (+12/-2) tests/autopilot/unity/tests/test_quicklist.py (+12/-1) |
To merge this branch: | bzr merge lp:~brandontschaefer/unity/quicklist-close-super-open-dash |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomi Richards (community) | quality | Approve | |
Review via email: mp+113097@code.launchpad.net |
Commit message
Quicklist closes when opening the Dash.
Description of the change
=== Problem ===
When a quicklist was open you could not open th dash.
=== Fix ===
If a quicklist is open and you press super it will now close the quicklist.
=== Test ===
AP Tests
To post a comment you must log in.
Hi,
34 + """When the quicklist is open and you open the dash:
35 + The quicklist should close then the dash must open.
36 +
37 + """
Please fix this docstring. "should" is a weasel word that implies ambiguity. I suggest a better docstring is something like:
"When a quicklist is open you must still be able to open the dash by pushing the Super key."""
39 + [calc_win1] = calc.get_windows() (calc_win1. is_focused)
40 + self.assertTrue
You don't need these two lines - you never use calc_win1, and we don't need to assert that the window is focused (that's not what we're testing).
45 + self.dash. ensure_ visible( )
If this succeeds you'll be leaving the dash open, which will cause the test to fail! Please add the following:
self.addCleanup (self.dash. ensure_ hidden)
Other than that, looks good.