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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/selectionchange-user-initiated.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 5
6 function expected(text) { 6 function expected(text) {
7 return text.substr(text.indexOf(':') + 2); 7 return text.substr(text.indexOf(':') + 2);
8 } 8 }
9 9
10 var i = 0; 10 var i = 0;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 attachLogger(worldDiv); 81 attachLogger(worldDiv);
82 82
83 if (window.testRunner && window.eventSender) { 83 if (window.testRunner && window.eventSender) {
84 testRunner.dumpAsText(); 84 testRunner.dumpAsText();
85 testRunner.waitUntilDone(); 85 testRunner.waitUntilDone();
86 86
87 var events = [ 87 var events = [
88 function () { eventSender.mouseMoveTo(helloDiv.offsetLeft + 10, helloDiv .offsetTop + 2); }, 88 function () { eventSender.mouseMoveTo(helloDiv.offsetLeft + 10, helloDiv .offsetTop + 2); },
89 function () { eventSender.mouseDown(); }, 89 function () { eventSender.mouseDown(); },
90 function () { eventSender.mouseUp(); }, 90 function () { eventSender.mouseUp(); },
91 function () { eventSender.keyDown("leftArrow", ['shiftKey']); }, 91 function () { eventSender.keyDown("ArrowLeft", ['shiftKey']); },
92 function () { eventSender.keyDown("rightArrow", ['shiftKey']); }, 92 function () { eventSender.keyDown("ArrowRight", ['shiftKey']); },
93 function () { eventSender.mouseMoveTo(worldDiv.offsetLeft + 10, worldDiv .offsetTop + 2); }, 93 function () { eventSender.mouseMoveTo(worldDiv.offsetLeft + 10, worldDiv .offsetTop + 2); },
94 function () { eventSender.mouseDown(); }, 94 function () { eventSender.mouseDown(); },
95 function () { eventSender.mouseUp(); }, 95 function () { eventSender.mouseUp(); },
96 function () { eventSender.keyDown("leftArrow", ['shiftKey']); }, 96 function () { eventSender.keyDown("ArrowLeft", ['shiftKey']); },
97 function () { eventSender.keyDown("rightArrow", ['shiftKey']); }, 97 function () { eventSender.keyDown("ArrowRight", ['shiftKey']); },
98 ]; 98 ];
99 var j = 0; 99 var j = 0;
100 100
101 function timer() { 101 function timer() {
102 // Need to wait one more iteration for events to be processed 102 // Need to wait one more iteration for events to be processed
103 if (j >= events.length) { 103 if (j >= events.length) {
104 testRunner.notifyDone(); 104 testRunner.notifyDone();
105 return; 105 return;
106 } 106 }
107 events[j](); 107 events[j]();
108 j++; 108 j++;
109 setTimeout(timer, 0); 109 setTimeout(timer, 0);
110 } 110 }
111 111
112 timer(); 112 timer();
113 } 113 }
114 114
115 </script> 115 </script>
116 </body> 116 </body>
117 </html> 117 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698