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

Unified Diff: third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-customization/scrollstate-consume-deltas.html

Issue 1646663002: Refactor Scroll Customization to share cc::ScrollStateData with blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix linking. Created 4 years, 10 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/scroll-behavior/scroll-customization/scrollstate-consume-deltas.html
diff --git a/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-customization/scrollstate-consume-deltas.html b/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-customization/scrollstate-consume-deltas.html
index f37b597e89b3dc0ffa2dfa339d26f8ba18f95177..5120022ad52fc18f76d4f98b097bb57a28bb12cc 100644
--- a/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-customization/scrollstate-consume-deltas.html
+++ b/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-customization/scrollstate-consume-deltas.html
@@ -20,7 +20,7 @@ test(function() {
}, "These tests only work with scroll customization enabled.");
if ('ScrollState' in window) {
- var scrollState = new ScrollState(10, -20);
+ var scrollState = new ScrollState({deltaX: 10, deltaY: -20});
deltaShouldBe(scrollState, 10, -20, "Unconsumed deltas");
scrollState.consumeDelta(2, -3);
deltaShouldBe(scrollState, 8, -17, "Partially consumed deltas");

Powered by Google App Engine
This is Rietveld 408576698