OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 | 4 |
5 if (window.testRunner) { | 5 if (window.testRunner) { |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 testRunner.setCanOpenWindows(); | 7 testRunner.setCanOpenWindows(); |
8 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
9 } | 9 } |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 </script> | 37 </script> |
38 </head> | 38 </head> |
39 <body onload="runTest()"> | 39 <body onload="runTest()"> |
40 <p>This test ensures that multiple form submission protection is correctly reset
on mouse events. To test manually: | 40 <p>This test ensures that multiple form submission protection is correctly reset
on mouse events. To test manually: |
41 <ol> | 41 <ol> |
42 <li>Click on "Click 1" to submit form to a new window. The window will close imm
ediately. | 42 <li>Click on "Click 1" to submit form to a new window. The window will close imm
ediately. |
43 <li>Click on "Click 2" to submit form to this window. Single word "SUCCESS" shou
ld replace the contents of this document. | 43 <li>Click on "Click 2" to submit form to this window. Single word "SUCCESS" shou
ld replace the contents of this document. |
44 </ol> | 44 </ol> |
45 <p>If either event doesn't occur, the test has failed. | 45 <p>If either event doesn't occur, the test has failed. |
46 <form method="post" name="test" action="data:text/html,<script>if (opener) { ope
ner.postMessage('trololo', '*'); window.close(); } else { document.write('SUCCES
S'); window.testRunner && testRunner.notifyDone(); }</script>"> | 46 <form method="post" name="test" action="resources/multiple-form-submission-prote
ction-post-target.html"> |
47 <input type="button" id="button1" value="Click 1" onclick="submitTo('_new')"> | 47 <input type="button" id="button1" value="Click 1" onclick="submitTo('_new')"> |
48 <input type="button" id="button2" value="Click 2" onclick="submitTo('_self')"> | 48 <input type="button" id="button2" value="Click 2" onclick="submitTo('_self')"> |
49 </form> | 49 </form> |
50 </body> | 50 </body> |
51 </html> | 51 </html> |
OLD | NEW |