summaryrefslogtreecommitdiff
path: root/test/js/location-enumerate.html
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-11-21 18:51:44 +0000
committerVincent Sanders <vince@netsurf-browser.org>2012-11-21 18:51:44 +0000
commitc2cd36fda86b9bdfbb36cc340e35cfbc6609fd32 (patch)
treebee67eb54a0560bef43ea640253dcabbdd226665 /test/js/location-enumerate.html
parenta159a4a79b1facc77ae41983e9f96f8117f07f21 (diff)
downloadnetsurf-c2cd36fda86b9bdfbb36cc340e35cfbc6609fd32.tar.gz
netsurf-c2cd36fda86b9bdfbb36cc340e35cfbc6609fd32.tar.bz2
improve location interface implementation
Diffstat (limited to 'test/js/location-enumerate.html')
-rw-r--r--test/js/location-enumerate.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/js/location-enumerate.html b/test/js/location-enumerate.html
new file mode 100644
index 000000000..d455c7535
--- /dev/null
+++ b/test/js/location-enumerate.html
@@ -0,0 +1,26 @@
+<html>
+<head>
+<title>location interface enumeration</title>
+<link rel="stylesheet" type="text/css" href="tst.css">
+</head>
+<body>
+<h1>location 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 location) {
+ output(key, location[key]);
+}
+</script>
+</body>
+</html>