Fix test results after r262733.
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Jun 2020 21:34:46 +0000 (21:34 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Jun 2020 21:34:46 +0000 (21:34 +0000)
* TestWebKitAPI/Tests/WebCore/ColorTests.cpp:
(TestWebKitAPI::TEST):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@262740 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebCore/ColorTests.cpp

index b14f336..773d29d 100644 (file)
@@ -1,3 +1,10 @@
+2020-06-08  Sam Weinig  <weinig@apple.com>
+
+        Fix test results after r262733.
+
+        * TestWebKitAPI/Tests/WebCore/ColorTests.cpp:
+        (TestWebKitAPI::TEST):
+
 2020-06-08  David Kilzer  <ddkilzer@apple.com>
 
         [IPC] Adopt enum class for DragOperation
index 493f4ae..7eb329f 100644 (file)
@@ -220,15 +220,15 @@ TEST(Color, Luminance)
     EXPECT_EQ(c.blueComponent(), 160);
 
     auto cLigtened = Color(c).lighten().toSRGBASimpleColorLossy();
-    EXPECT_FLOAT_EQ(Color(cLigtened).luminance(), 0.29229724);
+    EXPECT_FLOAT_EQ(Color(cLigtened).luminance(), 0.29168808);
     EXPECT_EQ(cLigtened.redComponent(), 130);
     EXPECT_EQ(cLigtened.greenComponent(), 137);
-    EXPECT_EQ(cLigtened.blueComponent(), 245);
+    EXPECT_EQ(cLigtened.blueComponent(), 244);
 
     auto cDarken = Color(c).darken().toSRGBASimpleColorLossy();
-    EXPECT_FLOAT_EQ(Color(cDarken).luminance(), 0.026288476);
+    EXPECT_FLOAT_EQ(Color(cDarken).luminance(), 0.027006727);
     EXPECT_EQ(cDarken.redComponent(), 40);
-    EXPECT_EQ(cDarken.greenComponent(), 42);
+    EXPECT_EQ(cDarken.greenComponent(), 43);
     EXPECT_EQ(cDarken.blueComponent(), 76);
 }