summaryrefslogtreecommitdiff
path: root/test/js/window-enumerate.html
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-11-19 17:26:23 +0000
committerVincent Sanders <vince@netsurf-browser.org>2012-11-19 17:26:23 +0000
commit7757008433c414974c527c4745e64aa5976d606a (patch)
tree0b227136a8c9ebd06a6bf30847ef1a811d0b04ee /test/js/window-enumerate.html
parentbb6b546b4be757cd515253cd10eccadf78e9afb6 (diff)
downloadnetsurf-7757008433c414974c527c4745e64aa5976d606a.tar.gz
netsurf-7757008433c414974c527c4745e64aa5976d606a.tar.bz2
add window enumeration test
Diffstat (limited to 'test/js/window-enumerate.html')
-rw-r--r--test/js/window-enumerate.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/js/window-enumerate.html b/test/js/window-enumerate.html
new file mode 100644
index 000000000..92a3111ae
--- /dev/null
+++ b/test/js/window-enumerate.html
@@ -0,0 +1,26 @@
+<html>
+<head>
+<title>window interface enumeration</title>
+<link rel="stylesheet" type="text/css" href="tst.css">
+</head>
+<body>
+<h1>window 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 window) {
+ output(key, window[key]);
+}
+</script>
+</body>
+</html>