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

Side by Side Diff: LayoutTests/editing/spelling/spelling-on-context-menu-key.html

Issue 484353004: Test tidying: use "escape" and "backspace" with eventSender.keyDown() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More quoting consistency wibbles Created 6 years, 4 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 13 matching lines...) Expand all
24 window.getSelection().removeAllRanges(); 24 window.getSelection().removeAllRanges();
25 var range = document.createRange(); 25 var range = document.createRange();
26 range.setStart(textNode, 2); 26 range.setStart(textNode, 2);
27 range.setEnd(textNode, 2); 27 range.setEnd(textNode, 2);
28 window.getSelection().addRange(range); 28 window.getSelection().addRange(range);
29 29
30 // Context menu key to show the context menu. 30 // Context menu key to show the context menu.
31 eventSender.keyDown("menu"); 31 eventSender.keyDown("menu");
32 32
33 // Esc to close the context menu. 33 // Esc to close the context menu.
34 eventSender.keyDown(String.fromCharCode(0x001B)); 34 eventSender.keyDown("escape");
35 35
36 shouldBeEqualToString("window.getSelection().toString()", "wellcome"); 36 shouldBeEqualToString("window.getSelection().toString()", "wellcome");
37 } 37 }
38 }); 38 });
39 39
40 </script> 40 </script>
41 </body> 41 </body>
42 </html> 42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698