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 | 7 |
8 ::-webkit-scrollbar { | 8 ::-webkit-scrollbar { |
9 width: 0px; | 9 width: 0px; |
10 height: 0px; | 10 height: 0px; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 debug("first gesture"); | 73 debug("first gesture"); |
74 eventSender.gestureScrollBegin(10, 72); | 74 eventSender.gestureScrollBegin(10, 72); |
75 // Prevent scroll to propagate by passing true for third parameter | 75 // Prevent scroll to propagate by passing true for third parameter |
76 eventSender.gestureScrollUpdate(0, -700, true); | 76 eventSender.gestureScrollUpdate(0, -700, true); |
77 eventSender.gestureScrollUpdate(0, -100, true); | 77 eventSender.gestureScrollUpdate(0, -100, true); |
78 eventSender.gestureScrollUpdate(0, -70, true); | 78 eventSender.gestureScrollUpdate(0, -70, true); |
79 eventSender.gestureScrollUpdate(0, -10, true); | 79 eventSender.gestureScrollUpdate(0, -10, true); |
80 eventSender.gestureScrollEnd(0, 0); | 80 eventSender.gestureScrollEnd(0, 0); |
81 | 81 |
82 // Make sure the actual iframe got fully scrolled | 82 // Make sure the actual iframe got fully scrolled |
83 shouldBe('iframeBody.scrollHeight - iframeDocumentElement.scrollTop', 'ifram
e.clientHeight'); | 83 shouldBe('iframeBody.scrollHeight - iframeBody.scrollTop', 'iframe.clientHei
ght'); |
84 | 84 |
85 // Wait for layout. | 85 // Wait for layout. |
86 checkScrollOffset(); | 86 checkScrollOffset(); |
87 } | 87 } |
88 | 88 |
89 if (window.testRunner) | 89 if (window.testRunner) |
90 testRunner.waitUntilDone(); | 90 testRunner.waitUntilDone(); |
91 | 91 |
92 function runTest() | 92 function runTest() |
93 { | 93 { |
(...skipping 14 matching lines...) Expand all Loading... |
108 } else { | 108 } else { |
109 debug("This test requires DumpRenderTree. Gesture-scroll the page to va
lidate the implementation."); | 109 debug("This test requires DumpRenderTree. Gesture-scroll the page to va
lidate the implementation."); |
110 } | 110 } |
111 } | 111 } |
112 </script> | 112 </script> |
113 | 113 |
114 | 114 |
115 | 115 |
116 </body> | 116 </body> |
117 </html> | 117 </html> |
OLD | NEW |