blob: 6f4812c2f5b0aa40eb0cf1f0a7a3d8ad8609d704 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<html>
<head>
<script>
function timeoutHandler() {
// Invoke it a few times so that we get the nesting
count++;
if (count > 10) {
clearInterval(intervalID);
if (window.testRunner)
testRunner.notifyDone();
}
}
var intervalID;
var count = 0;
function runTests() {
if (window.testRunner) {
testRunner.dumpAsText()
testRunner.waitUntilDone();
}
intervalID = setInterval(timeoutHandler, 1);
}
</script>
</head>
<body onload="runTests()">
This tests that removing an interval timer inside of its timeout handler does not cause a crash. Success, didn't crash!
</body>
</html>
|