Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / file / file-input-empty-validation.html
blob696c0c6587084487c763a2f4281e12712d466d88
1 <!DOCTYPE html>
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>
6 <input type="submit">
7 </form>
8 <pre id="console"></pre>
9 <script>
10 description("This tests that a file input cleared of its (required) value doesn't validate.");
12 var invalid = false;
13 function finish(pass)
15 invalid = pass;
16 shouldBeTrue("invalid");
17 finishJSTest();
20 function startTest()
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;
32 </script>