Update web-platform-tests to revision ebeb032b23de5abb7f9fd7fffcf471eaa6e2c154

This commit is contained in:
WPT Sync Bot 2019-08-10 10:26:11 +00:00
parent b3c0ed295f
commit a45a4f8e2b
55 changed files with 895 additions and 104 deletions

View file

@ -3,7 +3,6 @@ import pytest
from webdriver import error
from tests.support.asserts import assert_success
from tests.support.inline import inline
def switch_to_window(session, handle):
@ -19,13 +18,15 @@ def test_retain_tab_modal_status(session, create_window):
response = switch_to_window(session, new_handle)
assert_success(response)
session.url = inline("<script>window.alert('Hello');</script>")
session.execute_script("window.alert('Hello');")
assert session.alert.text == "Hello"
response = switch_to_window(session, handle)
assert_success(response)
with pytest.raises(error.NoSuchAlertException):
session.alert.text == "Hello"
response = switch_to_window(session, new_handle)
assert_success(response)