From: Matthias Clasen Date: Mon, 1 May 2023 00:20:12 +0000 (-0400) Subject: Add a test for rotated cross-fade nodes X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~323^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f6e47b7eb011ddc8869998fb6caee32a5a57eccd;p=gtk4.git Add a test for rotated cross-fade nodes This one checks that we don't apply the modelview transform twice with cross-fades. --- diff --git a/testsuite/gsk/compare/cross-fade-in-rotate.node b/testsuite/gsk/compare/cross-fade-in-rotate.node new file mode 100644 index 0000000000..d4714b65c4 --- /dev/null +++ b/testsuite/gsk/compare/cross-fade-in-rotate.node @@ -0,0 +1,14 @@ +transform { + transform: rotate(90); + child: cross-fade { + progress: 0; + start: color { + bounds: 25 0 25 50; + color: rgb(255,0,0); + } + end: color { + bounds: 0 0 25 50; + color: rgb(0,0,0); + } + } +} diff --git a/testsuite/gsk/compare/cross-fade-in-rotate.png b/testsuite/gsk/compare/cross-fade-in-rotate.png new file mode 100644 index 0000000000..8f36f35fda Binary files /dev/null and b/testsuite/gsk/compare/cross-fade-in-rotate.png differ diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index aa2f3b07dd..4118a6c669 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -34,6 +34,7 @@ compare_render_tests = [ 'color-matrix-identity', 'color-matrix-parsing', 'cross-fade-in-opacity', + 'cross-fade-in-rotate', 'css-background', 'empty-blend', 'empty-blur',