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

Side by Side Diff: ManualTests/modal-dialog-blur.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
« no previous file with comments | « ManualTests/modal-dialog-arguments.html ('k') | ManualTests/show-modal-dialog-test.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head><title>
4 Tests blur/focus events with modal dialogs
5 </title></head>
6 <script>
7 var failed = "";
8 function failBlur() {
9 failed = "blur";
10 }
11 function failFocus() {
12 failed = "focus";
13 }
14
15 var inputElement;
16
17 function test() {
18 inputElement = document.getElementById("i")
19 inputElement.focus();
20 inputElement.addEventListener("blur", failBlur, false);
21 inputElement.addEventListener("focus", failFocus, false);
22 window.showModalDialog("modal-dialog-blur-selfclose.html");
23 if (failed) {
24 document.getElementById("status").innerHTML = "FAIL, " + failed;
25 } else {
26 document.getElementById("status").innerHTML = "SUCCESS";
27 }
28 }
29 </script>
30 <body onload="test()">
31 <input id="i"></input>
32 <div id="status">RUNNING...</div>
33 </body>
34 </html>
OLDNEW
« no previous file with comments | « ManualTests/modal-dialog-arguments.html ('k') | ManualTests/show-modal-dialog-test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698