summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/nodes/rootNode.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/rootNode.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/rootNode.html')
-rw-r--r--testing/web-platform/tests/dom/nodes/rootNode.html82
1 files changed, 0 insertions, 82 deletions
diff --git a/testing/web-platform/tests/dom/nodes/rootNode.html b/testing/web-platform/tests/dom/nodes/rootNode.html
deleted file mode 100644
index 66343e7e2..000000000
--- a/testing/web-platform/tests/dom/nodes/rootNode.html
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset=utf-8>
-<title>Node.prototype.getRootNode()</title>
-<link rel="help" href="https://dom.spec.whatwg.org/#dom-node-getrootnode">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-</head>
-<body>
-<script>
-
-test(function () {
- var element = document.createElement('div');
- assert_equals(element.getRootNode(), element, 'getRootNode() on an element without a parent must return the element itself');
-
- var text = document.createTextNode('');
- assert_equals(text.getRootNode(), text, 'getRootNode() on a text node without a parent must return the text node itself');
-
- var processingInstruction = document.createProcessingInstruction('target', 'data');
- assert_equals(processingInstruction.getRootNode(), processingInstruction, 'getRootNode() on a processing instruction node without a parent must return the processing instruction node itself');
-
- assert_equals(document.getRootNode(), document, 'getRootNode() on a document node must return the document itself');
-
-}, 'getRootNode() must return the context object when it does not have any parent');
-
-test(function () {
- var parent = document.createElement('div');
-
- var element = document.createElement('div');
- parent.appendChild(element);
- assert_equals(element.getRootNode(), parent, 'getRootNode() on an element with a single ancestor must return the parent node');
-
- var text = document.createTextNode('');
- parent.appendChild(text);
- assert_equals(text.getRootNode(), parent, 'getRootNode() on a text node with a single ancestor must return the parent node');
-
- var processingInstruction = document.createProcessingInstruction('target', 'data');
- parent.appendChild(processingInstruction)
- assert_equals(processingInstruction.getRootNode(), parent, 'getRootNode() on a processing instruction node with a single ancestor must return the parent node');
-
-}, 'getRootNode() must return the parent node of the context object when the context object has a single ancestor not in a document');
-
-test(function () {
- var parent = document.createElement('div');
- document.body.appendChild(parent);
-
- var element = document.createElement('div');
- parent.appendChild(element);
- assert_equals(element.getRootNode(), document, 'getRootNode() on an element inside a document must return the document');
-
- var text = document.createTextNode('');
- parent.appendChild(text);
- assert_equals(text.getRootNode(), document, 'getRootNode() on a text node inside a document must return the document');
-
- var processingInstruction = document.createProcessingInstruction('target', 'data');
- parent.appendChild(processingInstruction)
- assert_equals(processingInstruction.getRootNode(), document, 'getRootNode() on a processing instruction node inside a document must return the document');
-}, 'getRootNode() must return the document when a node is in document');
-
-test(function () {
- var fragment = document.createDocumentFragment();
- var parent = document.createElement('div');
- fragment.appendChild(parent);
-
- var element = document.createElement('div');
- parent.appendChild(element);
- assert_equals(element.getRootNode(), fragment, 'getRootNode() on an element inside a document fragment must return the fragment');
-
- var text = document.createTextNode('');
- parent.appendChild(text);
- assert_equals(text.getRootNode(), fragment, 'getRootNode() on a text node inside a document fragment must return the fragment');
-
- var processingInstruction = document.createProcessingInstruction('target', 'data');
- parent.appendChild(processingInstruction)
- assert_equals(processingInstruction.getRootNode(), fragment,
- 'getRootNode() on a processing instruction node inside a document fragment must return the fragment');
-}, 'getRootNode() must return a document fragment when a node is in the fragment');
-
-</script>
-</body>
-</html>