Bug 1330585 - Skip TestKeyActions.test_open_in_new_window_shortcut for Fennec. r=maja_zf, a=test-only
authorHenrik Skupin <mail@hskupin.info>
Thu, 12 Jan 2017 11:27:27 +0100
changeset 353589 94bbf21b230ac0acea9879f672a03c0822727e50
parent 353588 9ad063c5652016b378fb80e1eef85704f16f5e6d
child 353590 ac9d1e31d23b634e8aacac5c0e063b97f3961867
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmaja_zf, test-only
bugs1330585
milestone52.0a2
Bug 1330585 - Skip TestKeyActions.test_open_in_new_window_shortcut for Fennec. r=maja_zf, a=test-only The test cannot be run on Fennec because there is no support for additionally opened windows. MozReview-Commit-ID: 7oDniZoYLN
testing/marionette/harness/marionette_harness/tests/unit/test_key_actions.py
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_key_actions.py
+++ b/testing/marionette/harness/marionette_harness/tests/unit/test_key_actions.py
@@ -1,17 +1,17 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from marionette_driver.by import By
 from marionette_driver.keys import Keys
 from marionette_driver.marionette import Actions
 
-from marionette_harness import MarionetteTestCase, WindowManagerMixin
+from marionette_harness import MarionetteTestCase, skip_if_mobile, WindowManagerMixin
 
 
 class TestKeyActions(WindowManagerMixin, MarionetteTestCase):
 
     def setUp(self):
         super(TestKeyActions, self).setUp()
         if self.marionette.session_capabilities["platformName"] == "darwin":
             self.mod_key = Keys.META
@@ -65,17 +65,19 @@ class TestKeyActions(WindowManagerMixin,
         self.key_action.key_down("a").key_down("b").key_down("c").perform()
         (self.key_action.key_down(self.mod_key)
                         .key_down("a")
                         .wait(.5)
                         .key_down("x")
                         .perform())
         self.assertEqual(self.key_reporter_value, "")
 
+    @skip_if_mobile("Interacting with chrome windows not available for Fennec")
     def test_open_in_new_window_shortcut(self):
+
         def open_window_with_action():
             el = self.marionette.find_element(By.ID, "updatediv")
             # Ensure that the element is in the current view port because press() doesn't
             # handle that inside the action chain (bug 1295538).
             self.marionette.execute_script('arguments[0].scrollIntoView()', script_args=[el])
             (self.key_action.key_down(Keys.SHIFT)
                             .press(el)
                             .release()