From 653d1eec55060643d48b0644efef5c6180e9dc33 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 5 Dec 2023 17:20:18 +0100 Subject: [PATCH] testsuite: Add a variant of an existing test This variant ccreates a huge node in the clipped region and tests that renderers properly clip it away. --- .../blur-huge-contents-outside-of-clip.node | 40 ++++++++++++++++++ .../blur-huge-contents-outside-of-clip.png | Bin 0 -> 168 bytes testsuite/gsk/meson.build | 1 + 3 files changed, 41 insertions(+) create mode 100644 testsuite/gsk/compare/blur-huge-contents-outside-of-clip.node create mode 100644 testsuite/gsk/compare/blur-huge-contents-outside-of-clip.png diff --git a/testsuite/gsk/compare/blur-huge-contents-outside-of-clip.node b/testsuite/gsk/compare/blur-huge-contents-outside-of-clip.node new file mode 100644 index 0000000000..72535247a5 --- /dev/null +++ b/testsuite/gsk/compare/blur-huge-contents-outside-of-clip.node @@ -0,0 +1,40 @@ +color-matrix { + matrix: matrix3d(256, 0, 0, 0, 0, 256, 0, 0, 0, 0, 256, 0, 0, 0, 0, 256); + child: clip { + clip: -37 59 50 50; + child: container { + blur { + blur: 17; + child: color { + bounds: -20037 59 20000 50; + color: rgb(255,0,0); + } + } + blur { + blur: 17; + child: color { + bounds: 13 59 20000 50; + color: rgb(255,0,0); + } + } + blur { + blur: 17; + child: color { + bounds: -37 -19941 50 20000; + color: rgb(255,0,0); + } + } + blur { + blur: 17; + child: color { + bounds: -37 109 50 20000; + color: rgb(255,0,0); + } + } + color { + bounds: -22 74 20 20; + color: rgb(0,0,0); + } + } + } +} diff --git a/testsuite/gsk/compare/blur-huge-contents-outside-of-clip.png b/testsuite/gsk/compare/blur-huge-contents-outside-of-clip.png new file mode 100644 index 0000000000000000000000000000000000000000..6dfe67b88b7d9e9df10ea90c1ee0ac5cbed6dc28 GIT binary patch literal 168 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_=1|;R|J2nETd`}n0kc`H+HxF_$DDWJ;p!IJ5 zrnox`njTIr7niEi>Wkf~ec+Gn0qwR65>Ck+y^1CvhOqD^tN!DwHP@Z972GW7oWZlu ru;rM56cQuK-1_Bty)gTe~DWM4fRi8J{ literal 0 HcmV?d00001 diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index 2df6f2e604..b9f638518d 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -22,6 +22,7 @@ compare_render_tests = [ 'blurred-lines', 'blur-child-bounds-oversize', 'blur-contents-outside-of-clip', + 'blur-huge-contents-outside-of-clip', 'border-bottom-right', 'border-one-rounded', 'borders-rotated',