OLD | NEW |
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 Loading... |
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', '0']; | 81 var scrollAmountY = ['0', '0']; |
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 } else { | 148 } else { |
149 debug("This test requires DumpRenderTree. Gesture-scroll the page to va
lidate the implementation."); | 149 debug("This test requires DumpRenderTree. Gesture-scroll the page to va
lidate the implementation."); |
150 } | 150 } |
151 } | 151 } |
152 </script> | 152 </script> |
153 | 153 |
154 | 154 |
155 | 155 |
156 </body> | 156 </body> |
157 </html> | 157 </html> |
OLD | NEW |