From: Benjamin Otte Date: Mon, 13 Feb 2023 00:44:18 +0000 (+0100) Subject: testsuite: Add a test for large scale nodes X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~6^2~2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8bbf220fdf2f650ca5e76418ec258cf5c818a591;p=gtk4.git testsuite: Add a test for large scale nodes This test fails if we naively create fullscale intermediate offscreens. This was fixed in the previous commits. This tests the fixes in 22ba6b1f33dcbcab8d (for cairo) and 3a0152b65fd75f631b76 (for GL). --- diff --git a/testsuite/gsk/compare/texture-scale-magnify-10000x.node b/testsuite/gsk/compare/texture-scale-magnify-10000x.node new file mode 100644 index 0000000000..de74a00437 --- /dev/null +++ b/testsuite/gsk/compare/texture-scale-magnify-10000x.node @@ -0,0 +1,8 @@ +clip { + clip: 24995 24995 10 10; + child: texture-scale { + texture: url("data:;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAKElEQVQYlWNkYGD4z4AG/v/HEGJgwhDBAQZQIQs2hzMyMtLBauorBACQUgcSISWLRgAAAABJRU5ErkJggg=="); + bounds: 0 0 50000 50000; + filter: nearest; + } +} diff --git a/testsuite/gsk/compare/texture-scale-magnify-10000x.png b/testsuite/gsk/compare/texture-scale-magnify-10000x.png new file mode 100644 index 0000000000..2cb8412f0e Binary files /dev/null and b/testsuite/gsk/compare/texture-scale-magnify-10000x.png differ diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index d5343da62e..ce007e667b 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -66,19 +66,20 @@ compare_render_tests = [ 'outset_shadow_offset_y', 'outset_shadow_rounded_top', 'outset_shadow_simple', - 'scaled-cairo', - 'scale-textures-negative-ngl', - 'scale-up-down', - 'shadow-in-opacity', - 'texture-url', 'repeat', 'repeat-no-repeat', 'repeat-negative-coords', 'repeat-texture', - 'transform-in-transform', - 'transform-in-transform-in-transform', 'rounded-clip-in-clip-3d', # not really 3d, but cairo fails it + 'scale-textures-negative-ngl', + 'scale-up-down', + 'scaled-cairo', 'scaled-texture', + 'shadow-in-opacity', + 'texture-scale-magnify-10000x', + 'texture-url', + 'transform-in-transform', + 'transform-in-transform-in-transform', ] # these are too sensitive to differences in the renderers