From 59a867d3e3a2379844a3a9db4fcfaf76e7aaf0ad Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Wed, 16 Jul 2025 12:14:09 +0200 Subject: [PATCH] Tests: Enable all screenshot tests on all platforms With the newly supported fuzzy matching in our test-web runner, we can now define the expected maximum color channel and pixel count errors per failing test and set a baseline they should not exceed. The figures I added to these tests all come from my macOS M4 machine. Most discrepancies seem to come from color calculations being slightly off. --- .../Screenshot/input/border-radius.html | 1 + .../input/canvas-arcs-and-ellipses.html | 1 + .../input/canvas-fillstyle-gradients.html | 1 + .../Screenshot/input/canvas-filters.html | 1 + .../input/canvas-implict-moves-and-lines.html | 1 + .../Screenshot/input/canvas-path-rect.html | 1 + .../Screenshot/input/canvas-shadow.html | 1 + .../LibWeb/Screenshot/input/canvas-text.html | 1 + .../input/clip-path-transformed.html | 1 + .../LibWeb/Screenshot/input/color-scheme.html | 1 + .../input/css-background-clip-text.html | 1 + .../input/css-background-repeat.html | 1 + .../Screenshot/input/css-backgrounds.html | 1 + .../Screenshot/input/css-color-functions.html | 1 + .../Screenshot/input/css-compositing.html | 1 + .../input/css-filter-drop-shadow.html | 1 + Tests/LibWeb/Screenshot/input/css-filter.html | 1 + .../input/image-unpremultiplied-data.html | 1 + .../LibWeb/Screenshot/input/inline-node.html | 1 + ...ith-hidden-overflow-and-border-radius.html | 1 + .../Screenshot/input/object-fit-position.html | 1 + .../Screenshot/input/opacity-stacking.html | 1 + .../Screenshot/input/outer-box-shadow.html | 1 + .../input/selection-start-in-end-node-2.html | 1 + .../input/selection-start-in-end-node-3.html | 1 + .../input/selection-start-in-end-node.html | 1 + .../input/svg-background-no-natural-size.html | 1 + .../input/svg-clip-path-and-mask.html | 1 + .../input/svg-clip-path-transform.html | 1 + .../input/svg-filters-lb-website.html | 1 + .../svg-gradient-paint-transformation.html | 1 + .../input/svg-gradient-spreadMethod.html | 1 + .../input/svg-maskContentUnits.html | 1 + .../input/svg-path-offset-rounding.html | 1 + ...ardinal-directions-less-than-1px-wide.html | 1 + .../Screenshot/input/svg-radialGradient.html | 1 + .../svg-stroke-paintstyle-with-opacity.html | 1 + .../Screenshot/input/svg-stroke-styles.html | 1 + .../Screenshot/input/svg-text-effects.html | 1 + .../LibWeb/Screenshot/input/svg-textPath.html | 1 + .../Screenshot/input/text-decorations.html | 1 + .../LibWeb/Screenshot/input/text-shadow.html | 2 +- Tests/LibWeb/TestConfig.ini | 45 ------------------- Tests/LibWeb/test-web/main.cpp | 13 +----- 44 files changed, 44 insertions(+), 57 deletions(-) diff --git a/Tests/LibWeb/Screenshot/input/border-radius.html b/Tests/LibWeb/Screenshot/input/border-radius.html index edf7dc1af40..2223fe3d4d8 100644 --- a/Tests/LibWeb/Screenshot/input/border-radius.html +++ b/Tests/LibWeb/Screenshot/input/border-radius.html @@ -1,6 +1,7 @@ +