From 4fac0f713ad9259dd2182f70ad3a8f10e6a7fd90 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 29 Dec 2023 07:13:49 +0100 Subject: [PATCH] testsuite: Add clipped overly large paths ... to make sure that renderers clip any masks they generate for paths. --- testsuite/gsk/compare/fill-clipped-nogl.node | 10 ++++++++++ testsuite/gsk/compare/fill-clipped-nogl.png | Bin 0 -> 85 bytes testsuite/gsk/compare/stroke-clipped-nogl.node | 11 +++++++++++ testsuite/gsk/compare/stroke-clipped-nogl.png | Bin 0 -> 85 bytes testsuite/gsk/meson.build | 2 ++ 5 files changed, 23 insertions(+) create mode 100644 testsuite/gsk/compare/fill-clipped-nogl.node create mode 100644 testsuite/gsk/compare/fill-clipped-nogl.png create mode 100644 testsuite/gsk/compare/stroke-clipped-nogl.node create mode 100644 testsuite/gsk/compare/stroke-clipped-nogl.png diff --git a/testsuite/gsk/compare/fill-clipped-nogl.node b/testsuite/gsk/compare/fill-clipped-nogl.node new file mode 100644 index 0000000000..07b51c11fd --- /dev/null +++ b/testsuite/gsk/compare/fill-clipped-nogl.node @@ -0,0 +1,10 @@ +clip { + clip: 0 0 50 50; + child: fill { + path: "M 0 0 h 32768 v 32768 h -32768 z"; + child: color { + color: blue; + bounds: 0 0 32768 32768; + } + } +} diff --git a/testsuite/gsk/compare/fill-clipped-nogl.png b/testsuite/gsk/compare/fill-clipped-nogl.png new file mode 100644 index 0000000000000000000000000000000000000000..b2883e372898a65f840a89015aa293024bd115b8 GIT binary patch literal 85 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_{3?x-PN__%S%mF?jt_%$SyDBb)1G&7OE{-7* flF1UR%|LC86Brl|ep_V+lwk05^>bP0l+XkKsa6tM literal 0 HcmV?d00001 diff --git a/testsuite/gsk/compare/stroke-clipped-nogl.node b/testsuite/gsk/compare/stroke-clipped-nogl.node new file mode 100644 index 0000000000..1450f3f4cc --- /dev/null +++ b/testsuite/gsk/compare/stroke-clipped-nogl.node @@ -0,0 +1,11 @@ +clip { + clip: 0 0 50 50; + child: stroke { + path: "M 25 25 h 32718 v 32718 h -32718 z"; + child: color { + color: blue; + bounds: 0 0 32768 32768; + } + line-width: 50; + } +} diff --git a/testsuite/gsk/compare/stroke-clipped-nogl.png b/testsuite/gsk/compare/stroke-clipped-nogl.png new file mode 100644 index 0000000000000000000000000000000000000000..b2883e372898a65f840a89015aa293024bd115b8 GIT binary patch literal 85 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_{3?x-PN__%S%mF?jt_%$SyDBb)1G&7OE{-7* flF1UR%|LC86Brl|ep_V+lwk05^>bP0l+XkKsa6tM literal 0 HcmV?d00001 diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index dd97772335..2082586e2d 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -67,6 +67,7 @@ compare_render_tests = [ 'empty-texture', 'empty-transform', 'fill', + 'fill-clipped-nogl', 'fill-opacity', 'fill-with-3d-contents-nogl-nocairo', 'huge-height', @@ -120,6 +121,7 @@ compare_render_tests = [ 'shadow-opacity', 'shrink-rounded-border', 'stroke', + 'stroke-clipped-nogl', 'stroke-opacity', 'stroke-with-3d-contents-nogl-nocairo', 'texture-coords',