blob: 4b3c4ee6d3f05c3ae0d581e3dff2722fa10cbce3 [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=time id=input1>
<input type=time id=input2>
<input type=time id=input3 value="01:01:01.001">
</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 = "02:02";
document.getElementById('input3').value = "03:03:03.003";
document.getElementById('form1').submit();
}, 0);
} else {
testRunner.notifyDone();
}
}
window.onload = runTest;
</script>
</body>