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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/touch-gesture-noscroll-body-yhidden.html

Issue 891523002: ScrollTopLeftInterop should not be marked experimental (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 5 years, 10 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 = ['55', '97']; 60 var scrollAmountX = ['55', '97'];
61 var scrollAmountY = ['0', '0']; 61 var scrollAmountY = ['0', '0'];
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.documentElement' 66 var scrolledElement = 'document.body'
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 63 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