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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 { | 118 { |
119 debug("second gesture"); | 119 debug("second gesture"); |
120 eventSender.gestureScrollBegin(120, 255); | 120 eventSender.gestureScrollBegin(120, 255); |
121 eventSender.gestureScrollUpdate(-42, -95); | 121 eventSender.gestureScrollUpdate(-42, -95); |
122 eventSender.gestureScrollEnd(0, 0); | 122 eventSender.gestureScrollEnd(0, 0); |
123 | 123 |
124 // Wait for layout. | 124 // Wait for layout. |
125 checkScrollOffset(); | 125 checkScrollOffset(); |
126 } | 126 } |
127 | 127 |
| 128 window.jsTestIsAsync = true; |
128 if (window.testRunner) | 129 if (window.testRunner) |
129 testRunner.waitUntilDone(); | 130 testRunner.waitUntilDone(); |
130 | 131 |
131 function runTest() | 132 function runTest() |
132 { | 133 { |
133 buildPage(); | 134 buildPage(); |
134 if (window.eventSender) { | 135 if (window.eventSender) { |
135 description('This tests that a page cannot be scrolled vertically with t
ouch ' + | 136 description('This tests that a page cannot be scrolled vertically with t
ouch ' + |
136 '(but can still be scrolled horizontally) if its body has st
yle overflow-y:hidden. ' + | 137 '(but can still be scrolled horizontally) if its body has st
yle overflow-y:hidden. ' + |
137 'The scroll events in this test have both an x and y compone
nt.'); | 138 'The scroll events in this test have both an x and y compone
nt.'); |
138 | 139 |
139 if (checkTestDependencies()) | 140 if (checkTestDependencies()) |
140 firstGestureScroll(); | 141 firstGestureScroll(); |
141 else | 142 else |
142 exitIfNecessary(); | 143 exitIfNecessary(); |
143 } else { | 144 } else { |
144 debug("This test requires DumpRenderTree. Touch scroll the red rect to
log."); | 145 debug("This test requires DumpRenderTree. Touch scroll the red rect to
log."); |
145 } | 146 } |
146 } | 147 } |
147 </script> | 148 </script> |
148 </body> | 149 </body> |
149 </html> | 150 </html> |
OLD | NEW |