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

Side by Side Diff: LayoutTests/fast/forms/suggestion-picker/datetimelocal-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: 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 dispatchWheelEvent(suggestionList, 0, -100); 79 dispatchWheelEvent(suggestionList, 0, -100);
80 scrollTopAfterWheelEvent = suggestionList.scrollTop; 80 scrollTopAfterWheelEvent = suggestionList.scrollTop;
81 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); 81 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent');
82 82
83 scrollTopBeforeWheelEvent = suggestionList.scrollTop; 83 scrollTopBeforeWheelEvent = suggestionList.scrollTop;
84 dispatchWheelEvent(suggestionList, 0, 100); 84 dispatchWheelEvent(suggestionList, 0, 100);
85 scrollTopAfterWheelEvent = suggestionList.scrollTop; 85 scrollTopAfterWheelEvent = suggestionList.scrollTop;
86 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent'); 86 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent');
87 87
88 popupWindow.focus(); 88 popupWindow.focus();
89 eventSender.keyDown('\x1B'); 89 eventSender.keyDown("escape");
keishi 2014/08/22 07:22:32 nit: string literals in this file are using single
90 waitUntilClosing(test2AfterClosing); 90 waitUntilClosing(test2AfterClosing);
91 } 91 }
92 92
93 function test2AfterClosing() { 93 function test2AfterClosing() {
94 shouldBeNull('$("mock-page-popup")'); 94 shouldBeNull('$("mock-page-popup")');
95 95
96 openPicker($('datetime-local'), test3); 96 openPicker($('datetime-local'), test3);
97 } 97 }
98 98
99 function test3() { 99 function test3() {
(...skipping 10 matching lines...) Expand all
110 eventSender.mouseUp(); 110 eventSender.mouseUp();
111 scrollTopAfterWheelEvent = suggestionList.scrollTop; 111 scrollTopAfterWheelEvent = suggestionList.scrollTop;
112 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); 112 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent');
113 113
114 finishJSTest(); 114 finishJSTest();
115 } 115 }
116 116
117 </script> 117 </script>
118 </body> 118 </body>
119 </html> 119 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698