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

Side by Side Diff: LayoutTests/fast/forms/suggestion-picker/time-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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 dispatchWheelEvent(suggestionList, 0, -100); 82 dispatchWheelEvent(suggestionList, 0, -100);
83 scrollTopAfterWheelEvent = suggestionList.scrollTop; 83 scrollTopAfterWheelEvent = suggestionList.scrollTop;
84 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); 84 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent');
85 85
86 scrollTopBeforeWheelEvent = suggestionList.scrollTop; 86 scrollTopBeforeWheelEvent = suggestionList.scrollTop;
87 dispatchWheelEvent(suggestionList, 0, 100); 87 dispatchWheelEvent(suggestionList, 0, 100);
88 scrollTopAfterWheelEvent = suggestionList.scrollTop; 88 scrollTopAfterWheelEvent = suggestionList.scrollTop;
89 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent'); 89 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent');
90 90
91 popupWindow.focus(); 91 popupWindow.focus();
92 eventSender.keyDown('\x1B'); 92 eventSender.keyDown("escape");
93 waitUntilClosing(test2AfterClosing); 93 waitUntilClosing(test2AfterClosing);
94 } 94 }
95 95
96 function test2AfterClosing() { 96 function test2AfterClosing() {
97 shouldBeNull('$("mock-page-popup")'); 97 shouldBeNull('$("mock-page-popup")');
98 98
99 openPicker($('time'), test3); 99 openPicker($('time'), test3);
100 } 100 }
101 101
102 function test3() { 102 function test3() {
(...skipping 10 matching lines...) Expand all
113 eventSender.mouseUp(); 113 eventSender.mouseUp();
114 scrollTopAfterWheelEvent = suggestionList.scrollTop; 114 scrollTopAfterWheelEvent = suggestionList.scrollTop;
115 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); 115 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent');
116 116
117 finishJSTest(); 117 finishJSTest();
118 } 118 }
119 119
120 </script> 120 </script>
121 </body> 121 </body>
122 </html> 122 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698