Update web-platform-tests to 5582e4d2bfcfd1fa9f105406b143170ee2af7db1

This commit is contained in:
James Graham 2016-03-31 17:56:59 +01:00 committed by Ms2ger
parent 9f892edd87
commit 78369e95cf
814 changed files with 57501 additions and 857 deletions

View file

@ -1,5 +1,5 @@
<!DOCTYPE HTML>
<html>
<html id="root">
<head>
<title>HTMLAllCollection Tests</title>
<link rel="author" title="Dan Druta" href="mailto:dan.druta@att.com"/>
@ -11,8 +11,10 @@
</head>
<body id="tags">
<img src="../../../../images/green.png" name="picture">
<a name="foo"></a>
<a name="foo"></a>
<script>
test(function(){ assert_equals(document.all.length,12)}, "Test for HTMLAllCollection size");
test(function(){ assert_equals(document.all.length,14)}, "Test for HTMLAllCollection size");
test(function(){ assert_equals(document.all.item(0).tagName,"HTML")}, "Test lookup by index using ()");
@ -29,6 +31,16 @@ test(function(){ assert_equals(document.all["picture"].nodeName,"IMG")}, "Test l
test(function(){ assert_equals(document.all.picture.nodeName,"IMG")}, "Test lookup IMG in collection using .");
test(function(){ assert_equals(document.all.tags.id,"tags")}, "Test lookup tags in collection using .");
test(function() {
assert_equals(document.all["root"], document.documentElement);
}, "Should find root element too");
test(function() {
assert_equals(document.all["foo"].length, 2);
}, "Should find both anchors and produce a list");
test
</script>
<div id="log"></div>
</body>