Chromium Code Reviews| Index: Source/WebKit/chromium/tests/ScrollAnimatorNoneTest.cpp |
| diff --git a/Source/WebKit/chromium/tests/ScrollAnimatorNoneTest.cpp b/Source/WebKit/chromium/tests/ScrollAnimatorNoneTest.cpp |
| index 1ec39a0d51e28da2bc1ccbc7a8c672a11e9a2bfa..d6e6a04bc7d4d423656801b5950f61bff36974e0 100644 |
| --- a/Source/WebKit/chromium/tests/ScrollAnimatorNoneTest.cpp |
| +++ b/Source/WebKit/chromium/tests/ScrollAnimatorNoneTest.cpp |
| @@ -117,6 +117,8 @@ TEST(ScrollAnimatorEnabled, Enabled) |
| MockScrollAnimatorNone scrollAnimatorNone(&scrollableArea); |
| EXPECT_CALL(scrollableArea, scrollSize(_)).Times(AtLeast(1)).WillRepeatedly(Return(1000)); |
| + EXPECT_CALL(scrollableArea, minimumScrollPosition()).Times(AtLeast(1)).WillRepeatedly(Return(IntPoint())); |
| + EXPECT_CALL(scrollableArea, maximumScrollPosition()).Times(AtLeast(1)).WillRepeatedly(Return(IntPoint(1000, 1000))); |
| EXPECT_CALL(scrollableArea, setScrollOffset(_)).Times(4); |
| scrollAnimatorNone.scroll(HorizontalScrollbar, ScrollByLine, 100, 1); |
| @@ -149,7 +151,9 @@ TEST(ScrollAnimatorEnabled, Disabled) |
| MockScrollableArea scrollableArea(false); |
| MockScrollAnimatorNone scrollAnimatorNone(&scrollableArea); |
| - EXPECT_CALL(scrollableArea, scrollSize(_)).Times(AtLeast(1)).WillRepeatedly(Return(1000)); |
| +// EXPECT_CALL(scrollableArea, scrollSize(_)).Times(AtLeast(1)).WillRepeatedly(Return(1000)); |
|
jamesr
2013/05/07 03:33:31
delete this line if you don't want it, don't just
|
| + EXPECT_CALL(scrollableArea, minimumScrollPosition()).Times(AtLeast(1)).WillRepeatedly(Return(IntPoint())); |
| + EXPECT_CALL(scrollableArea, maximumScrollPosition()).Times(AtLeast(1)).WillRepeatedly(Return(IntPoint(1000, 1000))); |
| EXPECT_CALL(scrollableArea, setScrollOffset(_)).Times(4); |
| scrollAnimatorNone.scroll(HorizontalScrollbar, ScrollByLine, 100, 1); |