From a98f80f104b44970e0c61d373c27c1eec58039f8 Mon Sep 17 00:00:00 2001 From: Thomi Richards Date: Tue, 30 Oct 2012 10:35:38 +0100 Subject: Added a check to see if a quicklist was left open at the end of a test, and close it. (bzr r2866.2.1) --- tests/autopilot/unity/tests/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') 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)) -- cgit v1.2.3