summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/nodes/Node-appendChild.html
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-02-04 19:41:06 +0000
committerMoonchild <moonchild@palemoon.org>2021-02-04 19:41:06 +0000
commit914368530ba622ff0117cd34bec058fb0d862155 (patch)
tree6c29459914d1b01ed27fad039d0b982d1dbc32c3 /testing/web-platform/tests/dom/nodes/Node-appendChild.html
parentc5ad76a2875ca5c06c5bbff7b2f2e3ff7b3599c3 (diff)
downloadUXP-914368530ba622ff0117cd34bec058fb0d862155.tar
UXP-914368530ba622ff0117cd34bec058fb0d862155.tar.gz
UXP-914368530ba622ff0117cd34bec058fb0d862155.tar.lz
UXP-914368530ba622ff0117cd34bec058fb0d862155.tar.xz
UXP-914368530ba622ff0117cd34bec058fb0d862155.zip
Issue #439 - Remove web-platform tests from the tree.
This removes a total of 23,936 files we would never use nor have the capacity to properly maintain or keep up-to-date.
Diffstat (limited to 'testing/web-platform/tests/dom/nodes/Node-appendChild.html')
-rw-r--r--testing/web-platform/tests/dom/nodes/Node-appendChild.html59
1 files changed, 0 insertions, 59 deletions
diff --git a/testing/web-platform/tests/dom/nodes/Node-appendChild.html b/testing/web-platform/tests/dom/nodes/Node-appendChild.html
deleted file mode 100644
index 684607961..000000000
--- a/testing/web-platform/tests/dom/nodes/Node-appendChild.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>Node.appendChild</title>
-<link rel=help href="https://dom.spec.whatwg.org/#dom-node-appendchild">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<div id="log"></div>
-<iframe src=about:blank></iframe>
-<script>
-// TODO: Exhaustive tests
-function testLeaf(node, desc) {
- // WebIDL.
- test(function() {
- assert_throws(new TypeError(), function() { node.appendChild(null) })
- }, "Appending null to a " + desc)
-
- // Pre-insert step 1.
- test(function() {
- assert_throws("HIERARCHY_REQUEST_ERR", function() { node.appendChild(document.createTextNode("fail")) })
- }, "Appending to a " + desc)
-}
-
-// WebIDL.
-test(function() {
- assert_throws(new TypeError(), function() { document.body.appendChild(null) })
- assert_throws(new TypeError(), function() { document.body.appendChild({'a':'b'}) })
-}, "WebIDL tests")
-
-// WebIDL and pre-insert step 1.
-test(function() {
- testLeaf(document.createTextNode("Foo"), "text node")
- testLeaf(document.createComment("Foo"), "comment")
- testLeaf(document.doctype, "doctype")
-}, "Appending to a leaf node.")
-
-// Pre-insert step 5.
-test(function() {
- var frameDoc = frames[0].document
- assert_throws("HIERARCHY_REQUEST_ERR", function() { document.body.appendChild(frameDoc) })
-}, "Appending a document")
-
-// Pre-insert step 8.
-test(function() {
- var frameDoc = frames[0].document
- var s = frameDoc.createElement("a")
- assert_equals(s.ownerDocument, frameDoc)
- document.body.appendChild(s)
- assert_equals(s.ownerDocument, document)
-}, "Adopting an orphan")
-test(function() {
- var frameDoc = frames[0].document
- var s = frameDoc.createElement("b")
- assert_equals(s.ownerDocument, frameDoc)
- frameDoc.body.appendChild(s)
- assert_equals(s.ownerDocument, frameDoc)
- document.body.appendChild(s)
- assert_equals(s.ownerDocument, document)
-}, "Adopting a non-orphan")
-</script>