| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script> | 4 <script> |
| 5 onkeypress = function(e) { | 5 onkeypress = function(e) { |
| 6 var tf = document.getElementById("tf"); | 6 var tf = document.getElementById("tf"); |
| 7 tf.focus(); | 7 tf.focus(); |
| 8 } | 8 } |
| 9 | 9 |
| 10 onload = function() { | 10 onload = function() { |
| 11 if (window.testRunner) | 11 if (window.testRunner) |
| 12 eventSender.keyDown("\n"); | 12 eventSender.keyDown("Enter"); |
| 13 } | 13 } |
| 14 </script> | 14 </script> |
| 15 </head> | 15 </head> |
| 16 <body> | 16 <body> |
| 17 Test that firing a \n char event at a text field doesn't insert line breaks. To | 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 | 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> | 19 hit enter. The test passes, if the caret stays inside the input field.<br> |
| 20 <input id="tf" type="text"></input> | 20 <input id="tf" type="text"></input> |
| 21 </body> | 21 </body> |
| 22 </html> | 22 </html> |
| OLD | NEW |