Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: Source/WebKit/chromium/tests/GraphicsLayerChromiumTest.cpp

Issue 13430007: Merge 147178 "[Chromium] Don't create SolidColorLayer for full t..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1453/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698