Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Side by Side Diff: ManualTests/js-timers-beneath-modal-dialog.html

Issue 174073007: Remove deprecated window.showModalDialog() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <p>JS timers should be paused while a modal dialog (or alert) is displayed.</p> 1 <p>JS timers should be paused while an alert is displayed.</p>
2 <p>Please disable popup blocker for this test.</p>
3 <div>0</div> 2 <div>0</div>
4 <script> 3 <script>
5 function f() 4 function f()
6 { 5 {
7 var d = document.getElementsByTagName("div")[0]; 6 var d = document.getElementsByTagName("div")[0];
8 d.innerHTML = parseInt(d.innerHTML) + 1; 7 d.innerHTML = parseInt(d.innerHTML) + 1;
9 } 8 }
10 9
11 var timerId = setInterval(f, 100); 10 var timerId = setInterval(f, 100);
12 11
13 alert("Numbers in main window should not increase while this alert is displayed" ); 12 alert("Numbers in main window should not increase while this alert is displayed" );
14 showModalDialog("data:text/html,<p>Numbers in main window should not increase wh ile this modal dialog is displayed</p>");
15 document.getElementsByTagName("div")[0].innerHTML = "DONE"; 13 document.getElementsByTagName("div")[0].innerHTML = "DONE";
16 14
17 clearInterval(timerId); 15 clearInterval(timerId);
18 16
19 </script> 17 </script>
OLDNEW
« no previous file with comments | « LayoutTests/platform/win/http/tests/security/README ('k') | ManualTests/modal-dialog-arguments.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698