andersca | e97a513 | 2007-05-17 08:48:45 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <script> |
| 3 | function runTest() { |
| 4 | var form = document.getElementById('f'); |
| 5 | |
| 6 | form.submit(); |
| 7 | form.submit(); |
| 8 | } |
| 9 | </script> |
| 10 | <form id="f" target="foo"><input></form> |
| 11 | <p>This tests that calling form.submit() twice in a row from JavaScript, on a form with a custom target and with at least one text field does not cause an assertion in a debug build of Safari. |
| 12 | </p> |
| 13 | <p>To test this, click the button below. A new window should open up and Safari should not assert.</p> |
| 14 | <button onclick="runTest()">Click Here</button> |
| 15 | </html> |