Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/text/textfield-no-linebreak.html

Issue 2100243002: Remove non-standardize key code names from event_sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix inspector tests that were missed by sed Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698