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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-scaled.html

Issue 2005193005: Disable fractional scroll feature by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@layout-test-fix
Patch Set: Fix tests Created 4 years, 7 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-scroll-div-scaled.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-scaled.html b/third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-scaled.html
index aa0438c15a00da430d4aa400e6c1b1205355a1f0..4f60a9ead1c958dcf64d02e2c1f8abe2f478deb8 100644
--- a/third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-scaled.html
+++ b/third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-scaled.html
@@ -117,17 +117,15 @@ function runTest()
description('This tests gesture event scrolling of an overflow div with page scale.');
if (checkTestDependencies()) {
- debug("set PreferCompositingToLCDTextEnabled false");
- window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
- scrollAmountX = ['45', '45'];
- scrollAmountY = ['0', '47'];
- firstGestureScroll();
-
- debug("set PreferCompositingToLCDTextEnabled true");
- window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
- scrollAmountX = ['90', '90'];
- scrollAmountY = ['47.5', '95'];
- gesturesOccurred = 0;
+ if (window.internals.runtimeFlags.fractionalScrollOffsetsEnabled) {
+ debug("fractional scroll mode");
+ window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
+ scrollAmountX = ['90', '90'];
+ scrollAmountY = ['47.5', '95'];
+ } else {
+ scrollAmountX = ['45', '45'];
+ scrollAmountY = ['0', '47'];
+ }
firstGestureScroll();
} else
exitIfNecessary();

Powered by Google App Engine
This is Rietveld 408576698