Bug 1141519: added test that puts marionette into a position that can cause hangs when in content scope
☠☠ backed out by a21d6a26ae50 ☠ ☠
authorDavid Burns <dburns@mozilla.com>
Wed, 11 Mar 2015 00:05:59 +0000
changeset 265371 78a27ab48c548377e46bdc1b3ed1df92267133dc
parent 265370 414fe682de4be4e9191c7664df9e4d30b3e587ab
child 265372 85c4ceb3c650cdae07e7ecac655470b88ec69004
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1141519
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1141519: added test that puts marionette into a position that can cause hangs when in content scope
testing/marionette/client/marionette/tests/unit/test_chrome.py
testing/marionette/client/marionette/tests/unit/unit-tests.ini
new file mode 100644
--- /dev/null
+++ b/testing/marionette/client/marionette/tests/unit/test_chrome.py
@@ -0,0 +1,32 @@
+#Copyright 2007-2009 WebDriver committers
+#Copyright 2007-2009 Google Inc.
+#
+#Licensed under the Apache License, Version 2.0 (the "License");
+#you may not use this file except in compliance with the License.
+#You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+#Unless required by applicable law or agreed to in writing, software
+#distributed under the License is distributed on an "AS IS" BASIS,
+#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#See the License for the specific language governing permissions and
+#limitations under the License.
+
+from marionette_driver import By
+from marionette_driver.application_cache import ApplicationCache
+from marionette_driver.errors import NoSuchElementException
+from marionette import MarionetteTestCase
+
+
+class ChromeTests(MarionetteTestCase):
+
+    def test_hang_until_timeout(self):
+        with self.marionette.using_context('chrome'):
+            current_handle = self.marionette.current_chrome_window_handle
+            menu = self.marionette.find_element(By.ID, 'aboutName')
+            menu.click()
+            handles = self.marionette.chrome_window_handles
+            handles.remove(current_handle)
+            self.marionette.switch_to_window(handles[0])
+            self.assertRaises(NoSuchElementException, self.marionette.find_element, By.ID, 'dek')
--- a/testing/marionette/client/marionette/tests/unit/unit-tests.ini
+++ b/testing/marionette/client/marionette/tests/unit/unit-tests.ini
@@ -137,15 +137,17 @@ browser = false
 [test_errors.py]
 
 [test_execute_isolate.py]
 [test_click_scrolling.py]
 [test_profile_management.py]
 b2g = false
 [test_set_window_size.py]
 b2g = false
+[test_chrome.py]
+b2g = false
 skip-if = os == "linux" # Bug 1085717
 [test_with_using_context.py]
 
 [test_modal_dialogs.py]
 b2g = false
 [test_key_actions.py]
 [test_teardown_context_preserved.py]