Fail | If node is a host-including inclusive ancestor of parent, then throw a HierarchyRequestError DOMException. | assert_throws_dom: function "() => insert(doc.body, doc.body)" threw object "TypeError: Cannot read properties of undefined (reading 'length')" that is not a DOMException HierarchyRequestError: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:19:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:17:3) Asserts runFail | assert_throws_dom("HierarchyRequestError", function "() => insert(doc.body, doc.body)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:19:5) |
|
Fail | If node is not a DocumentFragment, DocumentType, Element, Text, ProcessingInstruction, or Comment node, then throw a HierarchyRequestError DOMException. | assert_throws_dom: function "() => insert(doc, doc2)" threw object "TypeError: Cannot read properties of undefined (reading 'length')" that is not a DOMException HierarchyRequestError: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:27:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:24:3) Asserts runFail | assert_throws_dom("HierarchyRequestError", function "() => insert(doc, doc2)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:27:5) |
|
Fail | If node is a Text node and parent is a document, then throw a HierarchyRequestError DOMException. | assert_throws_dom: function "() => insert(doc, doc.createTextNode("text"))" threw object "TypeError: Cannot read properties of undefined (reading 'length')" that is not a DOMException HierarchyRequestError: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:33:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:31:3) Asserts runFail | assert_throws_dom("HierarchyRequestError", function "() => insert(doc, doc.createTextNode("text"))")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:33:5) |
|
Fail | If node is a doctype and parent is not a document, then throw a HierarchyRequestError DOMException. | assert_throws_dom: function "() => insert(doc.createElement("a"), doctype)" threw object "TypeError: Cannot read properties of undefined (reading 'length')" that is not a DOMException HierarchyRequestError: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:40:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:37:3) Asserts runFail | assert_throws_dom("HierarchyRequestError", function "() => insert(doc.createElement("a"), doctype)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:40:5) |
|
Fail | If node is a DocumentFragment with multiple elements and parent is a document, then throw a HierarchyRequestError DOMException. | assert_throws_dom: function "() => insert(doc, df)" threw object "TypeError: Cannot read properties of undefined (reading 'length')" that is not a DOMException HierarchyRequestError: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:50:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:44:3) Asserts runFail | assert_throws_dom("HierarchyRequestError", function "() => insert(doc, df)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:50:5) |
|
Fail | If node is a DocumentFragment with an element and parent is a document with another element, then throw a HierarchyRequestError DOMException. | assert_throws_dom: function "() => insert(doc, df)" threw object "TypeError: Cannot read properties of undefined (reading 'length')" that is not a DOMException HierarchyRequestError: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:58:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:54:3) Asserts runFail | assert_throws_dom("HierarchyRequestError", function "() => insert(doc, df)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:58:5) |
|
Fail | If node is an Element and parent is a document with another element, then throw a HierarchyRequestError DOMException. | assert_throws_dom: function "() => insert(doc, el)" threw object "TypeError: Cannot read properties of undefined (reading 'length')" that is not a DOMException HierarchyRequestError: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:65:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:62:3) Asserts runFail | assert_throws_dom("HierarchyRequestError", function "() => insert(doc, el)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:65:5) |
|
Fail | If node is a doctype and parent is a document with another doctype, then throw a HierarchyRequestError DOMException. | assert_throws_dom: function "() => insert(doc, doctype)" threw object "TypeError: Cannot read properties of undefined (reading 'length')" that is not a DOMException HierarchyRequestError: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:73:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:69:3) Asserts runFail | assert_throws_dom("HierarchyRequestError", function "() => insert(doc, doctype)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:73:5) |
|
Fail | If node is a doctype and parent is a document with an element, then throw a HierarchyRequestError DOMException. | assert_throws_dom: function "() => insert(doc, doctype)" threw object "TypeError: Cannot read properties of undefined (reading 'length')" that is not a DOMException HierarchyRequestError: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:83:7)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (https://wpt.live/dom/nodes/pre-insertion-validation-hierarchy.js:79:5) Asserts runFail | assert_throws_dom("HierarchyRequestError", function "() => insert(doc, doctype)")
at Test.<anonymous> ( /dom/nodes/pre-insertion-validation-hierarchy.js:83:7) |
|
Pass | Calling moveBefore with a non-Node first argument must throw TypeError. | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { document.body.moveBefore(null, null) }")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:17:3) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { document.body.moveBefore(null, document.body.firstChild) }")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:18:3) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { document.body.moveBefore({'a':'b'}, document.body.firstChild) }")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:19:3) |
|
Pass | Calling moveBefore with second argument missing, or other than Node, null, or undefined, must throw TypeError. | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { document.body.moveBefore(document.createTextNode("child")) }")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:24:3) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { document.body.moveBefore(document.createTextNode("child"), {'a':'b'}) }")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:25:3) |
|
Pass | moveBefore() method does not exist on non-ParentNode Nodes | Asserts runPass | assert_false(false, "moveBefore() not on DocumentType")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:29:3) | Pass | assert_false(false, "moveBefore() not on TextNode")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:30:3) | Pass | assert_false(false, "moveBefore() not on CommentNode")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:31:3) | Pass | assert_false(false, "moveBefore() not on ProcessingInstruction")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:32:3) |
|
Fail | moveBefore() on disconnected parent throws a HierarchyRequestError | assert_throws_dom: function "() => {
disconnectedDestination.moveBefore(connectedTarget, null);
}" threw object "TypeError: disconnectedDestination.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:45:3)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:40:1 Asserts runFail | assert_throws_dom("HIERARCHY_REQUEST_ERR", function "() => { disconnectedDestination.moveBefore(connectedTarget, null); }")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:45:3) |
|
Fail | moveBefore() with disconnected target node throws a HierarchyRequestError | assert_throws_dom: function "() => {
connectedDestination.moveBefore(disconnectedTarget, null);
}" threw object "TypeError: connectedDestination.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:54:3)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:49:1 Asserts runFail | assert_throws_dom("HIERARCHY_REQUEST_ERR", function "() => { connectedDestination.moveBefore(disconnectedTarget, null); }")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:54:3) |
|
Fail | moveBefore() on a cross-document target node throws a HierarchyRequestError | assert_throws_dom: function "() => {
connectedLocalParent.moveBefore(connectedCrossDocChild, null);
}" threw object "TypeError: connectedLocalParent.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:71:3)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:64:1 Asserts runFail | assert_throws_dom("HIERARCHY_REQUEST_ERR", function "() => { connectedLocalParent.moveBefore(connectedCrossDocChild, null); }")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:71:3) |
|
Fail | moveBefore() into a Document throws a HierarchyRequestError | assert_throws_dom: function "() => {
// Moving the body into the same place that it already is, which is a valid
// action in the normal case, when moving an Element directly under the
// document. This is not `moveBefore()`-specific behavior; it is consistent
// with traditional Document insertion rules, just like `insertBefore()`.
iframe.contentDocument.moveBefore(innerBody, null);
}" threw object "TypeError: iframe.contentDocument.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:85:3)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:81:1 Asserts runFail | assert_throws_dom("HIERARCHY_REQUEST_ERR", function "function DOMException() { [native code] }", function "() => { // Moving the body into the same place that it already is, which is a valid // action in the normal case, when moving an Element directly under the // document. This is not `moveBefore()`-specific behavior; it is consistent // with traditional Document insertion rules, just like `insertBefore()`. iframe.contentDocument.moveBefore(innerBody, null); }")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:85:3) |
|
Fail | moveBefore() CharacterData into a Document | iframe.contentDocument.moveBefore is not a functionTypeError: iframe.contentDocument.moveBefore is not a function
at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:98:26)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:93:1 Asserts runNo asserts ran |
Fail | moveBefore() with node being an inclusive ancestor of parent throws a HierarchyRequestError | assert_throws_dom: parent moving itself function "() => {
parentDiv.moveBefore(parentDiv, null);
}" threw object "TypeError: parentDiv.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:115:3)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:107:1 Asserts runFail | assert_throws_dom("HIERARCHY_REQUEST_ERR", function "() => { parentDiv.moveBefore(parentDiv, null); }", "parent moving itself")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:115:3) |
|
Fail | moveBefore() with a non-{Element, CharacterData} throws a HierarchyRequestError | assert_throws_dom: DocumentType throws function "() => {
document.body.moveBefore(document.doctype, null);
}" threw object "TypeError: document.body.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:140:3)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:138:1 Asserts runPass | assert_true(true)
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:139:3) | Fail | assert_throws_dom("HIERARCHY_REQUEST_ERR", function "() => { document.body.moveBefore(document.doctype, null); }", "DocumentType throws")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:140:3) |
|
Fail | moveBefore with an Element or CharacterData succeeds | promise_test: Unhandled rejection with value: object "TypeError: document.body.moveBefore is not a function"Error
at get_stack (https://wpt.live/resources/testharness.js:4571:21)
at new AssertionError (https://wpt.live/resources/testharness.js:4564:22)
at assert (https://wpt.live/resources/testharness.js:4548:19)
at Test.<anonymous> (https://wpt.live/resources/testharness.js:764:29)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at https://wpt.live/resources/testharness.js:2689:35 Asserts runNo asserts ran |
Fail | moveBefore on a paragraph's Text node child | document.body.moveBefore is not a functionTypeError: document.body.moveBefore is not a function
at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:205:17)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:189:1 Asserts runPass | assert_equals("Some content", "Some content")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:197:3) | Pass | assert_not_equals(Element node <iframe></iframe>, Text node "Some content")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:198:3) |
|
Fail | moveBefore with reference child whose parent is NOT the destination parent (context node) throws a NotFoundError. | assert_throws_dom: function "() => {
a.moveBefore(b, c);
}" threw object "TypeError: a.moveBefore is not a function" that is not a DOMException NotFoundError: property "code" is equal to undefined, expected 8 at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:225:3)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:214:1 Asserts runFail | assert_throws_dom("NotFoundError", function "() => { a.moveBefore(b, c); }")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:225:3) |
|
Fail | moveBefore() returns undefined | a.moveBefore is not a functionTypeError: a.moveBefore is not a function
at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:238:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:231:1 Asserts runPass | assert_array_equals(object "[object NodeList]", [Element node <div></div>, Element node <div></div>])
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:237:3) |
|
Fail | Moving a node before itself should not move the node | a.moveBefore is not a functionTypeError: a.moveBefore is not a function
at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:249:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:242:1 Asserts runPass | assert_array_equals(object "[object NodeList]", [Element node <div></div>, Element node <div></div>])
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:248:3) |
|
Fail | Moving a node from a disconnected container to a disconnected new parent without a shared ancestor throws a HIERARCHY_REQUEST_ERR | assert_throws_dom: function "() => {
disconnectedDestination.moveBefore(p, null);
}" threw object "TypeError: disconnectedDestination.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:260:3)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:255:1 Asserts runFail | assert_throws_dom("HIERARCHY_REQUEST_ERR", function "() => { disconnectedDestination.moveBefore(p, null); }")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:260:3) |
|
Fail | Moving a node from a disconnected container to a disconnected new parent in the same tree succeeds | disconnectedDestination.moveBefore is not a functionTypeError: disconnectedDestination.moveBefore is not a function
at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:271:27)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:266:1 Asserts runNo asserts ran |
Fail | Moving a node from a disconnected container to a disconnected new parent in the same tree succeeds,also across shadow-roots | disconnectedDestination.moveBefore is not a functionTypeError: disconnectedDestination.moveBefore is not a function
at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:283:27)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:276:1 Asserts runNo asserts ran |
Fail | Moving a node from disconnected->connected throws a HIERARCHY_REQUEST_ERR | assert_throws_dom: function "() => connectedDestination.moveBefore(p, null)" threw object "TypeError: connectedDestination.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:294:3)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:289:1 Asserts runFail | assert_throws_dom("HIERARCHY_REQUEST_ERR", function "() => connectedDestination.moveBefore(p, null)")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:294:3) |
|
Fail | Moving a node from connected->disconnected throws a HIERARCHY_REQUEST_ERR | assert_throws_dom: function "() => disconnectedDestination.moveBefore(p, null)" threw object "TypeError: disconnectedDestination.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:302:3)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:297:1 Asserts runFail | assert_throws_dom("HIERARCHY_REQUEST_ERR", function "() => disconnectedDestination.moveBefore(p, null)")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:302:3) |
|
Fail | No custom element callbacks are run during disconnected moveBefore() | promise_test: Unhandled rejection with value: object "TypeError: newParent.moveBefore is not a function"Error
at get_stack (https://wpt.live/resources/testharness.js:4571:21)
at new AssertionError (https://wpt.live/resources/testharness.js:4564:22)
at assert (https://wpt.live/resources/testharness.js:4548:19)
at Test.<anonymous> (https://wpt.live/resources/testharness.js:764:29)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at https://wpt.live/resources/testharness.js:2689:35 Asserts runNo asserts ran |
Fail | Invalid node hierarchy with null old parent does not crash | assert_throws_dom: function "() => div.moveBefore(outer, null)" threw object "TypeError: div.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3 at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:340:3)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:334:1 Asserts runFail | assert_throws_dom("HIERARCHY_REQUEST_ERR", function "() => div.moveBefore(outer, null)")
at Test.<anonymous> ( /dom/nodes/moveBefore/Node-moveBefore.html:340:3) |
|
Fail | Move disconnected iframe does not crash | outerDiv.moveBefore is not a functionTypeError: outerDiv.moveBefore is not a function
at Test.<anonymous> (https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:347:12)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/dom/nodes/moveBefore/Node-moveBefore.html:343:1 Asserts runNo asserts ran |