From: Benjamin Otte Date: Sat, 4 Mar 2023 01:50:38 +0000 (+0100) Subject: testsuite: Add a test for stripes X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~6^2~2^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0581e38b09aae10b918c24cd00d4dff2304e36b1;p=gtk4.git testsuite: Add a test for stripes The GL renderer was creating sripes for nodes that were scaled in particular ways, probably due to rounding errors. This testsuite focuses on one of those stripes to make sure they are gone. --- diff --git a/testsuite/gsk/compare/texture-scale-stripes.node b/testsuite/gsk/compare/texture-scale-stripes.node new file mode 100644 index 0000000000..acd72b2e44 --- /dev/null +++ b/testsuite/gsk/compare/texture-scale-stripes.node @@ -0,0 +1,8 @@ +clip { + clip: 3950 3950 100 100; + child: texture-scale { + bounds: 0 0 19991 19991; + filter: nearest; + texture: url('data:,'); + } +} \ No newline at end of file diff --git a/testsuite/gsk/compare/texture-scale-stripes.png b/testsuite/gsk/compare/texture-scale-stripes.png new file mode 100644 index 0000000000..e46858c416 Binary files /dev/null and b/testsuite/gsk/compare/texture-scale-stripes.png differ diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index ce007e667b..f52a77025e 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -77,6 +77,7 @@ compare_render_tests = [ 'scaled-texture', 'shadow-in-opacity', 'texture-scale-magnify-10000x', + 'texture-scale-stripes', 'texture-url', 'transform-in-transform', 'transform-in-transform-in-transform',