Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / file / file-input-reset-validation.html
blobfbceb7ba0c348c7d98511cefa08b7f45a08ae951
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="reset">
7 <input type="submit">
8 </form>
9 <pre id="console"></pre>
10 <script>
11 description("This tests that a reset file input with a required value doesn't validate.");
13 var invalid = false;
14 function finish(pass)
16 invalid = pass;
17 shouldBeTrue("invalid");
18 finishJSTest();
21 function startTest()
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;
33 </script>