1<p>JS timers should be paused while a modal dialog (or alert) is displayed.</p>
2<p>Please disable popup blocker for this test.</p>
3<div>0</div>
4<script>
5function f()
6{
7    var d = document.getElementsByTagName("div")[0];
8    d.innerHTML = parseInt(d.innerHTML) + 1;
9}
10
11var timerId = setInterval(f, 100);
12
13alert("Numbers in main window should not increase while this alert is displayed");
14showModalDialog("data:text/html,<p>Numbers in main window should not increase while this modal dialog is displayed</p>");
15document.getElementsByTagName("div")[0].innerHTML = "DONE";
16
17clearInterval(timerId);
18
19</script>
20