Add a test for rotated cross-fade nodes
authorMatthias Clasen <mclasen@redhat.com>
Mon, 1 May 2023 00:20:12 +0000 (20:20 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 1 May 2023 17:45:13 +0000 (13:45 -0400)
This one checks that we don't apply the modelview
transform twice with cross-fades.

testsuite/gsk/compare/cross-fade-in-rotate.node [new file with mode: 0644]
testsuite/gsk/compare/cross-fade-in-rotate.png [new file with mode: 0644]
testsuite/gsk/meson.build

diff --git a/testsuite/gsk/compare/cross-fade-in-rotate.node b/testsuite/gsk/compare/cross-fade-in-rotate.node
new file mode 100644 (file)
index 0000000..d4714b6
--- /dev/null
@@ -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 (file)
index 0000000..8f36f35
Binary files /dev/null and b/testsuite/gsk/compare/cross-fade-in-rotate.png differ
index aa2f3b07ddb194249bfe3ea123c260b807065700..4118a6c6697dee225a2fabbeff0aee5921038cdd 100644 (file)
@@ -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',