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

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

Issue 25039006: document.documentElement.scrollTop/Left is zero (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: document.documentElement.scrollTop/Left is zero Created 7 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 <link rel="stylesheet" href="../../../js/resources/js-test-style.css"> 4 <link rel="stylesheet" href="../../../js/resources/js-test-style.css">
5 <script src="../../../js/resources/js-test-pre.js"></script> 5 <script src="../../../js/resources/js-test-pre.js"></script>
6 <script src="resources/gesture-helpers.js"></script> 6 <script src="resources/gesture-helpers.js"></script>
7 <style type="text/css"> 7 <style type="text/css">
8 ::-webkit-scrollbar { 8 ::-webkit-scrollbar {
9 width: 0px; 9 width: 0px;
10 height: 0px; 10 height: 0px;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 <script type="text/javascript"> 75 <script type="text/javascript">
76 76
77 var touchtarget; 77 var touchtarget;
78 var expectedGesturesTotal = 2; 78 var expectedGesturesTotal = 2;
79 var gesturesOccurred = 0; 79 var gesturesOccurred = 0;
80 var scrollAmountX = ['0', '0']; 80 var scrollAmountX = ['0', '0'];
81 var scrollAmountY = ['0', '160']; 81 var scrollAmountY = ['0', '160'];
82 var wheelEventsOccurred = 0; 82 var wheelEventsOccurred = 0;
83 var expectedWheelEventsOccurred = ['0', '0']; 83 var expectedWheelEventsOccurred = ['0', '0'];
84 var scrollEventsOccurred = 0; 84 var scrollEventsOccurred = 0;
85 var scrolledElement = 'document.body' 85 var scrolledElement = 'document.documentElement'
86 var scrollEventsOccurred = 0; 86 var scrollEventsOccurred = 0;
87 var expectedScrollEventsOccurred = '1'; 87 var expectedScrollEventsOccurred = '1';
88 88
89 // Always construct a page larger than the vertical height of the window. 89 // Always construct a page larger than the vertical height of the window.
90 function buildPage() 90 function buildPage()
91 { 91 {
92 var table = document.getElementById('table_to_fill'); 92 var table = document.getElementById('table_to_fill');
93 var targetHeight = document.body.offsetHeight; 93 var targetHeight = document.body.offsetHeight;
94 var cellPairHeight = table.offsetHeight; 94 var cellPairHeight = table.offsetHeight;
95 var numberOfReps = targetHeight / cellPairHeight * 2; 95 var numberOfReps = targetHeight / cellPairHeight * 2;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } else { 147 } else {
148 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation."); 148 debug("This test requires DumpRenderTree. Gesture-scroll the page to va lidate the implementation.");
149 } 149 }
150 } 150 }
151 </script> 151 </script>
152 152
153 153
154 154
155 </body> 155 </body>
156 </html> 156 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698