WebCore/manual-tests/submit-form-with-target-twice.html
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 01:32:07 +0300
changeset 2 303757a437d3
parent 0 4f2f89ce4247
permissions -rw-r--r--
Revision: 201037 Kit: 201039

<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>