| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>Node.childNodes</title> | 3 <title>Node.childNodes</title> |
| 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-childnodes"> | 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-childnodes"> |
| 5 <link rel=author title="Tim Taubert" href="mailto:ttaubert@mozilla.com"> | 5 <link rel=author title="Tim Taubert" href="mailto:ttaubert@mozilla.com"> |
| 6 <link rel=author title="Ms2ger" href="mailto:Ms2ger@gmail.com"> | 6 <link rel=author title="Ms2ger" href="mailto:Ms2ger@gmail.com"> |
| 7 <script src="../../../../resources/testharness.js"></script> | 7 <script src="/resources/testharness.js"></script> |
| 8 <script src="../../../../resources/testharnessreport.js"></script> | 8 <script src="/resources/testharnessreport.js"></script> |
| 9 <div id="log"></div> | 9 <div id="log"></div> |
| 10 <script> | 10 <script> |
| 11 test(function() { | 11 test(function() { |
| 12 var element = document.createElement("p"); | 12 var element = document.createElement("p"); |
| 13 assert_equals(element.childNodes, element.childNodes); | 13 assert_equals(element.childNodes, element.childNodes); |
| 14 }, "Caching of Node.childNodes"); | 14 }, "Caching of Node.childNodes"); |
| 15 | 15 |
| 16 var check_parent_node = function(node) { | 16 var check_parent_node = function(node) { |
| 17 assert_array_equals(node.childNodes, []); | 17 assert_array_equals(node.childNodes, []); |
| 18 | 18 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 39 }, "Node.childNodes on an Element."); | 39 }, "Node.childNodes on an Element."); |
| 40 | 40 |
| 41 test(function() { | 41 test(function() { |
| 42 check_parent_node(document.createDocumentFragment()); | 42 check_parent_node(document.createDocumentFragment()); |
| 43 }, "Node.childNodes on a DocumentFragment."); | 43 }, "Node.childNodes on a DocumentFragment."); |
| 44 | 44 |
| 45 test(function() { | 45 test(function() { |
| 46 check_parent_node(new Document()); | 46 check_parent_node(new Document()); |
| 47 }, "Node.childNodes on a Document."); | 47 }, "Node.childNodes on a Document."); |
| 48 </script> | 48 </script> |
| OLD | NEW |