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

Unified Diff: Source/core/page/scrolling/ScrollStateTest.cpp

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
« no previous file with comments | « Source/core/page/scrolling/ScrollState.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/scrolling/ScrollStateTest.cpp
diff --git a/Source/core/page/scrolling/ScrollStateTest.cpp b/Source/core/page/scrolling/ScrollStateTest.cpp
index 8e12fe4ff858584a21da5dd6ee9a6c54d41ebe76..fec8709c6c7c9a097830f5cac79741f3c49ba81a 100644
--- a/Source/core/page/scrolling/ScrollStateTest.cpp
+++ b/Source/core/page/scrolling/ScrollStateTest.cpp
@@ -63,4 +63,17 @@ TEST_F(ScrollStateTest, CurrentNativeScrollingElement)
EXPECT_EQ(element, scrollState->currentNativeScrollingElement());
}
+TEST_F(ScrollStateTest, FullyConsumed)
+{
+ RefPtrWillBeRawPtr<ScrollState> scrollStateBegin =
+ ScrollState::create(0, 0, 0, 0, 0, false, true, false);
+ RefPtrWillBeRawPtr<ScrollState> scrollState =
+ ScrollState::create(0, 0, 0, 0, 0, false, false, false);
+ RefPtrWillBeRawPtr<ScrollState> scrollStateEnd =
+ ScrollState::create(0, 0, 0, 0, 0, false, false, true);
+ EXPECT_FALSE(scrollStateBegin->fullyConsumed());
+ EXPECT_TRUE(scrollState->fullyConsumed());
+ EXPECT_FALSE(scrollStateEnd->fullyConsumed());
+}
+
}
« no previous file with comments | « Source/core/page/scrolling/ScrollState.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698