summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/js/assorted-log-doc-write.html (renamed from test/js/assorted.html)0
-rw-r--r--test/js/doc-dom1.html11
-rw-r--r--test/js/dom-doc-location.html10
-rw-r--r--test/js/index.html29
-rw-r--r--test/js/window.lately.html (renamed from test/js/dom-location.html)2
5 files changed, 36 insertions, 16 deletions
diff --git a/test/js/assorted.html b/test/js/assorted-log-doc-write.html
index bb3d477bc..bb3d477bc 100644
--- a/test/js/assorted.html
+++ b/test/js/assorted-log-doc-write.html
diff --git a/test/js/doc-dom1.html b/test/js/doc-dom1.html
index b7743f4c2..2d7762d00 100644
--- a/test/js/doc-dom1.html
+++ b/test/js/doc-dom1.html
@@ -1,14 +1,11 @@
<html>
<head>
-<title>Direct DOM element reference</title>
+<title>DOM firstElementChild reference</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body>
-<h1>Direct DOM element reference</h1>
-<p>head</p>
-<script>document.write(document.head.firstElementChild.textContent);</script>
-<p>body</p>
-<script>document.write(document.body.firstElementChild.textContent);</script>
-<p>after</p>
+<h1>DOM firstElementChild reference</h1>
+<p><b>head.firstElementChild:</b> <script>document.write(document.head.firstElementChild.textContent);</script></p>
+<p><b>body.firstElementChild:</b> <script>document.write(document.body.firstElementChild.textContent);</script></p>
</body>
</html>
diff --git a/test/js/dom-doc-location.html b/test/js/dom-doc-location.html
new file mode 100644
index 000000000..a41c53c31
--- /dev/null
+++ b/test/js/dom-doc-location.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<title>Document Location</title>
+<link rel="stylesheet" type="text/css" href="tst.css">
+</head>
+<body>
+<h1>Document Location</h1>
+<p><b>document.location.href:</b> <script>document.write(document.location.href);</script></p>
+</body>
+</html>
diff --git a/test/js/index.html b/test/js/index.html
index 9df56d0c8..e94e8e8bb 100644
--- a/test/js/index.html
+++ b/test/js/index.html
@@ -1,14 +1,16 @@
<html>
<head>
-<title>Script Tests</title>
+<title>JavaScript Tests</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body>
-<h1>Script Tests</h1>
+<h1>JavaScript Tests</h1>
+<h2>Window</h2>
<ul>
-<li><a href="assorted.html">Assorted</a></li>
+<li><a href="window.lately.html">location</a></li>
</ul>
-<h2>Document write tests</h2>
+
+<h2>Document write</h2>
<ul>
<li><a href="inline-doc-write-simple.html">Simple document write</a></li>
<li><a href="noscript-inline-doc-write.html">Script within inline script document write with noscript alternative</a></li>
@@ -18,13 +20,24 @@
<li><a href="sync-script-css.html">External syncronous script (with css)</a></li>
<li><a href="inline-innerhtml.html">Inline script innerHtml test</a></li>
</ul>
-<h2>Document write tests</h2>
+
+<h2>DOM tests</h2>
+<h3>Reference method tests</h3>
<ul>
-<li><a href="doc-dom1.html">Direct reference</a></li>
-<li><a href="doc-dom2.html">getElementById reference</a></li>
+<li><a href="doc-dom1.html">firstElementChild</a></li>
+<li><a href="doc-dom2.html">getElementById</a></li>
+<li><a href="dom-getElementsByTagName.html">getElementsByTagName</a></li>
+
</ul>
-<h2>Assorted</a>
+<h3>Document element specific</h3>
<ul>
+<li><a href="dom-doc-cookie.html">Cookie dispaly (only from server)</a></li>
+<li><a href="dom-doc-location.html">location</a></li>
+</ul>
+<h2>Assorted</h2>
+<ul>
+<li><a href="assorted-log-doc-write.html">console.log and document.write</a></li>
+
<li><a href="wikipedia-lcm.html">Example from wikipedia</a></li>
</ul>
</body>
diff --git a/test/js/dom-location.html b/test/js/window.lately.html
index bbd78d80b..ba312dfe0 100644
--- a/test/js/dom-location.html
+++ b/test/js/window.lately.html
@@ -8,6 +8,6 @@
<p>location: <script>document.write(location);</script>
<p>location.protocol: <script>document.write(location.protocol);</script>
<p>equivalence <script>document.write(location.protocol === 'http:');</script>
-<p>assignement<script>window.lately = (location.protocol === 'http:');</script>
+<p>assignement <script>window.lately = (location.protocol === 'http:');</script>
</body>
</html>