diff options
| author | Brandon Schaefer <brandontschaefer@gmail.com> | 2012-07-08 18:01:37 -0700 |
|---|---|---|
| committer | Brandon Schaefer <brandontschaefer@gmail.com> | 2012-07-08 18:01:37 -0700 |
| commit | b9e5ccaa9a453287fde704b0aafbe402f75f2124 (patch) | |
| tree | 638add20a6f8a8c75b0211d584add9ee911a224e /tests | |
| parent | 537d0c443d7af3fc815d8412c7ce9733fda86727 (diff) | |
| parent | c7af64732035a7cf200a7b24e6b4c9d7786ee0ec (diff) | |
* fixed confilcts
(bzr r2476.1.1)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/autopilot/unity/tests/test_panel.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/autopilot/unity/tests/test_panel.py b/tests/autopilot/unity/tests/test_panel.py index 27ca0558c..8c48d2efe 100644 --- a/tests/autopilot/unity/tests/test_panel.py +++ b/tests/autopilot/unity/tests/test_panel.py @@ -635,6 +635,20 @@ class PanelWindowButtonsTests(PanelTestsBase): self.keybinding_release("panel/show_menus") self.assertThat(self.panel.window_buttons_shown, Eventually(Equals(False))) + def test_window_buttons_cant_accept_keynav_focus(self): + """On a mouse down event over the window buttons + you must still be able to type into the Hud. + + """ + self.hud.ensure_visible() + self.addCleanup(self.hud.ensure_hidden) + + self.keyboard.type("Hello") + self.panel.window_buttons.minimize.mouse_click() + self.keyboard.type("World") + + self.assertThat(self.hud.search_string, Eventually(Equals("HelloWorld"))) + class PanelHoverTests(PanelTestsBase): """Tests with the mouse pointer hovering the panel area.""" @@ -1065,6 +1079,18 @@ class PanelGrabAreaTests(PanelTestsBase): self.assertThat(lambda: calc_win.is_focused, Eventually(Equals(True))) + def test_panels_dont_steal_keynav_foucs_from_hud(self): + """On a mouse click event on the panel you must still be able to type into the Hud.""" + self.hud.ensure_visible() + self.addCleanup(self.hud.ensure_hidden) + + self.keyboard.type("Hello") + self.move_mouse_over_grab_area() + self.mouse.click() + self.keyboard.type("World") + + self.assertThat(self.hud.search_string, Eventually(Equals("HelloWorld"))) + class PanelCrossMonitorsTests(PanelTestsBase): """Multimonitor panel tests.""" |
