summaryrefslogtreecommitdiff
path: root/tests
diff options
authorThomi Richards <thomir@gmail.com>2012-01-12 09:53:36 +0100
committerThomi Richards <thomir@gmail.com>2012-01-12 09:53:36 +0100
commit72b48abfd94e6025a5cdae6bc59c6a8b1fcac4a7 (patch)
treeb7098c8a92f3c5527baa0662b653023bfe3dfe19 /tests
parent97aabee4f3df069682f919e52baca14afa0635d7 (diff)
Now tests command lens shortcut.
(bzr r1819.2.12)
Diffstat (limited to 'tests')
-rw-r--r--tests/autopilot/autopilot/emulators/unity.py2
-rw-r--r--tests/autopilot/autopilot/tests/test_dash.py5
2 files changed, 5 insertions, 2 deletions
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')
+