diff options
| author | Thomi Richards <thomi.richards@canonical.com> | 2012-10-30 10:35:38 +0100 |
|---|---|---|
| committer | Thomi Richards <thomi.richards@canonical.com> | 2012-10-30 10:35:38 +0100 |
| commit | a98f80f104b44970e0c61d373c27c1eec58039f8 (patch) | |
| tree | c8e8f7cb02ac4498dcbaae8f1e4f3b702fd3bbfb /tests | |
| parent | ccc68c08f423dc9a8d131b9fb31a5e22031fe33f (diff) | |
Added a check to see if a quicklist was left open at the end of a test, and close it.
(bzr r2866.2.1)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/autopilot/unity/tests/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/autopilot/unity/tests/__init__.py b/tests/autopilot/unity/tests/__init__.py index 5b4ba983f..3333b36bf 100644 --- a/tests/autopilot/unity/tests/__init__.py +++ b/tests/autopilot/unity/tests/__init__.py @@ -117,6 +117,11 @@ class UnityTestCase(AutopilotTestCase): reasons.append("The test left the launcher in switcher mode.") log.warning("Test left the launcher in switcher mode, exiting it...") launcher.switcher_cancel() + if not self.well_bahaved(launcher, quicklist_open=False): + well_behaved = False + reasons.append("The test left a quicklist open.") + log.warning("The test left a quicklist open.") + self.keyboard.press_and_release('Escape') if not well_behaved: self.fail("/n".join(reasons)) |
