Move test JS into HTML files

Fixes #896.
This commit is contained in:
Keegan McAllister 2013-09-19 13:57:20 -07:00
parent 7ffcc29d54
commit 62d402f668
34 changed files with 529 additions and 513 deletions

View file

@ -1 +1,13 @@
<div></div><script src="test_timeout.js"></script>
<div></div><script>
function foo(i) {
window.alert("timeout " + i);
if (i == 10)
window.alert("timeouts finished");
else
window.setTimeout(function() { foo(i + 1); }, 1000);
}
window.alert("beginning timeouts");
window.setTimeout(function() { foo(0); }, 1000);
window.alert("timeouts begun");
</script>