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:
Geoffrey Sneddon 2019-02-18 19:24:38 +00:00 коммит произвёл moz-wptsync-bot
Родитель f8e9284ddb
Коммит 0b95a21720
3 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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");