OLD | NEW |
(Empty) | |
| 1 This is a testharness.js-based test. |
| 2 PASS Calling insertBefore with a non-Node first argument must throw TypeError. |
| 3 PASS Calling insertBefore with a non-Node first argument on a leaf node Document
Type must throw TypeError. |
| 4 PASS Calling insertBefore an a leaf node DocumentType must throw HIERARCHY_REQUE
ST_ERR. |
| 5 PASS Calling insertBefore with a non-Node first argument on a leaf node Text mus
t throw TypeError. |
| 6 PASS Calling insertBefore an a leaf node Text must throw HIERARCHY_REQUEST_ERR. |
| 7 PASS Calling insertBefore with a non-Node first argument on a leaf node Comment
must throw TypeError. |
| 8 PASS Calling insertBefore an a leaf node Comment must throw HIERARCHY_REQUEST_ER
R. |
| 9 PASS Calling insertBefore with a non-Node first argument on a leaf node Processi
ngInstruction must throw TypeError. |
| 10 PASS Calling insertBefore an a leaf node ProcessingInstruction must throw HIERAR
CHY_REQUEST_ERR. |
| 11 PASS Calling insertBefore with an inclusive ancestor of the context object must
throw HIERARCHY_REQUEST_ERR. |
| 12 PASS Calling insertBefore with a reference child whose parent is not the context
node must throw a NotFoundError. |
| 13 PASS If the context node is a document, inserting a document or text node should
throw a HierarchyRequestError. |
| 14 PASS If the context node is a document, appending a DocumentFragment that contai
ns a text node or too many elements should throw a HierarchyRequestError. |
| 15 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. |
| 16 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. |
| 17 FAIL If the context node is a document and a doctype is following the reference
child, inserting a DocumentFragment with an element should throw a HierarchyRequ
estError. assert_throws: function "function () { |
| 18 doc.insertBefore(df, doc.doctype); |
| 19 }" did not throw |
| 20 FAIL If the context node is a document, inserting a DocumentFragment with an ele
ment before the doctype should throw a HierarchyRequestError. assert_throws: fun
ction "function () { |
| 21 doc.insertBefore(df, comment); |
| 22 }" did not throw |
| 23 PASS If the context node is a document, inserting an element if there already is
an element child should throw a HierarchyRequestError. |
| 24 FAIL If the context node is a document, inserting an element before the doctype
should throw a HierarchyRequestError. assert_throws: function "function () { |
| 25 doc.insertBefore(a, doc.doctype); |
| 26 }" did not throw |
| 27 FAIL If the context node is a document and a doctype is following the reference
child, inserting an element should throw a HierarchyRequestError. assert_throws:
function "function () { |
| 28 doc.insertBefore(a, comment); |
| 29 }" did not throw |
| 30 PASS If the context node is a document, inserting a doctype if there already is
a doctype child should throw a HierarchyRequestError. |
| 31 FAIL If the context node is a document, inserting a doctype after the document e
lement should throw a HierarchyRequestError. assert_throws: function "function (
) { |
| 32 doc.insertBefore(doctype, comment); |
| 33 }" did not throw |
| 34 FAIL If the context node is a document with and element child, appending a docty
pe should throw a HierarchyRequestError. assert_throws: function "function () { |
| 35 doc.insertBefore(doctype, null); |
| 36 }" did not throw |
| 37 PASS If the context node is a DocumentFragment, inserting a document or a doctyp
e should throw a HierarchyRequestError. |
| 38 PASS If the context node is an element, inserting a document or a doctype should
throw a HierarchyRequestError. |
| 39 PASS Inserting a node before itself should not move the node |
| 40 Harness: the test ran to completion. |
| 41 |
OLD | NEW |