summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/date/date-reset-value.html
blob: 4c3c8ae529b6916ea544d3ebbda03c53adec0a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<body>
<!-- Confirm appearance after reset() is same as the initial appearance. -->
<form id="form1">
<input type="date" id="date1">
<input type="date" value="2012-10-09" id="date2">
</form>
<script>
if (testRunner)
    testRunner.waitUntilDone();
window.onload = function() {
    date1.value = "1999-12-31";
    date2.value = "1999-12-31";
    form1.reset();
    if (testRunner)
        testRunner.notifyDone();
};
</script>
</body>