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/forms/suggestion-picker/date-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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 var scrollTopAfterWheelEvent = 0; 118 var scrollTopAfterWheelEvent = 0;
119 var suggestionList; 119 var suggestionList;
120 120
121 function test2() { 121 function test2() {
122 suggestionList = popupWindow.document.getElementsByClassName("suggestion-lis t")[0]; 122 suggestionList = popupWindow.document.getElementsByClassName("suggestion-lis t")[0];
123 123
124 debug('Check that you can scroll using the mouse wheel.'); 124 debug('Check that you can scroll using the mouse wheel.');
125 125
126 function finishTest() { 126 function finishTest() {
127 popupWindow.focus(); 127 popupWindow.focus();
128 eventSender.keyDown('escape'); 128 eventSender.keyDown('Escape');
129 waitUntilClosing(test2AfterClosing); 129 waitUntilClosing(test2AfterClosing);
130 } 130 }
131 131
132 function scrollUp() { 132 function scrollUp() {
133 scrollTopBeforeWheelEvent = suggestionList.scrollTop; 133 scrollTopBeforeWheelEvent = suggestionList.scrollTop;
134 dispatchWheelEvent(suggestionList, 0, 100); 134 dispatchWheelEvent(suggestionList, 0, 100);
135 shouldBecomeEqual('scrollTopBeforeWheelEvent > suggestionList.scrollTop' , 'true', finishTest); 135 shouldBecomeEqual('scrollTopBeforeWheelEvent > suggestionList.scrollTop' , 'true', finishTest);
136 } 136 }
137 137
138 function scrollDown() { 138 function scrollDown() {
(...skipping 25 matching lines...) Expand all
164 eventSender.mouseUp(); 164 eventSender.mouseUp();
165 scrollTopAfterWheelEvent = suggestionList.scrollTop; 165 scrollTopAfterWheelEvent = suggestionList.scrollTop;
166 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); 166 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent');
167 167
168 finishJSTest(); 168 finishJSTest();
169 } 169 }
170 170
171 </script> 171 </script>
172 </body> 172 </body>
173 </html> 173 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698