Add a test for rotated blend nodes
authorMatthias Clasen <mclasen@redhat.com>
Mon, 1 May 2023 00:28:12 +0000 (20:28 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 1 May 2023 17:45:20 +0000 (13:45 -0400)
testsuite/gsk/compare/blend-in-rotate.node [new file with mode: 0644]
testsuite/gsk/compare/blend-in-rotate.png [new file with mode: 0644]
testsuite/gsk/meson.build

diff --git a/testsuite/gsk/compare/blend-in-rotate.node b/testsuite/gsk/compare/blend-in-rotate.node
new file mode 100644 (file)
index 0000000..4e70392
--- /dev/null
@@ -0,0 +1,13 @@
+transform {
+  transform: rotate(90);
+  child: blend {
+    bottom: color {
+      bounds: 0 0 100 100;
+      color: rgb(255,0,0);
+    }
+    top: color {
+      bounds: 50 50 100 100;
+      color: rgb(0,0,255);
+    }
+  }
+}
diff --git a/testsuite/gsk/compare/blend-in-rotate.png b/testsuite/gsk/compare/blend-in-rotate.png
new file mode 100644 (file)
index 0000000..4a684f3
Binary files /dev/null and b/testsuite/gsk/compare/blend-in-rotate.png differ
index 4118a6c6697dee225a2fabbeff0aee5921038cdd..e1dbe7abe22ff2f66f31d9d0c60cf03dde09cb3f 100644 (file)
@@ -17,6 +17,7 @@ compare_render_tests = [
   'blend-difference',
   'blend-modes',
   'blend-invisible-child',
+  'blend-in-rotate',
   'blend-normal',
   'border-bottom-right',
   'border-one-rounded',