| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html><head><meta charset=utf-8><title>Page Dismissal Modal Dialogs mainFrame</t
itle><script> | 2 <html><head><meta charset=utf-8><title>Page Dismissal Modal Dialogs mainFrame</t
itle><script> |
| 3 function showMessages(event) { | 3 function showMessages(event) { |
| 4 alert(event + " PASS"); | 4 alert(event + " PASS"); |
| 5 confirm(event + " PASS"); | 5 confirm(event + " PASS"); |
| 6 prompt(event + " PASS", "PASS"); | 6 prompt(event + " PASS", "PASS"); |
| 7 } | 7 } |
| 8 | 8 |
| 9 function handleEvent(event, otherFrame) { | 9 function handleEvent(event, otherFrame) { |
| 10 showMessages(event); | 10 showMessages(event); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 addEventListener("load", function() { | 22 addEventListener("load", function() { |
| 23 registerEvents("mainFrame", window, frames[0]); | 23 registerEvents("mainFrame", window, frames[0]); |
| 24 if (window.layoutTestController) { | 24 if (window.layoutTestController) { |
| 25 layoutTestController.dumpAsText(); | 25 layoutTestController.dumpAsText(); |
| 26 layoutTestController.waitUntilDone(); | 26 layoutTestController.waitUntilDone(); |
| 27 } | 27 } |
| 28 location = "resources/pass-and-notify-done.html"; | 28 location = "resources/pass-and-notify-done.html"; |
| 29 }, false); | 29 }, false); |
| 30 </script></head><body><div> | 30 </script></head><body><div> |
| 31 | 31 |
| 32 <a href=# onclick="showMessages('mainFrame click')" id=anchor>anchor</a> | 32 <span onclick="showMessages('mainFrame click')" id=anchor>anchor</span> |
| 33 <iframe src=resources/page-dismissal-modal-dialogs-iframe.html></iframe> | 33 <iframe src=resources/page-dismissal-modal-dialogs-iframe.html></iframe> |
| 34 | 34 |
| 35 This page registers handlers for various types of unload events and attempts to | 35 This page registers handlers for various types of unload events and attempts to |
| 36 popup modal dialogs through various JavaScript calls in each of them. Also, it | 36 popup modal dialogs through various JavaScript calls in each of them. Also, it |
| 37 does the same thing in an iframe. In addition, it tries to popup dialogs in the | 37 does the same thing in an iframe. In addition, it tries to popup dialogs in the |
| 38 context of one frame when running a handler in the other frame. | 38 context of one frame when running a handler in the other frame. |
| 39 </div></body></html> | 39 </div></body></html> |
| OLD | NEW |