| Index: third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp
|
| diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp b/third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp
|
| index 11d2da155aa43835d8a50695a46132714e28d7aa..a12ccb88eea6ebaa1d1e10ed474dd8d075621d90 100644
|
| --- a/third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp
|
| +++ b/third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "platform/scroll/ScrollableArea.h"
|
|
|
| +#include "platform/graphics/Color.h"
|
| #include "platform/graphics/GraphicsLayer.h"
|
| #include "platform/scroll/ScrollbarTheme.h"
|
| #include "platform/scroll/ScrollbarThemeMock.h"
|
| @@ -280,4 +281,15 @@ TEST_F(ScrollableAreaTest, InvalidatesCompositedScrollbarsIfPartsNeedRepaint)
|
| Heap::collectAllGarbage();
|
| }
|
|
|
| +TEST_F(ScrollableAreaTest, RecalculatesScrollbarOverlayIfBackgroundChanges)
|
| +{
|
| + OwnPtrWillBeRawPtr<MockScrollableArea> scrollableArea = MockScrollableArea::create(IntPoint(0, 100));
|
| +
|
| + EXPECT_EQ(ScrollbarOverlayStyleDefault, scrollableArea->scrollbarOverlayStyle());
|
| + scrollableArea->recalculateScrollbarOverlayStyle(Color(34, 85, 51));
|
| + EXPECT_EQ(ScrollbarOverlayStyleLight, scrollableArea->scrollbarOverlayStyle());
|
| + scrollableArea->recalculateScrollbarOverlayStyle(Color(236, 143, 185));
|
| + EXPECT_EQ(ScrollbarOverlayStyleDefault, scrollableArea->scrollbarOverlayStyle());
|
| +}
|
| +
|
| } // namespace blink
|
|
|