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 506479 06a6b851f49054688f2a26f10d38c74206212250
parent 506478 175998dceb0440fd61e0d9bc529ca75bbf22e938
child 506480 154f3e3e9fc6ad51a59f20321925a6bcbc14a6d8
push id138
push usermtabara@mozilla.com
push dateWed, 20 Mar 2019 18:12:49 +0000
reviewerstestonly
bugs1531229, 15556
milestone67.0a1
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