32 lines
919 B
HTML
32 lines
919 B
HTML
<!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>
|