diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-09 18:03:02 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-09 18:03:02 +0000 |
commit | 2810fe764d0074c5e32a889aabdae96ffd282978 (patch) | |
tree | 403900a5b608395664428db612dcfdc8bdf407c3 /test/js/window.lately.html | |
parent | 413248d0fc33d3615db618628e79837f22a6bb6e (diff) | |
download | netsurf-2810fe764d0074c5e32a889aabdae96ffd282978.tar.gz netsurf-2810fe764d0074c5e32a889aabdae96ffd282978.tar.bz2 |
make javascript tests acessible from index and tidy them up a little
Diffstat (limited to 'test/js/window.lately.html')
-rw-r--r-- | test/js/window.lately.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/js/window.lately.html b/test/js/window.lately.html new file mode 100644 index 000000000..ba312dfe0 --- /dev/null +++ b/test/js/window.lately.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> |