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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/touch-gesture-noscroll-body-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 #touchtarget { 8 #touchtarget {
9 width: 100px; 9 width: 100px;
10 height: 100px; 10 height: 100px;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 <script type="text/javascript"> 63 <script type="text/javascript">
64 64
65 var expectedGesturesTotal = 2; 65 var expectedGesturesTotal = 2;
66 var gesturesOccurred = 0; 66 var gesturesOccurred = 0;
67 var scrollAmountX = ['0', '0']; 67 var scrollAmountX = ['0', '0'];
68 var scrollAmountY = ['0', '0']; 68 var scrollAmountY = ['0', '0'];
69 var wheelEventsOccurred = 0; 69 var wheelEventsOccurred = 0;
70 var expectedWheelEventsOccurred = ['0', '0']; 70 var expectedWheelEventsOccurred = ['0', '0'];
71 var scrollEventsOccurred = 0; 71 var scrollEventsOccurred = 0;
72 var expectedScrollEventsOccurred = '0'; 72 var expectedScrollEventsOccurred = '0';
73 var scrolledElement = 'document.body' 73 var scrolledElement = 'document.documentElement';
74 74
75 // Always construct a page larger than the vertical height of the window. 75 // Always construct a page larger than the vertical height of the window.
76 function buildPage() 76 function buildPage()
77 { 77 {
78 var table = document.getElementById('table_to_fill'); 78 var table = document.getElementById('table_to_fill');
79 var targetHeight = document.body.offsetHeight; 79 var targetHeight = document.body.offsetHeight;
80 var cellPairHeight = table.offsetHeight; 80 var cellPairHeight = table.offsetHeight;
81 var numberOfReps = targetHeight / cellPairHeight * 2; 81 var numberOfReps = targetHeight / cellPairHeight * 2;
82 var i; 82 var i;
83 for (i = 0; i < numberOfReps; i++) { 83 for (i = 0; i < numberOfReps; i++) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 successfullyParsed = true; 150 successfullyParsed = true;
151 isSuccessfullyParsed(); 151 isSuccessfullyParsed();
152 if (window.testRunner) 152 if (window.testRunner)
153 testRunner.notifyDone(); 153 testRunner.notifyDone();
154 } 154 }
155 } 155 }
156 } 156 }
157 </script> 157 </script>
158 </body> 158 </body>
159 </html> 159 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698