Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / textfield-no-linebreak.html
blob4ab0776973358ad5878bb2303ef594b744d72789
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 onkeypress = function(e) {
6 var tf = document.getElementById("tf");
7 tf.focus();
10 onload = function() {
11 if (window.testRunner)
12 eventSender.keyDown("\n");
14 </script>
15 </head>
16 <body>
17 Test that firing a \n char event at a text field doesn't insert line breaks. To
18 run the test manually, ensure that the input field below is not focused, and
19 hit enter. The test passes, if the caret stays inside the input field.<br>
20 <input id="tf" type="text"></input>
21 </body>
22 </html>