mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update web-platform-tests to revision ac12b3e9488edb436f063b11213e954ae62d5a5e
This commit is contained in:
parent
65370f17c9
commit
b56a3b8e69
111 changed files with 3122 additions and 68 deletions
|
@ -34,6 +34,12 @@
|
|||
<option selected>Three</option>
|
||||
</select>
|
||||
|
||||
<select id="select-named-selected">
|
||||
<option>One</option>
|
||||
<option>Two</option>
|
||||
<option id="named-option" selected>Three</option>
|
||||
</select>
|
||||
|
||||
<select id="invalid-select">
|
||||
<option selected>One</option>
|
||||
<option selected>Two</option>
|
||||
|
@ -103,6 +109,13 @@ test(() => {
|
|||
}, ".selectedOptions without the 'multiple' attribute but " +
|
||||
"more than one selected option should return the last one");
|
||||
|
||||
test(() => {
|
||||
const select = document.getElementById("select-named-selected");
|
||||
|
||||
assert_equals(select.selectedOptions.constructor, HTMLCollection);
|
||||
assert_equals(select.selectedOptions.namedItem("named-option"), select.children[2]);
|
||||
}, ".selectedOptions should return `HTMLCollection` instance");
|
||||
|
||||
test(() => {
|
||||
const select = document.getElementById("select-same-object");
|
||||
const selectAgain = document.getElementById("select-same-object");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue