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

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

Powered by Google App Engine
This is Rietveld 408576698