Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-fling-with-page-scale.html

Issue 1415513002: Remove plumbing for inert-visual-viewport flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keeping "inertVisualViewport" setting + fixed broken test Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698