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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/arrow-navigation.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 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 function test() 4 function test()
5 { 5 {
6 var tf = document.getElementById('tf'); 6 var tf = document.getElementById('tf');
7 tf.focus(); 7 tf.focus();
8 tf.setSelectionRange(0, 0); 8 tf.setSelectionRange(0, 0);
9 if (window.testRunner) { 9 if (window.testRunner) {
10 testRunner.dumpAsText(); 10 testRunner.dumpAsText();
11 eventSender.keyDown("rightArrow"); 11 eventSender.keyDown("ArrowRight");
12 } 12 }
13 if (tf.selectionStart == 1) 13 if (tf.selectionStart == 1)
14 log("Test Passed"); 14 log("Test Passed");
15 else 15 else
16 log("Test Failed. Selection start: " + tf.selectionStart + " Selection end: " + tf.selectionEnd); 16 log("Test Failed. Selection start: " + tf.selectionStart + " Selection end: " + tf.selectionEnd);
17 } 17 }
18 18
19 function log(msg) 19 function log(msg)
20 { 20 {
21 var res = document.getElementById('res'); 21 var res = document.getElementById('res');
22 res.innerHTML = res.innerHTML + msg + "<br>"; 22 res.innerHTML = res.innerHTML + msg + "<br>";
23 } 23 }
24 </script> 24 </script>
25 </head> 25 </head>
26 <body onload="test()"> 26 <body onload="test()">
27 This tests that you can use arrow keys to navigate.<br> 27 This tests that you can use arrow keys to navigate.<br>
28 <input id="tf" value="test"></input> 28 <input id="tf" value="test"></input>
29 <div id="res"></div> 29 <div id="res"></div>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698