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"); |