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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/multiline-link-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><head> 1 <html><head>
2 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 2 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
3 3
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 } 7 }
8 8
9 function runTest() 9 function runTest()
10 { 10 {
11 var para = document.getElementById("para"); 11 var para = document.getElementById("para");
12 window.getSelection().collapse(para.childNodes.item(1).childNodes.item(0), 1 5); 12 window.getSelection().collapse(para.childNodes.item(1).childNodes.item(0), 1 5);
13 eventSender.keyDown("rightArrow"); 13 eventSender.keyDown("ArrowRight");
14 eventSender.keyDown("rightArrow"); 14 eventSender.keyDown("ArrowRight");
15 15
16 document.getElementById("result").innerText = getSelection().baseOffset == 1 7 ? "PASS" : "FAIL"; 16 document.getElementById("result").innerText = getSelection().baseOffset == 1 7 ? "PASS" : "FAIL";
17 } 17 }
18 </script> 18 </script>
19 19
20 <title>Test</title> 20 <title>Test</title>
21 </head><body onLoad="runTest();"> 21 </head><body onLoad="runTest();">
22 <p id="para" style="-webkit-user-modify: read-write; width: 250px; height: 100px ; border: 1px solid blue;">This is a test of <a href="https://bug-25676-attachme nts.webkit.org/foo.html">links which span multiple lines</a> for various and sun dry reasons.</p> 22 <p id="para" style="-webkit-user-modify: read-write; width: 250px; height: 100px ; border: 1px solid blue;">This is a test of <a href="https://bug-25676-attachme nts.webkit.org/foo.html">links which span multiple lines</a> for various and sun dry reasons.</p>
23 23
24 <p id="result"></p> 24 <p id="result"></p>
25 </body></html> 25 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698