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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp

Issue 2123053002: Improve scroll anchoring's interactions with the visual viewport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix broken tests Created 4 years, 5 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/Source/platform/scroll/ScrollAnimatorTest.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp
index 1a8fb974ba18712e52eb7276db458f7797a3324b..c3436cef2669b7828cf2923cf10f3649af17856f 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp
@@ -627,9 +627,8 @@ TEST(ScrollAnimatorTest, MainThreadAnimationTargetAdjustment)
EXPECT_GT(pos.y(), 0);
// Adjustment
- IntSize adjustment = IntSize(10, -10);
- animator->adjustAnimationAndSetScrollPosition(adjustment, AnchoringScroll);
- EXPECT_EQ(pos + FloatSize(adjustment), animator->currentPosition());
+ FloatPoint newPos = pos + FloatSize(10, -10);
+ animator->adjustAnimationAndSetScrollPosition(newPos, AnchoringScroll);
EXPECT_EQ(FloatPoint(110, 90), animator->desiredTargetPosition());
// Animation finished

Powered by Google App Engine
This is Rietveld 408576698