summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-11-03 18:28:48 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-11-03 18:28:48 +0000
commit6648ba39ade5ed8c1a5ceccab82eed567478c950 (patch)
tree6656dc55f3af76a918185e7a9625257a27abdac6 /test
parente7431898abbcb4cc49cfbe35fe457df78afa5f0a (diff)
parent85c973f98648465ab065317f8e7db6153d093984 (diff)
downloadnetsurf-6648ba39ade5ed8c1a5ceccab82eed567478c950.tar.gz
netsurf-6648ba39ade5ed8c1a5ceccab82eed567478c950.tar.bz2
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
Diffstat (limited to 'test')
-rw-r--r--test/js/dom-location.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/js/dom-location.html b/test/js/dom-location.html
new file mode 100644
index 000000000..bbd78d80b
--- /dev/null
+++ b/test/js/dom-location.html
@@ -0,0 +1,13 @@
+<html>
+<head>
+<title>Assign window.lately</title>
+<link rel="stylesheet" type="text/css" href="tst.css">
+</head>
+<body>
+<h1>Assign window.lately</h1>
+<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>
+</body>
+</html>