Update web-platform-tests to revision 5a754b40cd49c0404863c431b58cc311dc5d167c

This commit is contained in:
Ms2ger 2015-11-17 09:56:30 +01:00
parent 8950345e0e
commit 32efe41299
107 changed files with 4243 additions and 435 deletions

View file

@ -16,8 +16,8 @@ test(function() {
var script = document.createElement("script");
script.setAttribute("event", "blah");
script.setAttribute("for", "blah");
assert_equals(script.event, "");
assert_equals(script.htmlFor, "");
assert_equals(script.event, "blah");
assert_equals(script.htmlFor, "blah");
assert_equals(script.getAttribute("event"), "blah");
assert_equals(script.getAttribute("for"), "blah");
})
@ -27,10 +27,10 @@ test(function() {
script.setAttribute("for", "blah");
script.event = "foo";
script.htmlFor = "foo";
assert_equals(script.event, "");
assert_equals(script.htmlFor, "");
assert_equals(script.getAttribute("event"), "blah");
assert_equals(script.getAttribute("for"), "blah");
assert_equals(script.event, "foo");
assert_equals(script.htmlFor, "foo");
assert_equals(script.getAttribute("event"), "foo");
assert_equals(script.getAttribute("for"), "foo");
})
test(function() {
var script = document.createElement("script");
@ -38,10 +38,10 @@ test(function() {
script.setAttribute("for", "blah");
script.event = null;
script.htmlFor = null;
assert_equals(script.event, "");
assert_equals(script.htmlFor, "");
assert_equals(script.getAttribute("event"), "blah");
assert_equals(script.getAttribute("for"), "blah");
assert_equals(script.event, "null");
assert_equals(script.htmlFor, "null");
assert_equals(script.getAttribute("event"), "null");
assert_equals(script.getAttribute("for"), "null");
})
test(function() {
var script = document.createElement("script");
@ -49,9 +49,9 @@ test(function() {
script.setAttribute("for", "blah");
script.event = undefined;
script.htmlFor = undefined;
assert_equals(script.event, "");
assert_equals(script.htmlFor, "");
assert_equals(script.getAttribute("event"), "blah");
assert_equals(script.getAttribute("for"), "blah");
assert_equals(script.event, "undefined");
assert_equals(script.htmlFor, "undefined");
assert_equals(script.getAttribute("event"), "undefined");
assert_equals(script.getAttribute("for"), "undefined");
})
</script>