servo/tests/html/test_timeout.html
2014-09-08 20:21:42 -06:00

13 lines
318 B
HTML

<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>