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

Unified Diff: third_party/WebKit/Source/web/tests/WebViewTest.cpp

Issue 2784783002: DNS: Testing for [blink] Support (semi-)transparent background colors.
Patch Set: test with !hasAlpha instead of alpha > 0 Created 3 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
Index: third_party/WebKit/Source/web/tests/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index 7a229f3c9a29299a7b7e9ae5f6b2f48c1776aa80..b3067979eb1c386f5cc4135a1063fc0db12c6cb2 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -434,12 +434,12 @@ TEST_P(WebViewTest, SetBaseBackgroundColor) {
frame->document()->shutdown();
// Creating a new frame view with the background color having 0 alpha.
- frame->createView(IntSize(1024, 768), Color::transparent, true);
+ frame->createView(IntSize(1024, 768), Color::transparent);
EXPECT_EQ(kTransparent, frame->view()->baseBackgroundColor());
frame->view()->dispose();
const Color transparentRed(100, 0, 0, 0);
- frame->createView(IntSize(1024, 768), transparentRed, true);
+ frame->createView(IntSize(1024, 768), transparentRed);
EXPECT_EQ(transparentRed, frame->view()->baseBackgroundColor());
frame->view()->dispose();
}
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | third_party/WebKit/public/platform/WebLayerTreeView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698