summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/js/dom-body-enumerate.html27
-rw-r--r--test/js/dom-node-enumerate.html12
-rw-r--r--test/js/index.html5
3 files changed, 37 insertions, 7 deletions
diff --git a/test/js/dom-body-enumerate.html b/test/js/dom-body-enumerate.html
new file mode 100644
index 000000000..3ff10545e
--- /dev/null
+++ b/test/js/dom-body-enumerate.html
@@ -0,0 +1,27 @@
+<html>
+<head>
+<title>Body element interface enumeration</title>
+<link rel="stylesheet" type="text/css" href="tst.css">
+</head>
+<body>
+<h1>Body element interface enumeration</h1>
+
+<script>
+function output(x,y) {
+ document.body.appendChild(document.createTextNode(x));
+ document.body.appendChild(document.createTextNode("("));
+ if (y != undefined) {
+document.body.appendChild(document.createTextNode(y.length));
+}
+ document.body.appendChild(document.createTextNode(") = "));
+ document.body.appendChild(document.createTextNode(y));
+ document.body.appendChild(document.createElement('br'));
+}
+
+
+for(var key in document.body){
+output(key, document.body[key]);
+}
+</script>
+</body>
+</html>
diff --git a/test/js/dom-node-enumerate.html b/test/js/dom-node-enumerate.html
index 261d68020..573e27b4e 100644
--- a/test/js/dom-node-enumerate.html
+++ b/test/js/dom-node-enumerate.html
@@ -9,19 +9,17 @@
<script>
function output(x,y) {
document.body.appendChild(document.createTextNode(x));
- document.body.appendChild(document.createTextNode(" = "));
+ document.body.appendChild(document.createTextNode("("));
+ if (y != undefined) {
+document.body.appendChild(document.createTextNode(y.length));
+}
+ document.body.appendChild(document.createTextNode(") = "));
document.body.appendChild(document.createTextNode(y));
document.body.appendChild(document.createElement('br'));
}
for(var key in Node){
output(key, Node[key]);
}
-
- document.body.appendChild(document.createElement('hr'));
-
-for(var key in document.body){
-output(key, document.body[key]);
-}
</script>
</body>
</html>
diff --git a/test/js/index.html b/test/js/index.html
index e94e8e8bb..f02c4df32 100644
--- a/test/js/index.html
+++ b/test/js/index.html
@@ -29,6 +29,11 @@
<li><a href="dom-getElementsByTagName.html">getElementsByTagName</a></li>
</ul>
+<h3>Enumeration tests</h3>
+<ul>
+<li><a href="dom-node-enumerate.html">Node element interface</a></li>
+<li><a href="dom-body-enumerate.html">Body element interface</a></li>
+</ul>
<h3>Document element specific</h3>
<ul>
<li><a href="dom-doc-cookie.html">Cookie dispaly (only from server)</a></li>