DOM: Make moveBefore() throw for all pre-move validity checks #48642
Community-TC (pull_request)
Collect results for all tests affected by a pull request in chrome.
Details
View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster
Task Status
Started: 2024-10-16T11:50:20.923Z
Resolved: 2024-10-16T11:52:04.174Z
Task Execution Time: 1 minute, 43 seconds, 251 milliseconds
Task Status: completed
Reason Resolved: completed
RunId: 0
Artifacts
- public/logs/live_backing.log
- public/logs/live.log
- public/results/checkrun.md
- public/results/wpt_report.json.gz
- public/results/wpt_screenshot.txt.gz
WPT Command: python3 ./wpt run --channel=dev --no-fail-on-unexpected --log-wptreport=../artifacts/wpt_report.json --log-wptscreenshot=../artifacts/wpt_screenshot.txt --affected base_head --log-mach-level=info --log-mach=- -y --no-pause --no-restart-on-unexpected --install-fonts --no-headless --verify-log-full --enable-swiftshader --install-browser --install-webdriver chrome
[taskcluster 2024-10-16 11:50:20.963Z] Task ID: RS7BuOWyTViO6QLBoJRFDQ
[taskcluster 2024-10-16 11:50:20.963Z] Worker ID: 849190611778148967
[taskcluster 2024-10-16 11:50:20.963Z] Worker Group: us-central1-a
[taskcluster 2024-10-16 11:50:20.963Z] Worker Node Type: projects/757942385826/machineTypes/n2-standard-4
[taskcluster 2024-10-16 11:50:20.963Z] Worker Pool: proj-wpt/ci
[taskcluster 2024-10-16 11:50:20.963Z] Worker Version: 46.1.0
[taskcluster 2024-10-16 11:50:20.963Z] Public IP: 34.70.185.120
[taskcluster 2024-10-16 11:50:20.963Z] Hostname: proj-wpt-ci-l5rkytg2rwmv1-xxjzpmyg
[taskcluster 2024-10-16 11:50:21.727Z] === Task Starting ===
+ '[' '' ']'
+ '[' -d /etc/profile.d ']'
+ for i in /etc/profile.d/*.sh
+ '[' -r /etc/profile.d/01-locale-fix.sh ']'
+ . /etc/profile.d/01-locale-fix.sh
+++ /usr/bin/locale-check C.UTF-8
++ eval
+ for i in /etc/profile.d/*.sh
+ '[' -r /etc/profile.d/libvirt-uri.sh ']'
+ . /etc/profile.d/libvirt-uri.sh
...(676 lines hidden)...
web-platform-test
~~~~~~~~~~~~~~~~~
Ran 39 checks (34 subtests, 5 tests)
Expected results: 11
Unexpected results: 28
subtest: 28 (28 fail)
Unexpected Results
------------------
/dom/nodes/moveBefore/tentative/Node-moveBefore.html
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> (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:19:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:17:3)
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> (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:27:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:24:3)
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> (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:33:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:31:3)
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> (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:40:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:37:3)
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> (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:50:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:44:3)
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> (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:58:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:54:3)
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> (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:65:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:62:3)
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> (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:73:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:69:3)
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> (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:83:7)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at preInsertionValidateHierarchy (http://web-platform.test:8000/dom/nodes/pre-insertion-validation-hierarchy.js:79:5)
FAIL Calling moveBefore an a leaf node DocumentType must throw HIERARCHY_REQUEST_ERR. - assert_throws_dom: function "function() { node.moveBefore(document.createTextNode("fail"), null) }" threw object "TypeError: node.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3
at Test.<anonymous> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:22:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at testLeafNode (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:20:3)
FAIL Calling moveBefore an a leaf node Text must throw HIERARCHY_REQUEST_ERR. - assert_throws_dom: function "function() { node.moveBefore(document.createTextNode("fail"), null) }" threw object "TypeError: node.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3
at Test.<anonymous> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:22:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at testLeafNode (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:20:3)
FAIL Calling moveBefore an a leaf node Comment must throw HIERARCHY_REQUEST_ERR. - assert_throws_dom: function "function() { node.moveBefore(document.createTextNode("fail"), null) }" threw object "TypeError: node.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3
at Test.<anonymous> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:22:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at testLeafNode (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:20:3)
FAIL Calling moveBefore an a leaf node ProcessingInstruction must throw HIERARCHY_REQUEST_ERR. - assert_throws_dom: function "function() { node.moveBefore(document.createTextNode("fail"), null) }" threw object "TypeError: node.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3
at Test.<anonymous> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:22:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at testLeafNode (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:20: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> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:58:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:53:1
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> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:67:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:62:1
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> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:84:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:77:1
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 a node into an Element.
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> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:98:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:94:1
FAIL moveBefore() into a CharacterData throws a HierarchyRequestError - assert_throws_dom: function "() => {
comment.moveBefore(child, null);
}" threw object "TypeError: comment.moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3
at Test.<anonymous> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:108:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:104:1
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> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:126:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:118:1
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> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:151:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:149:1
FAIL moveBefore with an Element or CharacterData succeeds - document.body.moveBefore is not a function
TypeError: document.body.moveBefore is not a function
at Test.<anonymous> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:177:17)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:165:1
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> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:200:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:189:1
FAIL Inserting a node before itself should not move the node - a.moveBefore is not a function
TypeError: a.moveBefore is not a function
at Test.<anonymous> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:213:19)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/dom/nodes/moveBefore/tentative/Node-moveBefore.html:206:1
/dom/nodes/moveBefore/tentative/css-transition-cross-document.html
FAIL Moving a transition across documents should reset its state - assert_throws_dom: function "() => {
document.querySelector("#new-parent").moveBefore(item, null);
}" threw object "TypeError: document.querySelector(...).moveBefore is not a function" that is not a DOMException HIERARCHY_REQUEST_ERR: property "code" is equal to undefined, expected 3
at Test.<anonymous> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/css-transition-cross-document.html:43:7)
/dom/nodes/moveBefore/tentative/css-transition-to-disconnected-document.html
FAIL Moving an element with a transition to a disconnected document should reset the transitionm state - assert_throws_dom: function "() => {
doc.body.moveBefore(item, null);
}" threw object "TypeError: doc.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> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/css-transition-to-disconnected-document.html:41:7)
/dom/nodes/moveBefore/tentative/relevant-mutations.html
FAIL Moving <source> out of <picture> triggers a relevant mutation on sibling <img> - promise_test: Unhandled rejection with value: object "TypeError: document.body.moveBefore is not a function"
Error
at get_stack (http://web-platform.test:8000/resources/testharness.js:4551:21)
at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4544:22)
at assert (http://web-platform.test:8000/resources/testharness.js:4528:19)
at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at http://web-platform.test:8000/resources/testharness.js:2669:35
FAIL Moving <img> into a <picture> triggers a relevant mutation on the <img>, loading <source> - promise_test: Unhandled rejection with value: object "TypeError: picture.moveBefore is not a function"
Error
at get_stack (http://web-platform.test:8000/resources/testharness.js:4551:21)
at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4544:22)
at assert (http://web-platform.test:8000/resources/testharness.js:4528:19)
at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at http://web-platform.test:8000/resources/testharness.js:2669:35
/dom/nodes/moveBefore/tentative/throws-exception.html
FAIL moveBefore() on a cross-document target node - assert_throws_dom: moveBefore on a cross-document target node throws an exception 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> (http://web-platform.test:8000/dom/nodes/moveBefore/tentative/throws-exception.html:16:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/dom/nodes/moveBefore/tentative/throws-exception.html:10:1
0:27.14 INFO Got 5 unexpected results, with 0 unexpected passes
0:27.14 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
0:27.16 wptserve INFO Stopped http server on 127.0.0.1:8002
0:27.17 wptserve INFO Stopped http server on 127.0.0.1:8445
0:27.17 wptserve INFO Stopped http server on 127.0.0.1:8001
0:27.17 wptserve INFO Stopped http server on 127.0.0.1:8444
0:27.17 wptserve INFO Stopped http server on 127.0.0.1:8443
0:27.17 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
0:27.17 wptserve INFO Stopped http server on 127.0.0.1:9000
0:27.17 wptserve INFO Stopped http server on 127.0.0.1:8003
0:27.17 wptserve INFO Stopped http server on 127.0.0.1:8446
0:27.17 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
0:27.43 wptserve INFO Stopped http server on 127.0.0.1:8000
0:27.46 INFO Removed font: Ahem.ttf
0:27.48 INFO Closing logging queue
0:27.48 INFO queue closed
0:27.48 INFO Tolerating 5 unexpected results
[taskcluster 2024-10-16 11:52:02.271Z] === Task Finished ===
[taskcluster 2024-10-16 11:52:02.949Z] Successful task run with exit code: 0 completed in 101.986 seconds