From f9b66dff8b5858ff0c7024e2f0a1d8e8e3d125d5 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 13 Feb 2024 13:11:43 +0100 Subject: [PATCH] testsuite: Add a test for shadows with large offset This was causing crashes in the GPU renderer. Related: #6425 --- testsuite/gsk/compare/shadow-huge-offset.node | 10 ++++++++++ testsuite/gsk/compare/shadow-huge-offset.png | Bin 0 -> 144 bytes testsuite/gsk/meson.build | 1 + 3 files changed, 11 insertions(+) create mode 100644 testsuite/gsk/compare/shadow-huge-offset.node create mode 100644 testsuite/gsk/compare/shadow-huge-offset.png diff --git a/testsuite/gsk/compare/shadow-huge-offset.node b/testsuite/gsk/compare/shadow-huge-offset.node new file mode 100644 index 0000000000..fb08cdc4cb --- /dev/null +++ b/testsuite/gsk/compare/shadow-huge-offset.node @@ -0,0 +1,10 @@ +clip { + clip: -20000 0 50 50; + child: shadow { + shadows: red -20000 0 0; + child: color { + bounds: 0 0 50 50; + color: blue; + } + } +} diff --git a/testsuite/gsk/compare/shadow-huge-offset.png b/testsuite/gsk/compare/shadow-huge-offset.png new file mode 100644 index 0000000000000000000000000000000000000000..9a5764a9b2e6bb2f1829015252759d489970f477 GIT binary patch literal 144 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_=1|;R|J2nETa8DPxi4@=GhTEXDy L>gTe~DWM4f*sU)x literal 0 HcmV?d00001 diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index f78740e3c2..b979246ed5 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -137,6 +137,7 @@ compare_render_tests = [ 'scale0-crash', 'shadow-behind', 'shadow-clip-contents', + 'shadow-huge-offset', 'shadow-in-opacity', 'shadow-offset-to-outside-clip', 'shadow-opacity',