From 00ce51472cee6ce6cd9522fd360becc84dfaf14a Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 1 Nov 2023 05:44:54 +0100 Subject: [PATCH] testsuite: Add render test for texture placement Make sure that texture nodes sample from the texture properly. --- testsuite/gsk/compare/texture-coords.node | 9 +++++++++ testsuite/gsk/compare/texture-coords.png | Bin 0 -> 133 bytes testsuite/gsk/meson.build | 1 + 3 files changed, 10 insertions(+) create mode 100644 testsuite/gsk/compare/texture-coords.node create mode 100644 testsuite/gsk/compare/texture-coords.png diff --git a/testsuite/gsk/compare/texture-coords.node b/testsuite/gsk/compare/texture-coords.node new file mode 100644 index 0000000000..25d518d270 --- /dev/null +++ b/testsuite/gsk/compare/texture-coords.node @@ -0,0 +1,9 @@ +color-matrix { + matrix: matrix3d(1000, 0, 0, 0, 0, 1000, 0, 0, 0, 0, 1000, 0, 0, 0, 0, 1000); + child: texture { + bounds: 0 0 32 32; + texture: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQImQXBAQEAAACAEP9PFyIK\ +FQ1Dzgf5P3fNsQAAAABJRU5ErkJggg==\ +"); + } +} diff --git a/testsuite/gsk/compare/texture-coords.png b/testsuite/gsk/compare/texture-coords.png new file mode 100644 index 0000000000000000000000000000000000000000..cbeef814f7bb8f6e1aece5435757a7415f6a14dc GIT binary patch literal 133 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzA5Ry@kcif|*EVu8IB+-z+TN*8 z&1VjF+3+)ywU(plrl4%HOQeeH-^jb-ObiSSMek!=OYQFiHG;u{EBD{kbAN96%nRf` YV1A#><`_Er$x)D;r>mdKI;Vst07cm-X#fBK literal 0 HcmV?d00001 diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index 1f5689f2f7..73a1f3df81 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -100,6 +100,7 @@ compare_render_tests = [ 'shadow-opacity', 'shrink-rounded-border', 'stroke', + 'texture-coords', 'texture-scale-filters-3d', 'texture-scale-magnify-10000x', 'texture-scale-magnify-rotate',