summaryrefslogtreecommitdiff
path: root/test/js/navigator-enumerate.html
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/navigator-enumerate.html
parent9ebdc7dd7abb7537f9e47a5dd8dab8585696da0b (diff)
downloadnetsurf-fbc3f36fb5a72c2cc399d5e83291ffabc299017e.tar.gz
netsurf-fbc3f36fb5a72c2cc399d5e83291ffabc299017e.tar.bz2
initial js navigator binding
Diffstat (limited to 'test/js/navigator-enumerate.html')
-rw-r--r--test/js/navigator-enumerate.html26
1 files changed, 26 insertions, 0 deletions
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>