Index: Source/WebKit/chromium/tests/GraphicsLayerChromiumTest.cpp |
=================================================================== |
--- Source/WebKit/chromium/tests/GraphicsLayerChromiumTest.cpp (revision 147437) |
+++ Source/WebKit/chromium/tests/GraphicsLayerChromiumTest.cpp (working copy) |
@@ -147,4 +147,16 @@ |
EXPECT_EQ(scrollPosition, WebPoint(scrollableArea.scrollPosition())); |
} |
+TEST_F(GraphicsLayerChromiumTest, setContentsToSolidColor) |
+{ |
+ m_graphicsLayer->setContentsToSolidColor(Color::transparent); |
+ EXPECT_FALSE(m_graphicsLayer->contentsLayer()); |
+ |
+ m_graphicsLayer->setContentsToSolidColor(Color::white); |
+ EXPECT_TRUE(m_graphicsLayer->contentsLayer()); |
+ |
+ m_graphicsLayer->setContentsToSolidColor(Color()); |
+ EXPECT_FALSE(m_graphicsLayer->contentsLayer()); |
+} |
+ |
} // namespace |