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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/suggestion-picker/week-suggestion-picker-mouse-operations.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="../../forms/resources/common.js"></script> 5 <script src="../../forms/resources/common.js"></script>
6 <script src="../../forms/resources/common-wheel-event.js"></script> 6 <script src="../../forms/resources/common-wheel-event.js"></script>
7 <script src="../../forms/resources/picker-common.js"></script> 7 <script src="../../forms/resources/picker-common.js"></script>
8 <script src="resources/suggestion-picker-common.js"></script> 8 <script src="resources/suggestion-picker-common.js"></script>
9 </head> 9 </head>
10 <body style="background-color: #bbbbbb;"> 10 <body style="background-color: #bbbbbb;">
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 var scrollTopAfterWheelEvent = 0; 117 var scrollTopAfterWheelEvent = 0;
118 var suggestionList; 118 var suggestionList;
119 119
120 function test2() { 120 function test2() {
121 suggestionList = popupWindow.document.getElementsByClassName("suggestion-lis t")[0]; 121 suggestionList = popupWindow.document.getElementsByClassName("suggestion-lis t")[0];
122 122
123 debug('Check that you can scroll using the mouse wheel.'); 123 debug('Check that you can scroll using the mouse wheel.');
124 124
125 function finishTest() { 125 function finishTest() {
126 popupWindow.focus(); 126 popupWindow.focus();
127 eventSender.keyDown('escape'); 127 eventSender.keyDown('Escape');
128 waitUntilClosing(test2AfterClosing); 128 waitUntilClosing(test2AfterClosing);
129 } 129 }
130 130
131 function scrollUp() { 131 function scrollUp() {
132 scrollTopBeforeWheelEvent = suggestionList.scrollTop; 132 scrollTopBeforeWheelEvent = suggestionList.scrollTop;
133 dispatchWheelEvent(suggestionList, 0, 100); 133 dispatchWheelEvent(suggestionList, 0, 100);
134 shouldBecomeEqual('scrollTopBeforeWheelEvent > suggestionList.scrollTop' , 'true', finishTest) 134 shouldBecomeEqual('scrollTopBeforeWheelEvent > suggestionList.scrollTop' , 'true', finishTest)
135 } 135 }
136 136
137 function scrollDown() { 137 function scrollDown() {
(...skipping 25 matching lines...) Expand all
163 eventSender.mouseUp(); 163 eventSender.mouseUp();
164 scrollTopAfterWheelEvent = suggestionList.scrollTop; 164 scrollTopAfterWheelEvent = suggestionList.scrollTop;
165 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); 165 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent');
166 166
167 finishJSTest(); 167 finishJSTest();
168 } 168 }
169 169
170 </script> 170 </script>
171 </body> 171 </body>
172 </html> 172 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698