summaryrefslogtreecommitdiff
path: root/tests
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2012-05-15 20:40:51 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2012-05-15 20:40:51 +0200
commitb4d625f4f1b3de6a223de3e13937173b3312355d (patch)
tree14d73d4d935fcb27fa85bbf5513d237e7db2e8c6 /tests
parent892506d053404f1851bc19804f9d301c4d015532 (diff)
autopilot, test_launcher: added test for missing-icon on quick application reopen
(bzr r2356.1.1)
Diffstat (limited to 'tests')
-rw-r--r--tests/autopilot/autopilot/tests/test_launcher.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/autopilot/autopilot/tests/test_launcher.py b/tests/autopilot/autopilot/tests/test_launcher.py
index 291e01e7b..0e5cc1a30 100644
--- a/tests/autopilot/autopilot/tests/test_launcher.py
+++ b/tests/autopilot/autopilot/tests/test_launcher.py
@@ -445,6 +445,20 @@ class LauncherIconsBehaviorTests(LauncherTestCase):
self.assertTrue(mah_win2.is_hidden)
self.assertVisibleWindowStack([mah_win1, calc_win])
+ def test_icon_shows_on_quick_application_reopen(self):
+ """Icons should stay on launcher when an application is quickly closed/reopened."""
+ self.close_all_app("Calculator")
+ calc = self.start_app("Calculator")
+ calc_icon = self.launcher.model.get_icon_by_desktop_id(calc.desktop_file)
+ self.assertThat(calc_icon.visible, Eventually(Equals(True)))
+
+ os.spawnlp(os.P_WAIT, "pkill", "pkill", self.KNOWN_APPS["Calculator"]['process-name'])
+ calc = self.start_app("Calculator")
+ sleep(2)
+
+ calc_icon = self.launcher.model.get_icon_by_desktop_id(calc.desktop_file)
+ self.assertThat(calc_icon, NotEquals(None))
+ self.assertThat(calc_icon.visible, Eventually(Equals(True)))
class LauncherRevealTests(LauncherTestCase):
"""Test the launcher reveal behavior when in autohide mode."""