summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/ValidityState-valueMissing-008.html
blob: 238dacbdbaa0bacfe04d038f9c9818ffa90917b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html>
<head>
<title>required and valueMissing on file control</title>
<script language="JavaScript" type="text/javascript">
    function log(message) {
        document.getElementById("console").innerHTML += "<li>"+message+"</li>";
    }

    function test() {
        if (window.testRunner)
            testRunner.dumpAsText();

        v = document.getElementsByName("victim");

        log(v[0].validity.valueMissing ? "SUCCESS" : "FAILURE");
    }
</script>
</head>
<body onload="test()">
<p>There's a upload control below, with no file selected: missing value.</p>
<input name="victim" type="file" required/>
<hr>
<ol id="console"></ol>
</body>
</html>