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 #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 Loading... |
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 = ['0', '0']; | 61 var scrollAmountX = ['0', '0']; |
62 var scrollAmountY = ['110', '205']; | 62 var scrollAmountY = ['110', '205']; |
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 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 |