| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 eventSender.gestureScrollUpdate(0, -40); | 97 eventSender.gestureScrollUpdate(0, -40); |
| 98 eventSender.gestureScrollEnd(0, 0); | 98 eventSender.gestureScrollEnd(0, 0); |
| 99 | 99 |
| 100 // Wait for layout. | 100 // Wait for layout. |
| 101 checkScrollOffset(); | 101 checkScrollOffset(); |
| 102 } | 102 } |
| 103 | 103 |
| 104 function secondGestureScroll() | 104 function secondGestureScroll() |
| 105 { | 105 { |
| 106 debug("second gesture"); | 106 debug("second gesture"); |
| 107 eventSender.gestureScrollBegin(800, 40); | 107 eventSender.gestureScrollBegin(799, 40); |
| 108 eventSender.gestureScrollUpdate(0, -30); | 108 eventSender.gestureScrollUpdate(0, -30); |
| 109 eventSender.gestureScrollUpdate(0, -30); | 109 eventSender.gestureScrollUpdate(0, -30); |
| 110 eventSender.gestureScrollEnd(0, 0); | 110 eventSender.gestureScrollEnd(0, 0); |
| 111 | 111 |
| 112 // Wait for layout. | 112 // Wait for layout. |
| 113 checkScrollOffset(); | 113 checkScrollOffset(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 if (window.testRunner) | 116 if (window.testRunner) |
| 117 testRunner.waitUntilDone(); | 117 testRunner.waitUntilDone(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 128 } else { | 128 } else { |
| 129 debug("This test requires DumpRenderTree. Gesture-scroll the page to va
lidate the implementation."); | 129 debug("This test requires DumpRenderTree. Gesture-scroll the page to va
lidate the implementation."); |
| 130 } | 130 } |
| 131 } | 131 } |
| 132 </script> | 132 </script> |
| 133 | 133 |
| 134 | 134 |
| 135 | 135 |
| 136 </body> | 136 </body> |
| 137 </html> | 137 </html> |
| OLD | NEW |