blob: 2499d2397ce8f85497f94fb5aac29ece7c04c92f [file] [log] [blame]
<!DOCTYPE html>
<html><body contenteditable="true">
<script src="../../../resources/js-test.js"></script>
<p>ASSERT should not be triggered when type is changed in focus event.</p>
<div id="container">
<input id="input" type="time" style="margin-top: 1000px;">
</div>
<pre id="console"></pre>
<script>
jsTestIsAsync = true;
input.addEventListener('focus', function() {
input.type = 'text;'
});
setTimeout(function() {
eventSender.keyDown('\t');
eventSender.keyDown('\t');
setTimeout(function() {
container.innerHTML = 'PASS unless crash.';
finishJSTest();
}, 0);
}, 0);
</script>
</body></html>