mirror of
https://github.com/servo/servo.git
synced 2025-10-04 10:39:16 +01:00
parent
7ffcc29d54
commit
62d402f668
34 changed files with 529 additions and 513 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue