From 7f7254f10bbfc7545a3bbb8f07a1d1fc6aaef355 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 23 Dec 2023 14:17:35 +0100 Subject: [PATCH] testsuite: Add a repeat test for child bounds Test that if the child is a texture that extends the child bounds, that extension does not get repeated when rendering. This can easily happen when the child is not drawn as an offscreen, but instead the texture cache is consulted and no check for matching size is done. --- testsuite/gsk/compare/repeat-child-bounds.node | 10 ++++++++++ testsuite/gsk/compare/repeat-child-bounds.png | Bin 0 -> 81 bytes testsuite/gsk/meson.build | 3 ++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 testsuite/gsk/compare/repeat-child-bounds.node create mode 100644 testsuite/gsk/compare/repeat-child-bounds.png diff --git a/testsuite/gsk/compare/repeat-child-bounds.node b/testsuite/gsk/compare/repeat-child-bounds.node new file mode 100644 index 0000000000..cb33eaab9b --- /dev/null +++ b/testsuite/gsk/compare/repeat-child-bounds.node @@ -0,0 +1,10 @@ +repeat { + bounds: 0 0 10 10; + child-bounds: 0 0 1 1; + child: texture { + bounds: -1 -1 3 3; + texture: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAYAAABWKLW/AAAAGklEQVQImWP8z8DwnwEKmBgYGBgY\ +oXxGZBkAcTMFAbj7zAkAAAAASUVORK5CYII=\ +"); + } +} diff --git a/testsuite/gsk/compare/repeat-child-bounds.png b/testsuite/gsk/compare/repeat-child-bounds.png new file mode 100644 index 0000000000000000000000000000000000000000..907d9b58e9b7a263bb38b245defa29d73fad9693 GIT binary patch literal 81 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2V8<6ZZI=>f4NqD+AhDc0JPD%Lje|{s!0hgXd efvs19IT)