2 <script src=
"../../../resources/js-test.js"></script>
3 <script src=
"resources/file-drag-common.js"></script>
4 <form method=
"GET" onsubmit=
"finish(false)">
5 <input type=
"file" oninvalid=
"finish(true)" required
>
9 <pre id=
"console"></pre>
11 description("This tests that a reset file input with a required value doesn't validate.");
17 shouldBeTrue("invalid");
23 dragFilesOntoInput(document
.forms
[0].querySelector("[type=file]"), ['file-input-reset-validation.html']);
24 document
.forms
[0].querySelector("[type=reset]").click();
25 document
.forms
[0].querySelector("[type=submit]").click();
28 if (window
.eventSender
) {
29 window
.jsTestIsAsync
= true;
30 testRunner
.dumpAsText();
31 window
.onload
= startTest
;