From 8c5e046574b23b23e964d639b6c3fc99e8eefd6d Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 21 May 2023 04:48:46 +0200 Subject: [PATCH] testsuite: Adapt color-matrix testcase Make it use an alpha value that is well defined, ie 0.4 instead of 0.5. 0.4 * 255 = 102 0.5 * 255 = 127.5 This avoids rounding issues where some math may cause the resulting alpha value to be 127, and some other math ends up with 128. --- .../gsk/compare/color-matrix-identity.node | 2 +- testsuite/gsk/compare/color-matrix-identity.png | Bin 162 -> 145 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/gsk/compare/color-matrix-identity.node b/testsuite/gsk/compare/color-matrix-identity.node index a81a474ad0..9498d08ba2 100644 --- a/testsuite/gsk/compare/color-matrix-identity.node +++ b/testsuite/gsk/compare/color-matrix-identity.node @@ -1,7 +1,7 @@ color-matrix { child: color { bounds: 0 0 50 50; - color: rgba(255, 0, 0, 0.5); + color: rgba(255, 0, 0, 0.4); } matrix: none; offset: 0 0 0 0; diff --git a/testsuite/gsk/compare/color-matrix-identity.png b/testsuite/gsk/compare/color-matrix-identity.png index f88dc6ac79dd429676eca7c10aa9b0e37bff66d5..7fcb5001c7f0847b370c10d3f0b84529c8c5b962 100644 GIT binary patch delta 74 zcmZ3)IFWIJifV+Xi(^Pe ei8X@aJy&WbSu>tATP7pH00f?{elF{r5}E*x6dj}h delta 89 zcmbQpxQKCriWysyx4R3&e-K=-cll%n28M7?7srr{#<%Aic^ec24jh<%@@C9*g@uOY s!duQ;Z+^~x?QKKw#0Zs%+5Dn*eTNwzTOQVa1=Pmi>FVdQ&MBb@08>CD4gdfE