Bug 1323189 - Skip test_imports_apply_globally for Fennec. r=maja_zf, a=test-only
authorHenrik Skupin <mail@hskupin.info>
Tue, 13 Dec 2016 15:32:24 +0100
changeset 353065 cf552e309e07e3fad680c5fd149524bd0c86cf29
parent 353064 399aca3638b11d11134da52bcab2898926c5e12d
child 353066 6db2fdca32d1734275b497fc7078a8dce11baec4
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
bugs1323189
milestone52.0a2
Bug 1323189 - Skip test_imports_apply_globally for Fennec. r=maja_zf, a=test-only MozReview-Commit-ID: GDOsolHGLd1
testing/marionette/harness/marionette_harness/tests/unit/test_import_script.py
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_import_script.py
+++ b/testing/marionette/harness/marionette_harness/tests/unit/test_import_script.py
@@ -2,17 +2,22 @@
 # 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/.
 
 import os
 
 from marionette_driver.by import By
 from marionette_driver.errors import JavascriptException
 
-from marionette_harness import MarionetteTestCase, WindowManagerMixin, skip_if_chrome
+from marionette_harness import (
+    MarionetteTestCase,
+    skip_if_chrome,
+    skip_if_mobile,
+    WindowManagerMixin,
+)
 
 
 class TestImportScriptContent(WindowManagerMixin, MarionetteTestCase):
     contexts = set(["chrome", "content"])
 
     script_file = os.path.abspath(
         os.path.join(__file__, os.path.pardir, "importscript.js"))
     another_script_file = os.path.abspath(
@@ -100,16 +105,17 @@ class TestImportScriptContent(WindowMana
 
     def test_multiple_imports(self):
         self.marionette.import_script(self.script_file)
         self.marionette.import_script(self.another_script_file)
         self.assert_defined("testFunc")
         self.assert_defined("testAnotherFunc")
 
     @skip_if_chrome
+    @skip_if_mobile  # New windows not supported in Fennec
     def test_imports_apply_globally(self):
         self.marionette.navigate(
             self.marionette.absolute_url("test_windows.html"))
 
         def open_window_with_link():
             self.marionette.find_element(By.LINK_TEXT, "Open new window").click()
 
         new_window = self.open_window(trigger=open_window_with_link)