Closed Bug 1625889 Opened 10 months ago Closed 9 months ago

[wpt-sync] Sync PR 22524 - Add tests for ParentNode#replaceChildren

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 22524 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/22524
Details from upstream follow.

Kagami Sascha Rosylight <saschanaz@outlook.com> wrote:

Add tests for ParentNode#replaceChildren

Relates to https://github.com/whatwg/dom/issues/478 and https://github.com/whatwg/dom/pull/851.

Closes #21810

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 52 tests

Status Summary

Firefox

OK : 5
PASS: 113[GitHub] 160[Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-linux1804-64-asan-opt, Gecko-linux1804-64-debug, Gecko-linux1804-64-opt, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-64-debug, Gecko-windows10-64-opt, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt, Gecko-windows7-32-debug, Gecko-windows7-32-opt]
FAIL: 25

Chrome

OK : 5
PASS: 113
FAIL: 25

Safari

OK : 5
PASS: 113
FAIL: 25

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/dom/nodes/ParentNode-replaceChildren.html
DocumentFragment.replaceChildren() with null as an argument, on a parent having a child.: FAIL (Chrome: FAIL, Safari: FAIL)
DocumentFragment.replaceChildren() with only text as an argument, on a parent having no child.: FAIL (Chrome: FAIL, Safari: FAIL)
Element.replaceChildren() with null as an argument, on a parent having no child.: FAIL (Chrome: FAIL, Safari: FAIL)
Element.replaceChildren() without any argument, on a parent having no child.: FAIL (Chrome: FAIL, Safari: FAIL)
If node is a host-including inclusive ancestor of parent, then throw a HierarchyRequestError DOMException.: FAIL (Chrome: FAIL, Safari: FAIL)
If node is an Element and parent is a document with another element, then throw a HierarchyRequestError DOMException.: FAIL (Chrome: FAIL, Safari: FAIL)
DocumentFragment.replaceChildren() with null as an argument, on a parent having no child.: FAIL (Chrome: FAIL, Safari: FAIL)
DocumentFragment.replaceChildren() with one element and text as argument, on a parent having a child.: FAIL (Chrome: FAIL, Safari: FAIL)
Element.replaceChildren() with null as an argument, on a parent having a child.: FAIL (Chrome: FAIL, Safari: FAIL)
DocumentFragment.replaceChildren() with only one element as an argument, on a parent having no child.: FAIL (Chrome: FAIL, Safari: FAIL)
Element.replaceChildren() should move nodes in the right order: FAIL (Chrome: FAIL, Safari: FAIL)
If node is a Text node and parent is a document, then throw a HierarchyRequestError DOMException.: FAIL (Chrome: FAIL, Safari: FAIL)
If node is a DocumentFragment with an element and parent is a document with another element, then throw a HierarchyRequestError DOMException.: FAIL (Chrome: FAIL, Safari: FAIL)
DocumentFragment.replaceChildren() with undefined as an argument, on a parent having no child.: FAIL (Chrome: FAIL, Safari: FAIL)
If node is a doctype and parent is not a document, then throw a HierarchyRequestError DOMException.: FAIL (Chrome: FAIL, Safari: FAIL)
If node is a doctype and parent is a document with another doctype, then throw a HierarchyRequestError DOMException.: FAIL (Chrome: FAIL, Safari: FAIL)
If node is a DocumentFragment with multiple elements and parent is a document, then throw a HierarchyRequestError DOMException.: FAIL (Chrome: FAIL, Safari: FAIL)
Element.replaceChildren() with undefined as an argument, on a parent having no child.: FAIL (Chrome: FAIL, Safari: FAIL)
Element.replaceChildren() with only one element as an argument, on a parent having no child.: FAIL (Chrome: FAIL, Safari: FAIL)
Element.replaceChildren() with one element and text as argument, on a parent having a child.: FAIL (Chrome: FAIL, Safari: FAIL)
DocumentFragment.replaceChildren() should move nodes in the right order: FAIL (Chrome: FAIL, Safari: FAIL)
If node is a doctype and parent is a document with an element, then throw a HierarchyRequestError DOMException.: FAIL (Chrome: FAIL, Safari: FAIL)
Element.replaceChildren() with only text as an argument, on a parent having no child.: FAIL (Chrome: FAIL, Safari: FAIL)
DocumentFragment.replaceChildren() without any argument, on a parent having no child.: FAIL (Chrome: FAIL, Safari: FAIL)
If node is not a DocumentFragment, DocumentType, Element, Text, ProcessingInstruction, or Comment node, then throw a HierarchyRequestError DOMException.: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/34a457166b9b
[wpt PR 22524] - Add tests for ParentNode#replaceChildren, a=testonly
https://hg.mozilla.org/integration/autoland/rev/94234649707e
[wpt PR 22524] - Update wpt metadata, a=testonly
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/autoland/rev/0075eb6f1add
[wpt PR 22524] - Add tests for ParentNode#replaceChildren, a=testonly
https://hg.mozilla.org/integration/autoland/rev/a48830a4a7ec
[wpt PR 22524] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.