Pass | element should support remove() | Asserts runPass | assert_true(true)
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:3:5) | Pass | assert_equals("function", "function")
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:4:5) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:5:5) |
|
Pass | remove() should work if element doesn't have a parent | Asserts runPass | assert_equals(null, null, "Node should not have a parent")
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:8:5) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:9:5) | Pass | assert_equals(null, null, "Removed new node should not have a parent")
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:10:5) |
|
Pass | remove() should work if element does have a parent | Asserts runPass | assert_equals(null, null, "Node should not have a parent")
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:13:5) | Pass | assert_equals(Element node <div><div></div></div>, Element node <div><div></div></div>, "Appended node should have a parent")
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:15:5) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:16:5) | Pass | assert_equals(null, null, "Removed node should not have a parent")
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:17:5) | Pass | assert_array_equals(object "[object NodeList]", [], "Parent should not have children")
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:18:5) |
|
Pass | remove() should work if element does have a parent and siblings | Asserts runPass | assert_equals(null, null, "Node should not have a parent")
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:21:5) | Pass | assert_equals(Element node <div><!--before--><div></div><!--after--></div>, Element node <div><!--before--><div></div><!--after--></div>, "Appended node should have a parent")
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:25:5) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:26:5) | Pass | assert_equals(null, null, "Removed node should not have a parent")
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:27:5) | Pass | assert_array_equals(object "[object NodeList]", [Comment node <!--before-->, Comment node <!--after-->], "Parent should have two children left")
at Test.<anonymous> ( /dom/nodes/ChildNode-remove.js:28:5) |
|