From 1c3e8d5280fb28e93e351418143a85a4a2134442 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 27 Dec 2023 22:29:36 +0100 Subject: [PATCH] testsuite: Add stroke tests Same as the recent fill tests, just with strokes. --- testsuite/gsk/compare/stroke-opacity.node | 28 ++++++++++++++++++ testsuite/gsk/compare/stroke-opacity.png | Bin 0 -> 129 bytes .../stroke-with-3d-contents-nogl-nocairo.node | 26 ++++++++++++++++ .../stroke-with-3d-contents-nogl-nocairo.png | Bin 0 -> 128 bytes testsuite/gsk/meson.build | 2 ++ 5 files changed, 56 insertions(+) create mode 100644 testsuite/gsk/compare/stroke-opacity.node create mode 100644 testsuite/gsk/compare/stroke-opacity.png create mode 100644 testsuite/gsk/compare/stroke-with-3d-contents-nogl-nocairo.node create mode 100644 testsuite/gsk/compare/stroke-with-3d-contents-nogl-nocairo.png diff --git a/testsuite/gsk/compare/stroke-opacity.node b/testsuite/gsk/compare/stroke-opacity.node new file mode 100644 index 0000000000..9e48b7aa63 --- /dev/null +++ b/testsuite/gsk/compare/stroke-opacity.node @@ -0,0 +1,28 @@ +opacity { + child: stroke { + child: opacity { + opacity: 0.4; + child: color { + bounds: 0 0 50 50; + color: rgb(255,0,0); + } + } + path: "\ +M 15 5\ +L 35 5\ +L 35 15\ +L 45 15\ +L 45 35\ +L 35 35\ +L 35 45\ +L 15 45\ +L 15 35\ +L 5 35\ +L 5 15\ +L 15 15\ +Z"; + line-width: 10; + line-cap: butt; + line-join: miter; + } +} diff --git a/testsuite/gsk/compare/stroke-opacity.png b/testsuite/gsk/compare/stroke-opacity.png new file mode 100644 index 0000000000000000000000000000000000000000..b737158b2dc0034caf17c75be265e846837c848c GIT binary patch literal 129 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_{3?x-PN__%SYymzYu0Z-f1B3McUL_!lsU*lR zn8Em@^BO%MPs7v2F+}2Wa>9oH|Nq-F3j}oj`~RQ$^Z)S6G7^>bP0l+XkKF7_y} literal 0 HcmV?d00001 diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index f8f8285671..767103b33d 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -117,6 +117,8 @@ compare_render_tests = [ 'shadow-opacity', 'shrink-rounded-border', 'stroke', + 'stroke-opacity', + 'stroke-with-3d-contents-nogl-nocairo', 'texture-coords', 'texture-scale-filters-nocairo', 'texture-scale-magnify-10000x',