Bug 1531229 [wpt PR 15556] - [wptrunner] Do not use undefined method, a=testonly
☠☠ backed out by 66b1aba3fb43 ☠ ☠
authorMike Pennisi <mike@mikepennisi.com>
Wed, 06 Mar 2019 16:53:06 +0000
changeset 525304 0d8c97a32de38d0f89212ff22b484d043748d1b7
parent 525303 bdbfea4121229e6a2f68711e0d3ccbfe1edd9f47
child 525305 5c6bfad36ca045e19786e7eb97104d31a04d81fd
push id2032
push userffxbld-merge
push dateMon, 13 May 2019 09:36:57 +0000
treeherdermozilla-release@455c1065dcbe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1531229, 15556
milestone67.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 1531229 [wpt PR 15556] - [wptrunner] Do not use undefined method, a=testonly Automatic update from web-platform-tests [wptrunner] Do not use undefined method The Selenium wire protocol does not define a "set window rect" method [1]. Implement the desired behavior by composing the "set window position" and "set window size" methods. [1] https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol -- wpt-commits: 823542ced8f584e121f6196702e1a7e5958530ed wpt-pr: 15556
testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executorselenium.py
--- a/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executorselenium.py
+++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executorselenium.py
@@ -364,17 +364,18 @@ class SeleniumRefTestExecutor(RefTestExe
 
     def do_test(self, test):
         self.logger.info("Test requires OS-level window focus")
 
         width_offset, height_offset = self.protocol.webdriver.execute_script(
             """return [window.outerWidth - window.innerWidth,
                        window.outerHeight - window.innerHeight];"""
         )
-        self.protocol.webdriver.set_window_rect(0, 0, 800 + width_offset, 600 + height_offset)
+        self.protocol.webdriver.set_window_size(0, 0)
+        self.protocol.webdriver.set_window_position(800 + width_offset, 600 + height_offset)
 
         result = self.implementation.run_test(test)
 
         return self.convert_result(test, result)
 
     def screenshot(self, test, viewport_size, dpi):
         # https://github.com/w3c/wptrunner/issues/166
         assert viewport_size is None