mirror of
https://github.com/servo/servo.git
synced 2025-08-22 13:55:34 +01:00
Update web-platform-tests to revision ebeb032b23de5abb7f9fd7fffcf471eaa6e2c154
This commit is contained in:
parent
b3c0ed295f
commit
a45a4f8e2b
55 changed files with 895 additions and 104 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue