blob: 9b4ceeb17b31c471240b41ba8b3399deb40e8450 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<input id="emptyOnFirstVisit">
<form action="../../../resources/back.html" id=form1>
<input type=date id=input1>
<input type=date id=input2>
<input type=date id=input3 value="2012-01-03">
</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-03";
document.getElementById('input3').value = "2002-03-04";
document.getElementById('form1').submit();
}, 0);
} else {
testRunner.notifyDone();
}
}
window.onload = function() { setTimeout(runTest, 1); };
</script>
</body>