Merge lp:~bregma/unity/lp-1435830 into lp:unity

Proposed by Stephen M. Webb
Status: Merged
Approved by: Christopher Townsend
Approved revision: no longer in the source branch.
Merged at revision: 3946
Proposed branch: lp:~bregma/unity/lp-1435830
Merge into: lp:unity
Diff against target: 19 lines (+8/-3)
1 file modified
tests/autopilot/unity/tests/launcher/test_keynav.py (+8/-3)
To merge this branch: bzr merge lp:~bregma/unity/lp-1435830
Reviewer Review Type Date Requested Status
Christopher Townsend Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+254014@code.launchpad.net

Commit message

fixed the Panel title string expected by Launcher keynav AP tests

Description of the change

Fixes the Panel title string expected by Launcher keynav AP tests.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

As discussed on IRC, the reason this test now fails is due to LIM being enabled. A design decision was made to not display the tooltip string in the Panel when LIM is enabled.

Although I think this design makes no sense since what is displayed in the Panel in Launcher keynav mode should have nothing to do with LIM being enabled or not, but I disgress. At any rate, this needs fixing.

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

Ok. I still think the design is silly and I'd like to know where this is defined (besides in someone's head).

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/unity/tests/launcher/test_keynav.py'
2--- tests/autopilot/unity/tests/launcher/test_keynav.py 2014-01-23 15:51:46 +0000
3+++ tests/autopilot/unity/tests/launcher/test_keynav.py 2015-03-26 12:58:26 +0000
4@@ -241,7 +241,12 @@
5 self.assertThat(self.unity.launcher.key_nav_is_active, Eventually(Equals(False)))
6
7 def test_launcher_keynav_changes_panel(self):
8- """The panel title must change when in key nav mode."""
9+ """The panel title must change when in key nav mode
10+ and LIM is not enabled.
11+ """
12
13- self.start_keynav_with_cleanup_cancel()
14- self.assertThat(self.unity.panels.get_active_panel().title, Eventually(Equals("Search your computer and online sources")))
15+ self.start_keynav_with_cleanup_cancel()
16+ panel = self.unity.panels.get_active_panel()
17+ expected_panel_title = ("" if panel.menus.integrated_menus
18+ else "Search your computer and online sources")
19+ self.assertThat(panel.title, Eventually(Equals(expected_panel_title)))