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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/suggestion-picker/month-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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 var scrollTopAfterWheelEvent = 0; 98 var scrollTopAfterWheelEvent = 0;
99 var suggestionList; 99 var suggestionList;
100 100
101 function test2() { 101 function test2() {
102 suggestionList = popupWindow.document.getElementsByClassName("suggestion-lis t")[0]; 102 suggestionList = popupWindow.document.getElementsByClassName("suggestion-lis t")[0];
103 103
104 debug('Check that you can scroll using the mouse wheel.'); 104 debug('Check that you can scroll using the mouse wheel.');
105 105
106 function finishTest() { 106 function finishTest() {
107 popupWindow.focus(); 107 popupWindow.focus();
108 eventSender.keyDown('escape'); 108 eventSender.keyDown('Escape');
109 waitUntilClosing(test2AfterClosing); 109 waitUntilClosing(test2AfterClosing);
110 } 110 }
111 111
112 function scrollUp() { 112 function scrollUp() {
113 scrollTopBeforeWheelEvent = suggestionList.scrollTop; 113 scrollTopBeforeWheelEvent = suggestionList.scrollTop;
114 dispatchWheelEvent(suggestionList, 0, 100); 114 dispatchWheelEvent(suggestionList, 0, 100);
115 shouldBecomeEqual('scrollTopBeforeWheelEvent > suggestionList.scrollTop' , 'true', finishTest) 115 shouldBecomeEqual('scrollTopBeforeWheelEvent > suggestionList.scrollTop' , 'true', finishTest)
116 } 116 }
117 117
118 function scrollDown() { 118 function scrollDown() {
(...skipping 25 matching lines...) Expand all
144 eventSender.mouseUp(); 144 eventSender.mouseUp();
145 scrollTopAfterWheelEvent = suggestionList.scrollTop; 145 scrollTopAfterWheelEvent = suggestionList.scrollTop;
146 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); 146 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent');
147 147
148 finishJSTest(); 148 finishJSTest();
149 } 149 }
150 150
151 </script> 151 </script>
152 </body> 152 </body>
153 </html> 153 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698