• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<script>
2function foo() {
3    var timeout = setTimeout(function() { alert("This should not happen. If you do see this alert, then timers on the page are firing while paused!") }, 0);
4    debugger;
5    clearTimeout(timeout);
6}
7
8setTimeout(foo, 100);
9</script>
10<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=20042">Bug 20042: UI frozen when the debugger is paused</a>.</p>
11<p>Open the inspector and start debugging in the Scripts panel. While paused, try to open the Console. The Console should animate open fully.</p>
12