blob: 9e6f513fd20ef064dff97efe440c30d117d40d42 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<input id="emptyOnFirstVisit">
<form action="data:text/html,&lt;script>history.back()&lt;/script>" id=form1>
<input type=month id=input1>
<input type=month id=input2>
<input type=month id=input3 value="2012-01">
</form>
<script>
// Restoring the form should update the clear button visibility.
testRunner.waitUntilDone();
function runTest()
{
var state = document.getElementById('emptyOnFirstVisit');
if (!state.value) {
// First visit.
setTimeout(function() {
state.value = 'visited';
document.getElementById('input2').value = "2001-02";
document.getElementById('input3').value = "2002-03";
document.getElementById('form1').submit();
}, 0);
} else {
testRunner.notifyDone();
}
}
window.onload = runTest;
</script>
</body>