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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-page-propagated.html

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix a couple more tests Created 5 years, 7 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 | Annotate | Revision Log
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 ::-webkit-scrollbar { 7 ::-webkit-scrollbar {
8 width: 0px; 8 width: 0px;
9 height: 0px; 9 height: 0px;
10 } 10 }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 <script type="text/javascript"> 74 <script type="text/javascript">
75 75
76 var touchtarget; 76 var touchtarget;
77 var expectedGesturesTotal = 2; 77 var expectedGesturesTotal = 2;
78 var gesturesOccurred = 0; 78 var gesturesOccurred = 0;
79 var scrollAmountX = ['0', '0']; 79 var scrollAmountX = ['0', '0'];
80 var scrollAmountY = ['0', '160']; 80 var scrollAmountY = ['0', '160'];
81 var wheelEventsOccurred = 0; 81 var wheelEventsOccurred = 0;
82 var expectedWheelEventsOccurred = ['0', '0']; 82 var expectedWheelEventsOccurred = ['0', '0'];
83 var scrollEventsOccurred = 0; 83 var scrollEventsOccurred = 0;
84 var scrolledElement = 'document.body' 84 var scrolledElement = 'document.scrollingElement'
85 var scrollEventsOccurred = 0; 85 var scrollEventsOccurred = 0;
86 var expectedScrollEventsOccurred = '1'; 86 var expectedScrollEventsOccurred = '1';
87 87
88 // Always construct a page larger than the vertical height of the window. 88 // Always construct a page larger than the vertical height of the window.
89 function buildPage() 89 function buildPage()
90 { 90 {
91 var table = document.getElementById('table_to_fill'); 91 var table = document.getElementById('table_to_fill');
92 var targetHeight = document.body.offsetHeight; 92 var targetHeight = document.body.offsetHeight;
93 var cellPairHeight = table.offsetHeight; 93 var cellPairHeight = table.offsetHeight;
94 var numberOfReps = targetHeight / cellPairHeight * 2; 94 var numberOfReps = targetHeight / cellPairHeight * 2;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } else { 146 } else {
147 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation."); 147 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation.");
148 } 148 }
149 } 149 }
150 </script> 150 </script>
151 151
152 152
153 153
154 </body> 154 </body>
155 </html> 155 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698