| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>Node.appendChild</title> | 3 <title>Node.appendChild</title> |
| 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-appendchild"> | 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-appendchild"> |
| 5 <script src="../../../../resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
| 6 <script src="../../../../resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
| 7 <div id="log"></div> | 7 <div id="log"></div> |
| 8 <iframe src=about:blank></iframe> | 8 <iframe src=about:blank></iframe> |
| 9 <script> | 9 <script> |
| 10 // TODO: Exhaustive tests | 10 // TODO: Exhaustive tests |
| 11 function testLeaf(node, desc) { | 11 function testLeaf(node, desc) { |
| 12 // WebIDL. | 12 // WebIDL. |
| 13 test(function() { | 13 test(function() { |
| 14 assert_throws(new TypeError(), function() { node.appendChild(null) }) | 14 assert_throws(new TypeError(), function() { node.appendChild(null) }) |
| 15 }, "Appending null to a " + desc) | 15 }, "Appending null to a " + desc) |
| 16 | 16 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 test(function() { | 50 test(function() { |
| 51 var frameDoc = frames[0].document | 51 var frameDoc = frames[0].document |
| 52 var s = frameDoc.createElement("b") | 52 var s = frameDoc.createElement("b") |
| 53 assert_equals(s.ownerDocument, frameDoc) | 53 assert_equals(s.ownerDocument, frameDoc) |
| 54 frameDoc.body.appendChild(s) | 54 frameDoc.body.appendChild(s) |
| 55 assert_equals(s.ownerDocument, frameDoc) | 55 assert_equals(s.ownerDocument, frameDoc) |
| 56 document.body.appendChild(s) | 56 document.body.appendChild(s) |
| 57 assert_equals(s.ownerDocument, document) | 57 assert_equals(s.ownerDocument, document) |
| 58 }, "Adopting a non-orphan") | 58 }, "Adopting a non-orphan") |
| 59 </script> | 59 </script> |
| OLD | NEW |