OLD | NEW |
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 Loading... |
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 Loading... |
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> |
OLD | NEW |