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

Side by Side Diff: LayoutTests/fast/forms/suggestion-picker/month-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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 dispatchWheelEvent(suggestionList, 0, -100); 106 dispatchWheelEvent(suggestionList, 0, -100);
107 scrollTopAfterWheelEvent = suggestionList.scrollTop; 107 scrollTopAfterWheelEvent = suggestionList.scrollTop;
108 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); 108 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent');
109 109
110 scrollTopBeforeWheelEvent = suggestionList.scrollTop; 110 scrollTopBeforeWheelEvent = suggestionList.scrollTop;
111 dispatchWheelEvent(suggestionList, 0, 100); 111 dispatchWheelEvent(suggestionList, 0, 100);
112 scrollTopAfterWheelEvent = suggestionList.scrollTop; 112 scrollTopAfterWheelEvent = suggestionList.scrollTop;
113 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent'); 113 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent');
114 114
115 popupWindow.focus(); 115 popupWindow.focus();
116 eventSender.keyDown('\x1B'); 116 eventSender.keyDown('escape');
117 waitUntilClosing(test2AfterClosing); 117 waitUntilClosing(test2AfterClosing);
118 } 118 }
119 119
120 function test2AfterClosing() { 120 function test2AfterClosing() {
121 shouldBeNull('$("mock-page-popup")'); 121 shouldBeNull('$("mock-page-popup")');
122 122
123 openPicker($('month'), test3); 123 openPicker($('month'), test3);
124 } 124 }
125 125
126 function test3() { 126 function test3() {
(...skipping 10 matching lines...) Expand all
137 eventSender.mouseUp(); 137 eventSender.mouseUp();
138 scrollTopAfterWheelEvent = suggestionList.scrollTop; 138 scrollTopAfterWheelEvent = suggestionList.scrollTop;
139 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); 139 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent');
140 140
141 finishJSTest(); 141 finishJSTest();
142 } 142 }
143 143
144 </script> 144 </script>
145 </body> 145 </body>
146 </html> 146 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698