summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/js/dom-node-parentNode.html23
-rw-r--r--test/js/index.html1
2 files changed, 24 insertions, 0 deletions
diff --git a/test/js/dom-node-parentNode.html b/test/js/dom-node-parentNode.html
new file mode 100644
index 000000000..927a3701b
--- /dev/null
+++ b/test/js/dom-node-parentNode.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head><title>DOM Node::nodeType</title></head>
+<body>
+<h1>Node::ParentNode</h1>
+<h2>These should all resolve to nodes of some kind.</h2>
+<script>
+document.write("<p>document is: ",
+ document, "</p>");
+document.write("<p>document.body is: ",
+ document.body, "</p>");
+document.write("<p>document.body.parentNode: ",
+ document.body.parentNode, "</p>");
+</script>
+<h2>These should all resolve to null.</h2>
+<script>
+document.write("<p>document.parentNode is: ",
+ document.parentNode, "</p>");
+document.write("<p>document.createElement('foo').parentNode is: ",
+ document.createElement('foo').parentNode, "</p>");
+</script>
+</body>
+</html>
diff --git a/test/js/index.html b/test/js/index.html
index 8602a8159..c12f32360 100644
--- a/test/js/index.html
+++ b/test/js/index.html
@@ -66,6 +66,7 @@
<h3>DOM node tests</h3>
<ul>
<li><a href="dom-node-nodetype.html">Node::nodeType support</a></li>
+<li><a href="dom-node-parentNode.html">Node::parentNode support</a></li>
</ul>
<h3>Document element specific</h3>