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

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

Powered by Google App Engine
This is Rietveld 408576698