Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-fling-with-page-scale.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-fling-with-page-scale.html b/third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-fling-with-page-scale.html |
| index 59a5092756de4076e8012f7ed257e044fb5e74e7..f605f91889e04b0a0deaa377756e592901b08c97 100644 |
| --- a/third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-fling-with-page-scale.html |
| +++ b/third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-fling-with-page-scale.html |
| @@ -84,6 +84,10 @@ |
| } |
| var setContainerDoesntScrollExpectation = function() { |
| + // Scrolling just the visual viewport doesn't trigger scroll events. Thus, |
| + // we scroll the layout viewport before the fling so that the fling triggers |
| + // the scrollHandler. |
| + window.scrollTo(10, 10); |
|
bokan
2015/10/21 21:48:36
I'm a bit worried that this could cause flakiness
|
| window.addEventListener("scroll", scrollHandler); |
| checkExpectation = function() { |
| shouldBe('verticalContainer.scrollTop', 'fullyScrolled'); |
| @@ -188,6 +192,10 @@ |
| </script> |
| <style> |
| + body { |
| + width: 1000px; |
| + height: 1000px; |
| + } |
| .verticalContainer { |
| position: absolute; |
| left: 350px; |