Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.606 kb
<p>JS timers should be paused while a modal dialog (or alert) is displayed.</p>
<p>Please disable popup blocker for this test.</p>
function f()
var d = document.getElementsByTagName("div")[0];
d.innerHTML = parseInt(d.innerHTML) + 1;
var timerId = setInterval(f, 100);
alert("Numbers in main window should not increase while this alert is displayed");
showModalDialog("data:text/html,<p>Numbers in main window should not increase while this modal dialog is displayed</p>");
document.getElementsByTagName("div")[0].innerHTML = "DONE";
Jump to Line
Something went wrong with that request. Please try again.