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

Unified Diff: LayoutTests/fast/scroll-behavior/scroll-customization/scrollstate-basic.html

Issue 988823003: Use scroll customization primitives for touch scrolling (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address rbyers' nit. Created 5 years, 9 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: LayoutTests/fast/scroll-behavior/scroll-customization/scrollstate-basic.html
diff --git a/LayoutTests/fast/scroll-behavior/scroll-customization/scrollstate-basic.html b/LayoutTests/fast/scroll-behavior/scroll-customization/scrollstate-basic.html
index b9a2173a8f4bafd6f04fe82e3ca720c53822adad..6fe3caf1c67bc107ad7bd3e946e0beddc4442158 100644
--- a/LayoutTests/fast/scroll-behavior/scroll-customization/scrollstate-basic.html
+++ b/LayoutTests/fast/scroll-behavior/scroll-customization/scrollstate-basic.html
@@ -23,6 +23,7 @@ test(function() {
assert_equals(scrollState.velocityX, 0);
assert_equals(scrollState.velocityY, 0);
assert_equals(scrollState.inInertialPhase, false);
+ assert_equals(scrollState.isBeginning, false);
assert_equals(scrollState.isEnding, false);
assert_equals(scrollState.fromUserInput, false);
assert_equals(scrollState.shouldPropagate, true);
@@ -35,15 +36,17 @@ test(function() {
var velocityX = 23.7;
var velocityY = 2.5;
var inInertialPhase = true;
+ var isBeginning = true;
var isEnding = true;
var scrollState = new ScrollState(deltaX, deltaY, deltaGranularity, velocityX,
- velocityY, inInertialPhase, isEnding);
+ velocityY, inInertialPhase, isBeginning, isEnding);
assert_equals(scrollState.deltaX, deltaX);
assert_equals(scrollState.deltaY, deltaY);
assert_equals(scrollState.deltaGranularity, deltaGranularity);
assert_equals(scrollState.velocityX, velocityX);
assert_equals(scrollState.velocityY, velocityY);
assert_equals(scrollState.inInertialPhase, inInertialPhase);
+ assert_equals(scrollState.isBeginning, isBeginning);
assert_equals(scrollState.isEnding, isEnding);
assert_equals(scrollState.fromUserInput, false);
assert_equals(scrollState.shouldPropagate, true);

Powered by Google App Engine
This is Rietveld 408576698