Summary

Harness status: OK

Found 22 tests

Details

ResultTest NameMessage
PassIf node is a host-including inclusive ancestor of parent, then throw a HierarchyRequestError DOMException.
Asserts run
Pass
assert_throws_dom("HierarchyRequestError", function "() => insert(doc.body, doc.body)")
    at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:19:5)
Pass
assert_throws_dom("HierarchyRequestError", function "() => insert(doc.body, doc.documentElement)")
    at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:20:5)
PassIf node is not a DocumentFragment, DocumentType, Element, Text, ProcessingInstruction, or Comment node, then throw a HierarchyRequestError DOMException.
Asserts run
Pass
assert_throws_dom("HierarchyRequestError", function "() => insert(doc, doc2)")
    at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:27:5)
PassIf node is a Text node and parent is a document, then throw a HierarchyRequestError DOMException.
Asserts run
Pass
assert_throws_dom("HierarchyRequestError", function "() => insert(doc, doc.createTextNode("text"))")
    at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:33:5)
PassIf node is a doctype and parent is not a document, then throw a HierarchyRequestError DOMException.
Asserts run
Pass
assert_throws_dom("HierarchyRequestError", function "() => insert(doc.createElement("a"), doctype)")
    at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:40:5)
PassIf node is a DocumentFragment with multiple elements and parent is a document, then throw a HierarchyRequestError DOMException.
Asserts run
Pass
assert_throws_dom("HierarchyRequestError", function "() => insert(doc, df)")
    at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:50:5)
PassIf node is a DocumentFragment with an element and parent is a document with another element, then throw a HierarchyRequestError DOMException.
Asserts run
Pass
assert_throws_dom("HierarchyRequestError", function "() => insert(doc, df)")
    at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:58:5)
PassIf node is an Element and parent is a document with another element, then throw a HierarchyRequestError DOMException.
Asserts run
Pass
assert_throws_dom("HierarchyRequestError", function "() => insert(doc, el)")
    at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:65:5)
PassIf node is a doctype and parent is a document with another doctype, then throw a HierarchyRequestError DOMException.
Asserts run
Pass
assert_throws_dom("HierarchyRequestError", function "() => insert(doc, doctype)")
    at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:73:5)
PassElement.prepend() without any argument, on a parent having no child.
Asserts run
Pass
assert_array_equals(object "[object NodeList]", [])
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:15:9)
PassElement.prepend() with null as an argument, on a parent having no child.
Asserts run
Pass
assert_equals("null", "null")
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:21:9)
PassElement.prepend() with undefined as an argument, on a parent having no child.
Asserts run
Pass
assert_equals("undefined", "undefined")
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:27:9)
PassElement.prepend() with only text as an argument, on a parent having no child.
Asserts run
Pass
assert_equals("text", "text")
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:33:9)
PassElement.prepend() with only one element as an argument, on a parent having no child.
Asserts run
Pass
assert_array_equals(object "[object NodeList]", [Element node <x></x>])
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:40:9)
PassElement.prepend() with null as an argument, on a parent having a child.
Asserts run
Pass
assert_equals("null", "null")
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:48:9)
Pass
assert_equals(Element node <test></test>, Element node <test></test>)
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:49:9)
PassElement.prepend() with one element and text as argument, on a parent having a child.
Asserts run
Pass
assert_equals(Element node <x></x>, Element node <x></x>)
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:58:9)
Pass
assert_equals("text", "text")
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:59:9)
Pass
assert_equals(Element node <test></test>, Element node <test></test>)
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:60:9)
PassDocumentFragment.prepend() without any argument, on a parent having no child.
Asserts run
Pass
assert_array_equals(object "[object NodeList]", [])
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:15:9)
PassDocumentFragment.prepend() with null as an argument, on a parent having no child.
Asserts run
Pass
assert_equals("null", "null")
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:21:9)
PassDocumentFragment.prepend() with undefined as an argument, on a parent having no child.
Asserts run
Pass
assert_equals("undefined", "undefined")
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:27:9)
PassDocumentFragment.prepend() with only text as an argument, on a parent having no child.
Asserts run
Pass
assert_equals("text", "text")
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:33:9)
PassDocumentFragment.prepend() with only one element as an argument, on a parent having no child.
Asserts run
Pass
assert_array_equals(object "[object NodeList]", [Element node <x></x>])
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:40:9)
PassDocumentFragment.prepend() with null as an argument, on a parent having a child.
Asserts run
Pass
assert_equals("null", "null")
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:48:9)
Pass
assert_equals(Element node <test></test>, Element node <test></test>)
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:49:9)
PassDocumentFragment.prepend() with one element and text as argument, on a parent having a child.
Asserts run
Pass
assert_equals(Element node <x></x>, Element node <x></x>)
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:58:9)
Pass
assert_equals("text", "text")
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:59:9)
Pass
assert_equals(Element node <test></test>, Element node <test></test>)
    at Test.<anonymous> ( /dom/nodes/ParentNode-prepend.html:60:9)