mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Update web-platform-tests to revision d04a8fc02b85bd32799691759c8c05ead07cd939
This commit is contained in:
parent
e8fdc677f4
commit
2b35c55ac7
63 changed files with 2068 additions and 340 deletions
|
@ -25,6 +25,11 @@
|
|||
<option></option>
|
||||
<option selected></option>
|
||||
</select>
|
||||
|
||||
<select id=display-none>
|
||||
<option style="display:none"></option>
|
||||
<option></option>
|
||||
</select>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
@ -100,4 +105,19 @@ test(function () {
|
|||
form.reset();
|
||||
assertSelectedIndex(select, 1);
|
||||
}, "set and reset (HTMLOptionsCollection)");
|
||||
|
||||
test(function () {
|
||||
var select = document.getElementById('display-none');
|
||||
assertSelectedIndex(select, 0);
|
||||
}, "get display:none");
|
||||
|
||||
test(function () {
|
||||
var select = document.getElementById('display-none');
|
||||
select.offsetTop; // force rendering
|
||||
assertSelectedIndex(select, 0);
|
||||
select.options[1].selected = true;
|
||||
assertSelectedIndex(select, 1);
|
||||
select.options[1].selected = false;
|
||||
assertSelectedIndex(select, 0);
|
||||
}, "reset to display:none");
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue