зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1526583 [wpt PR 15222] - Try and improve #15159 by moving the window to a deterministic location, a=testonly
Automatic update from web-platform-tests Try and improve #15159 by moving the window to a deterministic location Especially on systems where we don't have an integral scaling factor between CSS pixels and device pixels we can end up with our ability to resize the window depending on the location of the window. -- wpt-commits: 71a17e293b836649a0cd7effd6ee5b89ba39414d wpt-pr: 15222
This commit is contained in:
Родитель
f8e9284ddb
Коммит
0b95a21720
|
@ -372,7 +372,7 @@ class SeleniumRefTestExecutor(RefTestExecutor):
|
|||
"""return [window.outerWidth - window.innerWidth,
|
||||
window.outerHeight - window.innerHeight];"""
|
||||
)
|
||||
self.protocol.webdriver.set_window_size(600 + width_offset, 600 + height_offset)
|
||||
self.protocol.webdriver.set_window_rect(0, 0, 600 + width_offset, 600 + height_offset)
|
||||
|
||||
result = self.implementation.run_test(test)
|
||||
|
||||
|
|
|
@ -405,6 +405,7 @@ class WebDriverRefTestExecutor(RefTestExecutor):
|
|||
"""return [window.outerWidth - window.innerWidth,
|
||||
window.outerHeight - window.innerHeight];"""
|
||||
)
|
||||
self.protocol.webdriver.window.position = (0, 0)
|
||||
self.protocol.webdriver.window.size = (600 + width_offset, 600 + height_offset)
|
||||
|
||||
result = self.implementation.run_test(test)
|
||||
|
|
|
@ -1 +1 @@
|
|||
var win = window.open("about:blank", "test", "width=600,height=600");
|
||||
var win = window.open("about:blank", "test", "left=0,top=0,width=600,height=600");
|
||||
|
|
Загрузка…
Ссылка в новой задаче