blob: 4ab0776973358ad5878bb2303ef594b744d72789 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
onkeypress = function(e) {
var tf = document.getElementById("tf");
tf.focus();
}
onload = function() {
if (window.testRunner)
eventSender.keyDown("\n");
}
</script>
</head>
<body>
Test that firing a \n char event at a text field doesn't insert line breaks. To
run the test manually, ensure that the input field below is not focused, and
hit enter. The test passes, if the caret stays inside the input field.<br>
<input id="tf" type="text"></input>
</body>
</html>