Index: Source/platform/graphics/GraphicsLayerTest.cpp |
diff --git a/Source/platform/graphics/GraphicsLayerTest.cpp b/Source/platform/graphics/GraphicsLayerTest.cpp |
index df17919d04ca8431f22eb141a1d539ecc0ae8054..ea9bf233998f03bbc6c9a007069bb933d45b5291 100644 |
--- a/Source/platform/graphics/GraphicsLayerTest.cpp |
+++ b/Source/platform/graphics/GraphicsLayerTest.cpp |
@@ -157,11 +157,12 @@ TEST_F(GraphicsLayerTest, applyScrollToScrollableArea) |
FakeScrollableArea scrollableArea; |
m_graphicsLayer->setScrollableArea(&scrollableArea, false); |
- WebPoint scrollPosition(7, 9); |
- m_platformLayer->setScrollPosition(scrollPosition); |
+ WebDoublePoint scrollPosition(7, 9); |
Rick Byers
2014/10/04 00:04:24
Can you change these to be fractional, just to ver
Yufeng Shen (Slow to review)
2014/10/06 17:54:58
Done.
|
+ m_platformLayer->setScrollPositionDouble(scrollPosition); |
m_graphicsLayer->didScroll(); |
- EXPECT_EQ(scrollPosition, WebPoint(scrollableArea.scrollPosition())); |
+ EXPECT_EQ(scrollPosition.x, scrollableArea.scrollPositionDouble().x()); |
+ EXPECT_EQ(scrollPosition.y, scrollableArea.scrollPositionDouble().y()); |
} |
} // namespace |