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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/touch-gesture-noscroll-body-yhidden.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 <script type="text/javascript"> 57 <script type="text/javascript">
58 58
59 var expectedGesturesTotal = 2; 59 var expectedGesturesTotal = 2;
60 var gesturesOccurred = 0; 60 var gesturesOccurred = 0;
61 var scrollAmountX = ['55', '97']; 61 var scrollAmountX = ['55', '97'];
62 var scrollAmountY = ['0', '0']; 62 var scrollAmountY = ['0', '0'];
63 var wheelEventsOccurred = 0; 63 var wheelEventsOccurred = 0;
64 var expectedWheelEventsOccurred = ['0', '0']; 64 var expectedWheelEventsOccurred = ['0', '0'];
65 var scrollEventsOccurred = 0; 65 var scrollEventsOccurred = 0;
66 var expectedScrollEventsOccurred = '1'; 66 var expectedScrollEventsOccurred = '1';
67 var scrolledElement = 'document.body' 67 var scrolledElement = 'document.documentElement'
68 68
69 // Always construct a page larger than the vertical height of the window. 69 // Always construct a page larger than the vertical height of the window.
70 function buildPage() 70 function buildPage()
71 { 71 {
72 // build vertical table 72 // build vertical table
73 var table = document.getElementById('vertical_table_to_fill'); 73 var table = document.getElementById('vertical_table_to_fill');
74 var targetHeight = document.body.offsetHeight; 74 var targetHeight = document.body.offsetHeight;
75 var cellPairHeight = table.offsetHeight; 75 var cellPairHeight = table.offsetHeight;
76 var numberOfReps = targetHeight / cellPairHeight * 2; 76 var numberOfReps = targetHeight / cellPairHeight * 2;
77 var i; 77 var i;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 firstGestureScroll(); 140 firstGestureScroll();
141 else 141 else
142 exitIfNecessary(); 142 exitIfNecessary();
143 } else { 143 } else {
144 debug("This test requires DumpRenderTree. Touch scroll the red rect to log."); 144 debug("This test requires DumpRenderTree. Touch scroll the red rect to log.");
145 } 145 }
146 } 146 }
147 </script> 147 </script>
148 </body> 148 </body>
149 </html> 149 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698