diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/js/index.html | 2 | ||||
-rw-r--r-- | test/js/inline-innerhtml.html | 15 | ||||
-rw-r--r-- | test/js/sync-script-css.html | 2 | ||||
-rw-r--r-- | test/js/sync-script-err.html | 12 |
4 files changed, 30 insertions, 1 deletions
diff --git a/test/js/index.html b/test/js/index.html index f7ce2f37a..6bb010c3b 100644 --- a/test/js/index.html +++ b/test/js/index.html @@ -10,7 +10,9 @@ <li><a href="inline-doc-write-simple.html">Simple docuemnt write</a></li> <li><a href="inline-doc-write.html">Script within inline script</a></li> <li><a href="sync-script.html">External syncronous script</a></li> +<li><a href="sync-script-err.html">External syncronous script with missing js file</a></li> <li><a href="sync-script-css.html">External syncronous script (with css)</a></li> +<li><a href="inline-innerhtml.html">Inline script innerHtml test</a></li> </ul> diff --git a/test/js/inline-innerhtml.html b/test/js/inline-innerhtml.html new file mode 100644 index 000000000..6bfd6608b --- /dev/null +++ b/test/js/inline-innerhtml.html @@ -0,0 +1,15 @@ +<html> +<head> +<title>Inline Script innerHTML Test</title> +<link rel="stylesheet" type="text/css" href="tst.css"> +</head> +<body> +<h1>Inline Script innerHTML Test</h1> +<p>Before</p> +<p id="demo">some text you should never see</p> +<script type="text/javascript"> +document.getElementById("demo").innerHTML="text inserted by script"; +</script> +<p>Afterwards</p> +</body> +</html> diff --git a/test/js/sync-script-css.html b/test/js/sync-script-css.html index 55840f297..ecba5be0f 100644 --- a/test/js/sync-script-css.html +++ b/test/js/sync-script-css.html @@ -4,7 +4,7 @@ <link rel="stylesheet" type="text/css" href="tst.css"> </head> <body> -<h1>Sync script Test (css0</h1> +<h1>Sync script Test (css)</h1> <p>Before</p> <script src="tst.js"></script> <p>Afterwards</p> diff --git a/test/js/sync-script-err.html b/test/js/sync-script-err.html new file mode 100644 index 000000000..68e77baea --- /dev/null +++ b/test/js/sync-script-err.html @@ -0,0 +1,12 @@ +<html> +<head> +<title>Sync script Test with bad src</title> +</head> +<body> +<h1>Sync script Test with bad src</h1> +<p>Before</p> +<script src="notthere.js"></script> +<script src="tst.js"></script> +<p>Afterwards</p> +</body> +</html> |