Summary

Harness status: OK

Found 28 tests

Details

ResultTest NameMessage
PassPassing a detached element from the main document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:23:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:24:7)
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:25:7)
PassPassing a non-detached element from the main document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:33:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:34:7)
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:35:7)
PassCalling removeChild on a element from the main document with no children should throw NOT_FOUND_ERR.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:43:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function DOMException() { [native code] }", function "function() { s.removeChild(doc) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:44:7)
PassPassing a detached text from the main document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:23:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:24:7)
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:25:7)
PassPassing a non-detached text from the main document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:33:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:34:7)
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:35:7)
PassCalling removeChild on a text from the main document with no children should throw NOT_FOUND_ERR.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:43:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function DOMException() { [native code] }", function "function() { s.removeChild(doc) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:44:7)
PassPassing a detached comment from the main document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:23:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:24:7)
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:25:7)
PassPassing a non-detached comment from the main document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:33:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:34:7)
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:35:7)
PassCalling removeChild on a comment from the main document with no children should throw NOT_FOUND_ERR.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:43:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function DOMException() { [native code] }", function "function() { s.removeChild(doc) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:44:7)
PassPassing a detached element from a frame document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:23:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:24:7)
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:25:7)
PassPassing a non-detached element from a frame document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:33:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:34:7)
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:35:7)
PassCalling removeChild on a element from a frame document with no children should throw NOT_FOUND_ERR.
Asserts run
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:43:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function DOMException() { [native code] }", function "function() { s.removeChild(doc) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:44:7)
PassPassing a detached text from a frame document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:23:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:24:7)
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:25:7)
PassPassing a non-detached text from a frame document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:33:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:34:7)
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:35:7)
PassCalling removeChild on a text from a frame document with no children should throw NOT_FOUND_ERR.
Asserts run
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:43:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function DOMException() { [native code] }", function "function() { s.removeChild(doc) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:44:7)
PassPassing a detached comment from a frame document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:23:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:24:7)
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:25:7)
PassPassing a non-detached comment from a frame document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:33:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:34:7)
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:35:7)
PassCalling removeChild on a comment from a frame document with no children should throw NOT_FOUND_ERR.
Asserts run
Pass
assert_equals(Document node with 1 child, Document node with 1 child)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:43:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function DOMException() { [native code] }", function "function() { s.removeChild(doc) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:44:7)
PassPassing a detached element from a synthetic document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:23:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:24:7)
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:25:7)
PassPassing a non-detached element from a synthetic document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:33:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:34:7)
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:35:7)
PassCalling removeChild on a element from a synthetic document with no children should throw NOT_FOUND_ERR.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:43:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function DOMException() { [native code] }", function "function() { s.removeChild(doc) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:44:7)
PassPassing a detached text from a synthetic document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:23:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:24:7)
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:25:7)
PassPassing a non-detached text from a synthetic document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:33:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:34:7)
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:35:7)
PassCalling removeChild on a text from a synthetic document with no children should throw NOT_FOUND_ERR.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:43:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function DOMException() { [native code] }", function "function() { s.removeChild(doc) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:44:7)
PassPassing a detached comment from a synthetic document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:23:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:24:7)
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:25:7)
PassPassing a non-detached comment from a synthetic document to removeChild should not affect it.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:33:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function() { document.body.removeChild(s) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:34:7)
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:35:7)
PassCalling removeChild on a comment from a synthetic document with no children should throw NOT_FOUND_ERR.
Asserts run
Pass
assert_equals(Document node with 2 children, Document node with 2 children)
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:43:7)
Pass
assert_throws_dom("NOT_FOUND_ERR", function "function DOMException() { [native code] }", function "function() { s.removeChild(doc) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:44:7)
PassPassing a value that is not a Node reference to removeChild should throw TypeError.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { document.body.removeChild(null) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:55:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { document.body.removeChild({'a':'b'}) }")
    at Test.<anonymous> ( /dom/nodes/Node-removeChild.html:56:3)
test b