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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 </table> | 70 </table> |
71 | 71 |
72 <p id="description"></p> | 72 <p id="description"></p> |
73 <div id="console"></div> | 73 <div id="console"></div> |
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', '0']; |
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.scrollingElement' | 84 var scrolledElement = 'document.scrollingElement' |
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 { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 testRunner.waitUntilDone(); | 130 testRunner.waitUntilDone(); |
131 | 131 |
132 function runTest() | 132 function runTest() |
133 { | 133 { |
134 buildPage(); | 134 buildPage(); |
135 touchtarget = document.getElementById('touchtargetdiv'); | 135 touchtarget = document.getElementById('touchtargetdiv'); |
136 touchtarget.addEventListener("scroll", recordScroll); | 136 touchtarget.addEventListener("scroll", recordScroll); |
137 touchtarget.addEventListener("mousewheel", recordWheel); | 137 touchtarget.addEventListener("mousewheel", recordWheel); |
138 | 138 |
139 if (window.eventSender) { | 139 if (window.eventSender) { |
140 description('This tests that a gesture scroll is propagated from a div '
+ | 140 description('This tests that a gesture scroll isn\'t propagated from a d
iv ' + |
141 'to the page when the div has no remaining scroll offset.'); | 141 'to the page when the div has no remaining scroll offset.'); |
142 if (checkTestDependencies()) | 142 if (checkTestDependencies()) |
143 firstGestureScroll(); | 143 firstGestureScroll(); |
144 else | 144 else |
145 exitIfNecessary(); | 145 exitIfNecessary(); |
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 |