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()); |
+} |
+ |
} |