Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / remove-timeout-crash.html
blob90b4cd013894ac9bd4fe6aa3c88a477d55ff7de4
1 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=23007">bug 23007</a>:
2 Timer-related crash when closing Web Inspector.</p>
3 <p>PASS if no crash.</p>
4 <script>
5 if (window.testRunner) {
6 testRunner.waitUntilDone();
7 testRunner.dumpAsText();
10 var timeoutID;
11 function test()
13 clearTimeout(timeoutID);
14 if (window.testRunner)
15 setTimeout(function() { testRunner.notifyDone() }, 0);
18 timeoutID = setTimeout(test, 0);
19 </script>