Bug 1531229 [wpt PR 15556] - [wptrunner] Do not use undefined method, a=testonly
authorMike Pennisi <mike@mikepennisi.com>
Wed, 06 Mar 2019 16:53:06 +0000
changeset 464705 06a6b851f49054688f2a26f10d38c74206212250
parent 464704 175998dceb0440fd61e0d9bc529ca75bbf22e938
child 464706 154f3e3e9fc6ad51a59f20321925a6bcbc14a6d8
push id80669
push useraciure@mozilla.com
push dateSun, 17 Mar 2019 09:47:54 +0000
treeherderautoland@e0861be8d6c0 [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