Update web-platform-tests to revision af43e2eb32555059316b67fba4a1d7df6ea3148d

This commit is contained in:
WPT Sync Bot 2018-08-15 21:29:12 -04:00
parent 97c6246385
commit 2f89d25484
296 changed files with 21168 additions and 821 deletions

View file

@ -168,6 +168,11 @@ def test_restore_from_maximized(session):
def test_height_width(session):
# The window position might be auto-adjusted by the browser
# if it exceeds the lower right corner. As such ensure that
# there is enough space left so no window move will occur.
session.window.position = (50, 50)
original = session.window.rect
max = session.execute_script("""
return {
@ -250,10 +255,16 @@ def test_negative_x_y(session):
# horizontal axis. The system menu bar also blocks windows from
# being moved to (0,0).
elif os == "mac":
assert_success(response, {"x": -8,
"y": 23,
"width": original["width"],
"height": original["height"]})
value = assert_success(response)
# `screen.availTop` is not standardized but all browsers we care
# about on MacOS implement the CSSOM View mode `Screen` interface.
avail_top = session.execute_script("return window.screen.availTop;")
assert value == {"x": -8,
"y": avail_top,
"width": original["width"],
"height": original["height"]}
# It turns out that Windows is the only platform on which the
# window can be reliably positioned off-screen.