diff options
| author | Thomi Richards <thomi.richards@canonical.com> | 2012-07-12 14:50:36 +1200 |
|---|---|---|
| committer | Thomi Richards <thomi.richards@canonical.com> | 2012-07-12 14:50:36 +1200 |
| commit | 332b8cf61966745b90ad97e10b7b2c48165b78a4 (patch) | |
| tree | 51b1f3af7fb92a0790966b451237d6fe721bd255 /tests/autopilot | |
| parent | 3b1164a5676dc4d8948cd8e8527992aea85d403b (diff) | |
Hud now closes correctly.
(bzr r2496.1.2)
Diffstat (limited to 'tests/autopilot')
| -rw-r--r-- | tests/autopilot/unity/emulators/hud.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/autopilot/unity/emulators/hud.py b/tests/autopilot/unity/emulators/hud.py index c0e841ead..70430b603 100644 --- a/tests/autopilot/unity/emulators/hud.py +++ b/tests/autopilot/unity/emulators/hud.py @@ -32,6 +32,9 @@ class Hud(KeybindingsHelper): def ensure_hidden(self): """Hides the hud if it's not already hidden.""" if self.visible: + if self.search_string: + self.keyboard.press_and_release("Escape") + self.search_string.wait_for("") self.keyboard.press_and_release("Escape") self.visible.wait_for(False) |
