From df67f3314a62d9091729e3f8f8a1934651769aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 12 Jun 2015 03:08:51 +0200 Subject: 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) --- tests/autopilot/unity/tests/test_panel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/autopilot') 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 -- cgit v1.2.3