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 = ['0', '0']; | 62 var scrollAmountY = ['0', '0']; |
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 = '0'; | 66 var expectedScrollEventsOccurred = '0'; |
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 successfullyParsed = true; | 157 successfullyParsed = true; |
158 isSuccessfullyParsed(); | 158 isSuccessfullyParsed(); |
159 if (window.testRunner) | 159 if (window.testRunner) |
160 testRunner.notifyDone(); | 160 testRunner.notifyDone(); |
161 } | 161 } |
162 } | 162 } |
163 } | 163 } |
164 </script> | 164 </script> |
165 </body> | 165 </body> |
166 </html> | 166 </html> |
OLD | NEW |