Update web-platform-tests to revision 3137d1d2d7757366a69f8a449b458b5057e0e81e

This commit is contained in:
Ms2ger 2016-12-28 09:51:21 +01:00
parent 81ca858678
commit d6ba94ca28
2339 changed files with 89274 additions and 9328 deletions

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>Test aspects of the reset event</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
async_test((t) => {
var form = document.createElement("form")
form.onreset = t.step_func_done((e) => {
assert_true(e.bubbles)
assert_true(e.cancelable)
assert_true(e.isTrusted)
assert_equals(e.target, form)
})
form.reset()
assert_unreached()
})
</script>

View file

@ -38,9 +38,9 @@ test(function () {
}, "The form attribute must return the fieldset's form owner");
test(function () {
assert_true(children_outer instanceof HTMLFormControlsCollection,
"The elements attribute should be an HTMLFormControlsCollection object");
}, "The elements must return an HTMLFormControlsCollection object");
assert_equals(children_outer.constructor, HTMLCollection,
"The elements attribute should be an HTMLCollection object");
}, "The elements must return an HTMLCollection object");
test(function () {
var fs_inner = document.getElementById("fs_inner");

View file

@ -10,7 +10,7 @@
<input type=radio name=group1 id=radio2>
<input type=radio name=groüp2 id=radio3>
<input type=radio name=groÜp2 id=radio4>
<input type=radio name=groüp2 id=radio4>
<input type=radio id=radio5>
<input type=radio id=radio6 disabled>
@ -23,7 +23,6 @@
<input type=radio name=group4 id=radio10>
<input type=radio name=group4 id=radio11 checked>
<script>
var radio1 = document.getElementById('radio1'),
radio2 = document.getElementById('radio2'),
@ -64,7 +63,7 @@
radio4.checked = true;
assert_false(radio3.checked);
assert_true(radio4.checked);
}, "radio inputs with name attributes groüp2 and groÜp2 belong to the same radio button group");
}, "radio inputs with non-ASCII name attributes belong to the same radio button group");
test(function(){
assert_true(radio8.checked);