summaryrefslogtreecommitdiff
path: root/test/js
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-10-05 15:46:22 +0100
committerVincent Sanders <vince@kyllikki.org>2015-10-05 15:46:22 +0100
commitfbc3f36fb5a72c2cc399d5e83291ffabc299017e (patch)
tree3fc9807e1a07b5a46ede9fb6af7d1b5002619583 /test/js
parent9ebdc7dd7abb7537f9e47a5dd8dab8585696da0b (diff)
downloadnetsurf-fbc3f36fb5a72c2cc399d5e83291ffabc299017e.tar.gz
netsurf-fbc3f36fb5a72c2cc399d5e83291ffabc299017e.tar.bz2
initial js navigator binding
Diffstat (limited to 'test/js')
-rw-r--r--test/js/index.html6
-rw-r--r--test/js/navigator-enumerate.html26
2 files changed, 32 insertions, 0 deletions
diff --git a/test/js/index.html b/test/js/index.html
index 38a59a6be..8602a8159 100644
--- a/test/js/index.html
+++ b/test/js/index.html
@@ -35,6 +35,12 @@
<li><a href="location-assign.html">assign</a> should navigate to enumeration with page in history</li>
<li><a href="location-replace.html">replace</a> should navigate to enumeration without page in history.</li>
<li><a href="location-href.html">href</a> should navigate to enumeration with page in history</li>
+<li><a href="location-putforwards.html">href</a> should navigate to enumeration using putforwards on location</li>
+</ul>
+
+<h2>Navigator</h2>
+<ul>
+<li><a href="navigator-enumerate.html">Enumerate members</a></li>
</ul>
diff --git a/test/js/navigator-enumerate.html b/test/js/navigator-enumerate.html
new file mode 100644
index 000000000..d3203ac16
--- /dev/null
+++ b/test/js/navigator-enumerate.html
@@ -0,0 +1,26 @@
+<html>
+<head>
+<title>navigator interface enumeration</title>
+<link rel="stylesheet" type="text/css" href="tst.css">
+</head>
+<body>
+<h1>navigator 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 navigator) {
+ output(key, navigator[key]);
+}
+</script>
+</body>
+</html>