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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/spelling-insert-newline-between-multi-word-misspelling.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 src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/util.js"></script> 5 <script src="resources/util.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <div id="container"> 8 <div id="container">
9 <div id="destination" contentEditable></div> 9 <div id="destination" contentEditable></div>
10 </div> 10 </div>
(...skipping 22 matching lines...) Expand all
33 33
34 finishJSTest(); 34 finishJSTest();
35 }; 35 };
36 36
37 initSpellTest("destination", "It should be upper case.", function(textNode) { 37 initSpellTest("destination", "It should be upper case.", function(textNode) {
38 38
39 spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0); 39 spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0);
40 shouldBeEqualToString("spellingMarkerRange.toString()", "upper case"); 40 shouldBeEqualToString("spellingMarkerRange.toString()", "upper case");
41 41
42 for(var i = 0; i < 5; ++i) 42 for(var i = 0; i < 5; ++i)
43 eventSender.keyDown("leftArrow"); 43 eventSender.keyDown("ArrowLeft");
44 44
45 document.execCommand("InsertText", false, "\n"); 45 document.execCommand("InsertText", false, "\n");
46 46
47 var destinationChildNodes = 47 var destinationChildNodes =
48 document.getElementById("destination").childNodes; 48 document.getElementById("destination").childNodes;
49 49
50 var firstLine = destinationChildNodes[0]; 50 var firstLine = destinationChildNodes[0];
51 var secondLine = destinationChildNodes[1].firstChild; 51 var secondLine = destinationChildNodes[1].firstChild;
52 52
53 waitForMarkersToDisappear(firstLine, secondLine, 10); 53 waitForMarkersToDisappear(firstLine, secondLine, 10);
54 54
55 }, true); 55 }, true);
56 </script> 56 </script>
57 </body> 57 </body>
58 </html> 58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698