| OLD | NEW |
| 1 This is a testharness.js-based test. | 1 This is a testharness.js-based test. |
| 2 Found 24 tests. 20 PASS 4 FAIL 0 TIMEOUT 0 NOTRUN |
| 2 PASS Passing null to replaceChild should throw a TypeError. | 3 PASS Passing null to replaceChild should throw a TypeError. |
| 3 PASS If child's parent is not the context node, a NotFoundError exception should
be thrown | 4 PASS If child's parent is not the context node, a NotFoundError exception should
be thrown |
| 4 PASS If the context node is not a node that can contain children, a NotFoundErro
r exception should be thrown | 5 PASS If the context node is not a node that can contain children, a NotFoundErro
r exception should be thrown |
| 5 FAIL If node is an inclusive ancestor of the context node, a HierarchyRequestErr
or should be thrown. assert_throws: function "function () { | 6 FAIL If node is an inclusive ancestor of the context node, a HierarchyRequestErr
or should be thrown. assert_throws: function "function () { |
| 6 a.replaceChild(a, a); | 7 a.replaceChild(a, a); |
| 7 }" did not throw | 8 }" did not throw |
| 8 PASS If the context node is a document, inserting a document or text node should
throw a HierarchyRequestError. | 9 PASS If the context node is a document, inserting a document or text node should
throw a HierarchyRequestError. |
| 9 PASS If the context node is a document, inserting a DocumentFragment that contai
ns a text node or too many elements should throw a HierarchyRequestError. | 10 PASS If the context node is a document, inserting a DocumentFragment that contai
ns a text node or too many elements should throw a HierarchyRequestError. |
| 10 PASS If the context node is a document (without element children), inserting a D
ocumentFragment that contains multiple elements should throw a HierarchyRequestE
rror. | 11 PASS If the context node is a document (without element children), inserting a D
ocumentFragment that contains multiple elements should throw a HierarchyRequestE
rror. |
| 11 PASS If the context node is a document, inserting a DocumentFragment with an ele
ment if there already is an element child should throw a HierarchyRequestError. | 12 PASS If the context node is a document, inserting a DocumentFragment with an ele
ment if there already is an element child should throw a HierarchyRequestError. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 26 PASS Replacing a node with its next sibling should work (4 children) | 27 PASS Replacing a node with its next sibling should work (4 children) |
| 27 PASS Replacing a node with itself should not move the node | 28 PASS Replacing a node with itself should not move the node |
| 28 PASS If the context node is a document, inserting a new doctype should work. | 29 PASS If the context node is a document, inserting a new doctype should work. |
| 29 PASS Replacing the document element with a DocumentFragment containing a single
element should work. | 30 PASS Replacing the document element with a DocumentFragment containing a single
element should work. |
| 30 PASS Replacing the document element with a DocumentFragment containing a single
element and comments should work. | 31 PASS Replacing the document element with a DocumentFragment containing a single
element and comments should work. |
| 31 PASS Replacing the document element with a single element should work. | 32 PASS Replacing the document element with a single element should work. |
| 32 PASS replaceChild should work in the presence of mutation events. | 33 PASS replaceChild should work in the presence of mutation events. |
| 33 PASS Replacing an element with a DocumentFragment should allow a child of the Do
cumentFragment to be found by Id. | 34 PASS Replacing an element with a DocumentFragment should allow a child of the Do
cumentFragment to be found by Id. |
| 34 Harness: the test ran to completion. | 35 Harness: the test ran to completion. |
| 35 | 36 |
| OLD | NEW |