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/assorted.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/assorted.html')
-rw-r--r-- | test/js/assorted.html | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/test/js/assorted.html b/test/js/assorted.html deleted file mode 100644 index bb3d477bc..000000000 --- a/test/js/assorted.html +++ /dev/null @@ -1,34 +0,0 @@ -<html> -<head><title>moo</title></head> -<body> -<script> -var tree = (this ===window) -console.log(tree); -var string = "50"; - -console.log(string + 100); // 50100 -console.log(+string + 100); // 150 - -string = parseInt(string, 10); -console.log(string + 100); // 150 -var binary = parseInt("110010", 2); -console.log(binary); // 50 - -function doSomething(param) { - param = param.toUpperCase(); // param is now a local variable - console.log(param); -} -var string = "test"; - -/* note that string will be passed in by reference */ -doSomething(string); // TEST -console.log(string); // test - -document.write("<p>Hello World!<p>"); -</script> -<p>one</p> -<script>document.write("<scr" +"ipt>document.write(\"Goodbye Cruel World\");</scri" + "pt>");</script> -</script> -<p>hi</p> -</body> -</html> |