4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
9 <form id=f
action=
"interactive-validation-formnovalidate.html">
10 <input type=hidden name=submitted
value=
"true">
11 <input name=i0 required
id=
"i0">
12 <input type=submit
id=
"s" formnovalidate
>
15 description('Test if the form is submitted with a submit button with formnovalidate.');
17 function startOrVerify() {
18 var query
= window
.location
.search
;
19 if (query
.indexOf('submitted=true') != -1) {
20 testPassed('The form should not be submitted.');
21 shouldBeTrue('location.search.indexOf("i0=") != -1');
22 debug('TEST COMPLETE');
23 if (window
.testRunner
)
24 testRunner
.notifyDone();
26 // HTMLFormElement::submit() skips validation. Use the submit button.
27 document
.getElementById('s').click();
28 testFailed('The form was not submitted.');
32 if (window
.testRunner
)
33 testRunner
.waitUntilDone();
34 window
.onload
= startOrVerify
;