summaryrefslogtreecommitdiff
path: root/tests/autopilot
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2015-06-12 03:08:51 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2015-06-12 03:08:51 +0200
commitdf67f3314a62d9091729e3f8f8a1934651769aa1 (patch)
tree88240f502024e2d205176672ebb6ed70885d4d3e /tests/autopilot
parentfb9e998ac07c31de0994ad8d149ab58ff052c01b (diff)
Autopilot, TestPanel: fix open menu on new focused window in LIM mode
Since LIM works for unfocused windows as well, no menu should be closed by an app being mapped. (bzr r3964.6.6)
Diffstat (limited to 'tests/autopilot')
-rw-r--r--tests/autopilot/unity/tests/test_panel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/autopilot/unity/tests/test_panel.py b/tests/autopilot/unity/tests/test_panel.py
index 77da6a5b3..84d4918d4 100644
--- a/tests/autopilot/unity/tests/test_panel.py
+++ b/tests/autopilot/unity/tests/test_panel.py
@@ -1035,7 +1035,7 @@ class PanelIndicatorEntryTests(PanelTestsBase):
self.assertThat(menu_entry.menu_y, Eventually(Equals(0)))
def test_menu_closes_on_new_focused_application(self):
- """Clicking outside an open menu must close it."""
+ """When a new app is focused, open menu should be closed only when using Global Menus."""
menu_entry = self.open_app_and_get_menu_entry()
self.mouse_open_indicator(menu_entry)
@@ -1043,7 +1043,7 @@ class PanelIndicatorEntryTests(PanelTestsBase):
self.assertThat(menu_entry.active, Eventually(Equals(True)))
self.open_new_application_window("Text Editor")
- self.assertThat(self.unity.panels.get_active_indicator, Eventually(Equals(None)))
+ self.assertThat(self.unity.panels.get_active_indicator, Eventually(NotEquals(None) if self.lim else Equals(None)))
def test_indicator_opens_when_dash_is_open(self):
"""When the dash is open and a click is on an indicator the dash