| 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 ::-webkit-scrollbar { | 7 ::-webkit-scrollbar { |
| 8 width: 0px; | 8 width: 0px; |
| 9 height: 0px; | 9 height: 0px; |
| 10 } | 10 } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 <script type="text/javascript"> | 74 <script type="text/javascript"> |
| 75 | 75 |
| 76 var touchtarget; | 76 var touchtarget; |
| 77 var expectedGesturesTotal = 2; | 77 var expectedGesturesTotal = 2; |
| 78 var gesturesOccurred = 0; | 78 var gesturesOccurred = 0; |
| 79 var scrollAmountX = ['0', '0']; | 79 var scrollAmountX = ['0', '0']; |
| 80 var scrollAmountY = ['0', '160']; | 80 var scrollAmountY = ['0', '160']; |
| 81 var wheelEventsOccurred = 0; | 81 var wheelEventsOccurred = 0; |
| 82 var expectedWheelEventsOccurred = ['0', '0']; | 82 var expectedWheelEventsOccurred = ['0', '0']; |
| 83 var scrollEventsOccurred = 0; | 83 var scrollEventsOccurred = 0; |
| 84 var scrolledElement = 'document.documentElement' | 84 var scrolledElement = 'document.body' |
| 85 var scrollEventsOccurred = 0; | 85 var scrollEventsOccurred = 0; |
| 86 var expectedScrollEventsOccurred = '1'; | 86 var expectedScrollEventsOccurred = '1'; |
| 87 | 87 |
| 88 // Always construct a page larger than the vertical height of the window. | 88 // Always construct a page larger than the vertical height of the window. |
| 89 function buildPage() | 89 function buildPage() |
| 90 { | 90 { |
| 91 var table = document.getElementById('table_to_fill'); | 91 var table = document.getElementById('table_to_fill'); |
| 92 var targetHeight = document.body.offsetHeight; | 92 var targetHeight = document.body.offsetHeight; |
| 93 var cellPairHeight = table.offsetHeight; | 93 var cellPairHeight = table.offsetHeight; |
| 94 var numberOfReps = targetHeight / cellPairHeight * 2; | 94 var numberOfReps = targetHeight / cellPairHeight * 2; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 } else { | 146 } else { |
| 147 debug("This test requires DumpRenderTree. Gesture-scroll the page to va
lidate the implementation."); | 147 debug("This test requires DumpRenderTree. Gesture-scroll the page to va
lidate the implementation."); |
| 148 } | 148 } |
| 149 } | 149 } |
| 150 </script> | 150 </script> |
| 151 | 151 |
| 152 | 152 |
| 153 | 153 |
| 154 </body> | 154 </body> |
| 155 </html> | 155 </html> |
| OLD | NEW |