diff options
| author | Ćukasz 'sil2100' Zemczak <lukasz.zemczak@canonical.com> | 2012-11-26 17:23:59 +0000 |
|---|---|---|
| committer | Tarmac <> | 2012-11-26 17:23:59 +0000 |
| commit | 21ad3865685fcaf163815c2cf862d9d8e9544285 (patch) | |
| tree | a0c1a8895affafb4c2e88634c52d1e3a5d15db4b | |
| parent | d806e15e1798d5aa07b896af57aa90cfca66e3cd (diff) | |
| parent | 85686dd4c8be40261501f7f4a19efd6303c90b27 (diff) | |
The test_panel_title_on_empty_desktop test should actually check the panel title, not only enable desktop mode. This is not the expected behavior of this test. Also, the test_panel_title_on_empty_desktop test will fail when there are no application windows running. This is due to the fact that we can't leave showdesktop mode when there are no windows on screen. We open up any application so that we can clean up properly. Fixes: https://bugs.launchpad.net/bugs/1082444.
Approved by Francis Ginther. (bzr r2930)
| -rw-r--r-- | tests/autopilot/unity/tests/test_panel.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/autopilot/unity/tests/test_panel.py b/tests/autopilot/unity/tests/test_panel.py index 5dbbccef1..8b4c07302 100644 --- a/tests/autopilot/unity/tests/test_panel.py +++ b/tests/autopilot/unity/tests/test_panel.py @@ -19,6 +19,7 @@ from time import sleep from unity.emulators.panel import IndicatorEntry from unity.tests import UnityTestCase +import gettext logger = logging.getLogger(__name__) @@ -145,10 +146,14 @@ class PanelTitleTests(PanelTestsBase): def test_panel_title_on_empty_desktop(self): """With no windows shown, the panel must display the default title.""" + gettext.install("unity", unicode=True) + # We need to start any application, otherwise we cannot leave show desktop mode + self.start_app_window('Calculator') self.window_manager.enter_show_desktop() self.addCleanup(self.window_manager.leave_show_desktop) self.assertThat(self.panel.desktop_is_active, Eventually(Equals(True))) + self.assertThat(self.panel.title, Equals(_("Ubuntu Desktop"))) def test_panel_title_with_restored_application(self): """Panel must display application name for a non-maximised application.""" |
