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

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

Issue 2608423002: Fix RGBA alpha parsing and serialization to adhere to W3 standard. (Closed)
Patch Set: Rebaseline expectations for win and mac Created 3 years, 11 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 f190ac91c5137284e4e0baf55c96739e5a043074..ae766ab914d3fc80c891cf4779b16dd9ff020a51 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -394,11 +394,11 @@ TEST_P(WebViewTest, SetBaseBackgroundColor) {
"style></head></html>",
baseURL);
// Expected: red (50% alpha) blended atop base of kBlue.
- EXPECT_EQ(0xFF7F0080, webView->backgroundColor());
+ EXPECT_EQ(0xFF80007F, webView->backgroundColor());
webView->setBaseBackgroundColor(kTranslucentPutty);
// Expected: red (50% alpha) blended atop kTranslucentPutty. Note the alpha.
- EXPECT_EQ(0xBFE93B32, webView->backgroundColor());
+ EXPECT_EQ(0xBFE93A31, webView->backgroundColor());
webView->setBaseBackgroundColor(kTransparent);
FrameTestHelpers::loadHTMLString(webView->mainFrame(),

Powered by Google App Engine
This is Rietveld 408576698