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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/suggestion-picker/datetimelocal-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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 var scrollTopAfterWheelEvent = 0; 71 var scrollTopAfterWheelEvent = 0;
72 var suggestionList; 72 var suggestionList;
73 73
74 function test2() { 74 function test2() {
75 suggestionList = popupWindow.document.getElementsByClassName("suggestion-lis t")[0]; 75 suggestionList = popupWindow.document.getElementsByClassName("suggestion-lis t")[0];
76 76
77 debug('Check that you can scroll using the mouse wheel.'); 77 debug('Check that you can scroll using the mouse wheel.');
78 78
79 function finishTest() { 79 function finishTest() {
80 popupWindow.focus(); 80 popupWindow.focus();
81 eventSender.keyDown('escape'); 81 eventSender.keyDown('Escape');
82 waitUntilClosing(test2AfterClosing); 82 waitUntilClosing(test2AfterClosing);
83 } 83 }
84 84
85 function scrollUp() { 85 function scrollUp() {
86 scrollTopBeforeWheelEvent = suggestionList.scrollTop; 86 scrollTopBeforeWheelEvent = suggestionList.scrollTop;
87 dispatchWheelEvent(suggestionList, 0, 100); 87 dispatchWheelEvent(suggestionList, 0, 100);
88 shouldBecomeEqual('scrollTopBeforeWheelEvent > suggestionList.scrollTop' , 'true', finishTest) 88 shouldBecomeEqual('scrollTopBeforeWheelEvent > suggestionList.scrollTop' , 'true', finishTest)
89 } 89 }
90 90
91 function scrollDown() { 91 function scrollDown() {
(...skipping 25 matching lines...) Expand all
117 eventSender.mouseUp(); 117 eventSender.mouseUp();
118 scrollTopAfterWheelEvent = suggestionList.scrollTop; 118 scrollTopAfterWheelEvent = suggestionList.scrollTop;
119 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); 119 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent');
120 120
121 finishJSTest(); 121 finishJSTest();
122 } 122 }
123 123
124 </script> 124 </script>
125 </body> 125 </body>
126 </html> 126 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698