| Index: LayoutTests/imported/web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html
|
| diff --git a/LayoutTests/imported/web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html b/LayoutTests/imported/web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..70f02a81c19a6e86d076c160212f86c09f727123
|
| --- /dev/null
|
| +++ b/LayoutTests/imported/web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html
|
| @@ -0,0 +1,33 @@
|
| +<!DOCTYPE HTML>
|
| +<html>
|
| +<head>
|
| +<title>HTMLAllCollection Tests</title>
|
| +<link rel="author" title="Dan Druta" href="mailto:dan.druta@att.com"/>
|
| +<link rel="help" href="2.7.2.1 - Common Infrastructure/Common DOM Interfaces/Collections/HTMLAllCollection"/>
|
| +<meta name="flags" content="TOKENS" />
|
| +<meta name="assert" content="TEST ASSERTION"/>
|
| +<script src="../../../../../../resources/testharness.js"></script>
|
| +<script src="../../../../../../resources/testharnessreport.js"></script>
|
| +</head>
|
| +<body>
|
| +<img src="../../../../images/green.png" name="picture">
|
| +<script>
|
| +test(function(){ assert_equals(document.all.length,12)}, "Test for HTMLAllCollection size");
|
| +
|
| +test(function(){ assert_equals(document.all.item(0).tagName,"HTML")}, "Test lookup by index using ()");
|
| +
|
| +test(function(){ assert_equals(document.all[0].tagName,"HTML")}, "Test lookup by index using []");
|
| +
|
| +test(function(){ assert_equals(document.all.tags("script").length,3)}, "Test for multiple occurence 3 <script> found");
|
| +
|
| +test(function(){ assert_equals(document.all.item("picture").nodeName,"IMG")}, "Test lookup IMG by name");
|
| +
|
| +test(function(){ assert_equals(document.all.namedItem("picture").nodeName,"IMG")}, "Test lookup IMG by namedItem ");
|
| +
|
| +test(function(){ assert_equals(document.all("picture").nodeName,"IMG")}, "Test lookup IMG in collection using ()");
|
| +
|
| +test(function(){ assert_equals(document.all["picture"].nodeName,"IMG")}, "Test lookup IMG in collection using []");
|
| +</script>
|
| +<div id="log"></div>
|
| +</body>
|
| +</html>
|
|
|