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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/scale-and-scroll-div.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/scale-and-scroll-div-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/events/scale-and-scroll-div.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/scale-and-scroll-div.html b/third_party/WebKit/LayoutTests/fast/events/scale-and-scroll-div.html
index 07ced471a480a743cc3722b51c909e81ba3a9066..05fd4ba3dd65303723dd0f0870681db65b92795b 100644
--- a/third_party/WebKit/LayoutTests/fast/events/scale-and-scroll-div.html
+++ b/third_party/WebKit/LayoutTests/fast/events/scale-and-scroll-div.html
@@ -27,7 +27,7 @@
var scrollDistance = 10;
var expectedScrollDistance;
var scrollBox;
- var integerScrollOffset = false;
+ var integerScrollOffset = true;
function scroll(scaleFactor) {
if (integerScrollOffset)
@@ -88,12 +88,10 @@
if (window.eventSender && window.internals) {
description('This tests that a div scrolled by gesture touch while the page is scaled still scrolls at the rate of the touch');
- window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
- integerScrollOffset = false;
- test();
-
- window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
- integerScrollOffset = true;
+ if (window.internals.runtimeFlags.fractionalScrollOffsetsEnabled) {
+ window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
+ integerScrollOffset = false;
+ }
test();
} else {
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/scale-and-scroll-div-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698