mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 5a754b40cd49c0404863c431b58cc311dc5d167c
This commit is contained in:
parent
8950345e0e
commit
32efe41299
107 changed files with 4243 additions and 435 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue