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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 <script type="text/javascript"> | 63 <script type="text/javascript"> |
64 | 64 |
65 var expectedGesturesTotal = 2; | 65 var expectedGesturesTotal = 2; |
66 var gesturesOccurred = 0; | 66 var gesturesOccurred = 0; |
67 var scrollAmountX = ['0', '0']; | 67 var scrollAmountX = ['0', '0']; |
68 var scrollAmountY = ['0', '0']; | 68 var scrollAmountY = ['0', '0']; |
69 var wheelEventsOccurred = 0; | 69 var wheelEventsOccurred = 0; |
70 var expectedWheelEventsOccurred = ['0', '0']; | 70 var expectedWheelEventsOccurred = ['0', '0']; |
71 var scrollEventsOccurred = 0; | 71 var scrollEventsOccurred = 0; |
72 var expectedScrollEventsOccurred = '0'; | 72 var expectedScrollEventsOccurred = '0'; |
73 var scrolledElement = 'document.body' | 73 var scrolledElement = 'document.documentElement'; |
74 | 74 |
75 // Always construct a page larger than the vertical height of the window. | 75 // Always construct a page larger than the vertical height of the window. |
76 function buildPage() | 76 function buildPage() |
77 { | 77 { |
78 var table = document.getElementById('table_to_fill'); | 78 var table = document.getElementById('table_to_fill'); |
79 var targetHeight = document.body.offsetHeight; | 79 var targetHeight = document.body.offsetHeight; |
80 var cellPairHeight = table.offsetHeight; | 80 var cellPairHeight = table.offsetHeight; |
81 var numberOfReps = targetHeight / cellPairHeight * 2; | 81 var numberOfReps = targetHeight / cellPairHeight * 2; |
82 var i; | 82 var i; |
83 for (i = 0; i < numberOfReps; i++) { | 83 for (i = 0; i < numberOfReps; i++) { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 successfullyParsed = true; | 150 successfullyParsed = true; |
151 isSuccessfullyParsed(); | 151 isSuccessfullyParsed(); |
152 if (window.testRunner) | 152 if (window.testRunner) |
153 testRunner.notifyDone(); | 153 testRunner.notifyDone(); |
154 } | 154 } |
155 } | 155 } |
156 } | 156 } |
157 </script> | 157 </script> |
158 </body> | 158 </body> |
159 </html> | 159 </html> |
OLD | NEW |