| Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html
|
| index f48e2975c25b1145a2456ce6e4822be61d4ebf3d..cb3b2ad2f5598ec3bdba5f22c4c166500b3ecf26 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html
|
| +++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html
|
| @@ -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>
|
|
|