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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-twice-past-extent.html

Issue 1320543006: Remove touch scroll chaining from main thread scrolling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@gclient
Patch Set: Fix silly mistake in mac expectations. Created 5 years, 2 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="resources/gesture-helpers.js"></script> 5 <script src="resources/gesture-helpers.js"></script>
6 <style type="text/css"> 6 <style type="text/css">
7 7
8 ::-webkit-scrollbar { 8 ::-webkit-scrollbar {
9 width: 0px; 9 width: 0px;
10 height: 0px; 10 height: 0px;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 <p id="description"></p> 101 <p id="description"></p>
102 <div id="console"></div> 102 <div id="console"></div>
103 <script type="text/javascript"> 103 <script type="text/javascript">
104 104
105 var movedbox; 105 var movedbox;
106 var touchtarget; 106 var touchtarget;
107 var expectedGesturesTotal = 2; 107 var expectedGesturesTotal = 2;
108 var gesturesOccurred = 0; 108 var gesturesOccurred = 0;
109 var scrollAmountX = ['0', '0']; 109 var scrollAmountX = ['0', '0'];
110 var scrollAmountY = ['0', '25']; 110 var scrollAmountY = ['0', '0'];
111 var wheelEventsOccurred = 0; 111 var wheelEventsOccurred = 0;
112 var expectedWheelEventsOccurred = ['0', '0']; 112 var expectedWheelEventsOccurred = ['0', '0'];
113 var scrollEventsOccurred = 0; 113 var scrollEventsOccurred = 0;
114 var scrolledElement = 'movedbox' 114 var scrolledElement = 'movedbox'
115 var scrollEventsOccurred = 0; 115 var scrollEventsOccurred = 0;
116 var expectedScrollEventsOccurred = '1'; 116 var expectedScrollEventsOccurred = '1';
117 117
118 function firstGestureScroll() 118 function firstGestureScroll()
119 { 119 {
120 debug("first gesture"); 120 debug("first gesture");
(...skipping 22 matching lines...) Expand all
143 testRunner.waitUntilDone(); 143 testRunner.waitUntilDone();
144 144
145 function runTest() 145 function runTest()
146 { 146 {
147 movedbox = document.getElementById("outermostdiv"); 147 movedbox = document.getElementById("outermostdiv");
148 touchtarget = document.getElementById("innerdiv"); 148 touchtarget = document.getElementById("innerdiv");
149 touchtarget.addEventListener("scroll", recordScroll); 149 touchtarget.addEventListener("scroll", recordScroll);
150 touchtarget.addEventListener("mousewheel", recordWheel); 150 touchtarget.addEventListener("mousewheel", recordWheel);
151 151
152 if (window.eventSender) { 152 if (window.eventSender) {
153 description('This tests that a gesture scroll is propagated from an ' + 153 description('This tests that a gesture scroll isn\'t propagated from an ' +
154 'inner div to an outer div twice when the scrolled divs have no ' + 154 'inner div to an outer div when the scrolled divs have no ' +
155 'remaining scroll offset.'); 155 'remaining scroll offset.');
156 if (checkTestDependencies()) 156 if (checkTestDependencies())
157 firstGestureScroll(); 157 firstGestureScroll();
158 else 158 else
159 exitIfNecessary(); 159 exitIfNecessary();
160 } else { 160 } else {
161 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation."); 161 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation.");
162 } 162 }
163 } 163 }
164 </script> 164 </script>
165 165
166 166
167 167
168 </body> 168 </body>
169 </html> 169 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698