diff options
Diffstat (limited to 'WebCore/manual-tests/submit-form-with-target-twice.html')
-rw-r--r-- | WebCore/manual-tests/submit-form-with-target-twice.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/WebCore/manual-tests/submit-form-with-target-twice.html b/WebCore/manual-tests/submit-form-with-target-twice.html new file mode 100644 index 0000000..9b10410 --- /dev/null +++ b/WebCore/manual-tests/submit-form-with-target-twice.html @@ -0,0 +1,15 @@ +<html> +<script> +function runTest() { + var form = document.getElementById('f'); + + form.submit(); + form.submit(); +} +</script> +<form id="f" target="foo"><input></form> +<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. +</p> +<p>To test this, click the button below. A new window should open up and Safari should not assert.</p> +<button onclick="runTest()">Click Here</button> +</html> |