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
>
8 <pre id=
"console"></pre>
10 description("This tests that a file input cleared of its (required) value doesn't validate.");
16 shouldBeTrue("invalid");
22 dragFilesOntoInput(document
.forms
[0].querySelector("[type=file]"), ['file-input-empty-validation.html']);
23 document
.forms
[0].querySelector("[type=file]").value
= "";
24 document
.forms
[0].querySelector("[type=submit]").click();
27 if (window
.eventSender
) {
28 window
.jsTestIsAsync
= true;
29 testRunner
.dumpAsText();
30 window
.onload
= startTest
;