| Index: third_party/WebKit/Source/core/frame/FrameViewTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameViewTest.cpp b/third_party/WebKit/Source/core/frame/FrameViewTest.cpp
|
| index 5438ffa3f6faa0fd4d4b988dacfb5034e893a72a..9cb516b93f47261f07c1969bf5ec4c2dc44654fa 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameViewTest.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameViewTest.cpp
|
| @@ -167,5 +167,15 @@ TEST_P(FrameViewTest, HideTooltipWhenScrollPositionChanges)
|
| document().view()->layoutViewportScrollableArea()->setScrollPosition(DoublePoint(1, 1), UserScroll);
|
| }
|
|
|
| +// NoOverflowInIncrementVisuallyNonEmptyPixelCount tests fail if the number of
|
| +// pixels is calculated in 32-bit integer, because 65536 * 65536 would become 0
|
| +// if it was calculated in 32-bit and thus it would be considered as empty.
|
| +TEST_P(FrameViewTest, NoOverflowInIncrementVisuallyNonEmptyPixelCount)
|
| +{
|
| + EXPECT_FALSE(document().view()->isVisuallyNonEmpty());
|
| + document().view()->incrementVisuallyNonEmptyPixelCount(IntSize(65536, 65536));
|
| + EXPECT_TRUE(document().view()->isVisuallyNonEmpty());
|
| +}
|
| +
|
| } // namespace
|
| } // namespace blink
|
|
|