From 72b48abfd94e6025a5cdae6bc59c6a8b1fcac4a7 Mon Sep 17 00:00:00 2001 From: Thomi Richards Date: Thu, 12 Jan 2012 09:53:36 +0100 Subject: Now tests command lens shortcut. (bzr r1819.2.12) --- tests/autopilot/autopilot/emulators/unity.py | 2 +- tests/autopilot/autopilot/tests/test_dash.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/autopilot/autopilot/emulators/unity.py b/tests/autopilot/autopilot/emulators/unity.py index 6ca75bd56..7864342e1 100644 --- a/tests/autopilot/autopilot/emulators/unity.py +++ b/tests/autopilot/autopilot/emulators/unity.py @@ -254,4 +254,4 @@ class Dash(Unity): """ Reveal the 'run command' lens. """ - pass + self._keyboard.press_and_release(['Alt_L','F2']) diff --git a/tests/autopilot/autopilot/tests/test_dash.py b/tests/autopilot/autopilot/tests/test_dash.py index 63befd8de..d4ca5e4d6 100644 --- a/tests/autopilot/autopilot/tests/test_dash.py +++ b/tests/autopilot/autopilot/tests/test_dash.py @@ -75,7 +75,10 @@ class DashTests(TestCase): """ Run Command lens must reveat on alt+F2. """ - pass + self.dash.ensure_hidden() + self.dash.reveal_command_lens() + self.assertEqual(self.dash.get_current_lens(), u'commands.lens') + -- cgit v1.2.3