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

Side by Side Diff: LayoutTests/fast/forms/suggestion-picker/week-suggestion-picker-mouse-operations.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="../../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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 dispatchWheelEvent(suggestionList, 0, -100); 125 dispatchWheelEvent(suggestionList, 0, -100);
126 scrollTopAfterWheelEvent = suggestionList.scrollTop; 126 scrollTopAfterWheelEvent = suggestionList.scrollTop;
127 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); 127 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent');
128 128
129 scrollTopBeforeWheelEvent = suggestionList.scrollTop; 129 scrollTopBeforeWheelEvent = suggestionList.scrollTop;
130 dispatchWheelEvent(suggestionList, 0, 100); 130 dispatchWheelEvent(suggestionList, 0, 100);
131 scrollTopAfterWheelEvent = suggestionList.scrollTop; 131 scrollTopAfterWheelEvent = suggestionList.scrollTop;
132 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent'); 132 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent');
133 133
134 popupWindow.focus(); 134 popupWindow.focus();
135 eventSender.keyDown('\x1B'); 135 eventSender.keyDown('escape');
136 waitUntilClosing(test2AfterClosing); 136 waitUntilClosing(test2AfterClosing);
137 } 137 }
138 138
139 function test2AfterClosing() { 139 function test2AfterClosing() {
140 shouldBeNull('$("mock-page-popup")'); 140 shouldBeNull('$("mock-page-popup")');
141 141
142 openPicker($('week'), test3); 142 openPicker($('week'), test3);
143 } 143 }
144 144
145 function test3() { 145 function test3() {
(...skipping 10 matching lines...) Expand all
156 eventSender.mouseUp(); 156 eventSender.mouseUp();
157 scrollTopAfterWheelEvent = suggestionList.scrollTop; 157 scrollTopAfterWheelEvent = suggestionList.scrollTop;
158 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); 158 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent');
159 159
160 finishJSTest(); 160 finishJSTest();
161 } 161 }
162 162
163 </script> 163 </script>
164 </body> 164 </body>
165 </html> 165 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698