Summary

Harness status: OK

Found 5 tests

Details

ResultTest NameMessage
PassgetRootNode() must return context object's shadow-including root if options's composed is true, and context object's root otherwise
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children, "getRootNode() must return context object's shadow-including root if options's composed is true")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:21:5)
Pass
assert_equals(DocumentFragment node with 1 child, DocumentFragment node with 1 child, "getRootNode() must return context object's root if options's composed is false")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:22:5)
Pass
assert_equals(DocumentFragment node with 1 child, DocumentFragment node with 1 child, "getRootNode() must return context object's root if options's composed is default false")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:23:5)
PassgetRootNode() must return the context object when it does not have any parent
Asserts run
Pass
assert_equals(Element node <div></div>, Element node <div></div>, "getRootNode() on an element without a parent must return the element itself")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:29:5)
Pass
assert_equals(Text node "", Text node "", "getRootNode() on a text node without a parent must return the text node itself")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:32:5)
Pass
assert_equals(ProcessingInstruction node with target "target" and data "data", ProcessingInstruction node with target "target" and data "data", "getRootNode() on a processing instruction node without a parent must return the processing instruction node itself")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:35:5)
Pass
assert_equals(Document node with 2 children, Document node with 2 children, "getRootNode() on a document node must return the document itself")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:37:5)
PassgetRootNode() must return the parent node of the context object when the context object has a single ancestor not in a document
Asserts run
Pass
assert_equals(Element node <div><div></div></div>, Element node <div><div></div></div>, "getRootNode() on an element with a single ancestor must return the parent node")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:46:5)
Pass
assert_equals(Element node <div><div></div></div>, Element node <div><div></div></div>, "getRootNode() on a text node with a single ancestor must return the parent node")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:50:5)
Pass
assert_equals(Element node <div><div></div><?target data?></div>, Element node <div><div></div><?target data?></div>, "getRootNode() on a processing instruction node with a single ancestor must return the parent node")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:54:5)
PassgetRootNode() must return the document when a node is in document
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children, "getRootNode() on an element inside a document must return the document")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:64:5)
Pass
assert_equals(Document node with 2 children, Document node with 2 children, "getRootNode() on a text node inside a document must return the document")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:68:5)
Pass
assert_equals(Document node with 2 children, Document node with 2 children, "getRootNode() on a processing instruction node inside a document must return the document")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:72:5)
PassgetRootNode() must return a document fragment when a node is in the fragment
Asserts run
Pass
assert_equals(DocumentFragment node with 1 child, DocumentFragment node with 1 child, "getRootNode() on an element inside a document fragment must return the fragment")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:82:5)
Pass
assert_equals(DocumentFragment node with 1 child, DocumentFragment node with 1 child, "getRootNode() on a text node inside a document fragment must return the fragment")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:86:5)
Pass
assert_equals(DocumentFragment node with 1 child, DocumentFragment node with 1 child, "getRootNode() on a processing instruction node inside a document fragment must return the fragment")
    at Test.<anonymous> ( /dom/nodes/rootNode.html:90:5)