mirror of
https://github.com/servo/servo.git
synced 2025-08-25 15:18:22 +01:00
Update web-platform-tests to revision 7a6f5673ff5d146ca5c09c6a1b42b7706cfee328
This commit is contained in:
parent
e2fca1b228
commit
4787b28da3
261 changed files with 8195 additions and 4689 deletions
|
@ -59,4 +59,4 @@ def test_element_not_visible_overflow_hidden(session):
|
|||
|
||||
element = session.find.css("input", all=False)
|
||||
response = element_click(session, element)
|
||||
assert_error(response, "element not visible")
|
||||
assert_error(response, "element not interactable")
|
||||
|
|
|
@ -44,11 +44,12 @@ def test_link_unload_event(session, server_config):
|
|||
<a href={url}>click here</a>
|
||||
<input type=checkbox>
|
||||
<script>
|
||||
function checkUnload() {
|
||||
function checkUnload() {{
|
||||
document.getElementsByTagName("input")[0].checked = true;
|
||||
}
|
||||
}}
|
||||
</script>
|
||||
</body>""".format(url=link))
|
||||
|
||||
element = session.find.css("a", all=False)
|
||||
response = element_click(session, element)
|
||||
assert_success(response)
|
||||
|
@ -61,7 +62,7 @@ def test_link_unload_event(session, server_config):
|
|||
|
||||
element = session.find.css("input", all=False)
|
||||
response = session.execute_script("""
|
||||
let [input] = arguments;
|
||||
let input = arguments[0];
|
||||
return input.checked;
|
||||
""", args=(element,))
|
||||
assert response is True
|
||||
|
@ -84,7 +85,7 @@ def test_link_hash(session):
|
|||
|
||||
element = session.find.css("p", all=False)
|
||||
assert session.execute_script("""
|
||||
let [input] = arguments;
|
||||
let input = arguments[0];
|
||||
rect = input.getBoundingClientRect();
|
||||
return rect["top"] >= 0 && rect["left"] >= 0 &&
|
||||
(rect["top"] + rect["height"]) <= window.innerHeight &&
|
||||
|
|
|
@ -21,7 +21,7 @@ def test_scroll_into_view(session):
|
|||
|
||||
# Check if element clicked is scrolled into view
|
||||
assert session.execute_script("""
|
||||
let [input] = arguments;
|
||||
let input = arguments[0];
|
||||
rect = input.getBoundingClientRect();
|
||||
return rect["top"] >= 0 && rect["left"] >= 0 &&
|
||||
(rect["top"] + rect["height"]) <= window.innerHeight &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue