blob: f5747ae6eab88dfb556d050e5a21893e0ad43d04 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ XSSAuditorEnabled=true ] -->
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script>
function test() {
if (document.location.hash !== '#submitted') {
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var form = document.getElementById('form');
// Shouldn't trigger any assertions.
form.submit();
} else {
testPassed('No assertions raised.');
if (window.testRunner)
testRunner.notifyDone();
}
}
</script>
</head>
<body onload="test()">
This tests that no assertions are thrown when POST submitting a form.
<form method="post" id="form" action="#submitted">
<input type="text">
</form>
<div id="console"></div>
</body>
</html>