Add another test
authorMatthias Clasen <mclasen@redhat.com>
Sun, 30 Apr 2023 20:16:32 +0000 (16:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 1 May 2023 17:43:33 +0000 (13:43 -0400)
testsuite/gsk/compare/blend-modes.node [new file with mode: 0644]
testsuite/gsk/compare/blend-modes.png [new file with mode: 0644]
testsuite/gsk/meson.build

diff --git a/testsuite/gsk/compare/blend-modes.node b/testsuite/gsk/compare/blend-modes.node
new file mode 100644 (file)
index 0000000..b5e7e3e
--- /dev/null
@@ -0,0 +1,23 @@
+blend {
+  mode: difference;
+  bottom: color {
+    bounds: 0 0 100 100;
+    color: red;
+  }
+  top: color {
+    bounds: 50 50 100 100;
+    color: blue;
+  }
+}
+
+blend {
+  mode: normal;
+  bottom: color {
+    bounds: 150 0 100 100;
+    color: red;
+  }
+  top: color {
+    bounds: 200 50 100 100;
+    color: blue;
+  }
+}
diff --git a/testsuite/gsk/compare/blend-modes.png b/testsuite/gsk/compare/blend-modes.png
new file mode 100644 (file)
index 0000000..8ae7de3
Binary files /dev/null and b/testsuite/gsk/compare/blend-modes.png differ
index a337eaa280daa9ad86b34b482e3b14614d83f0dc..aa2f3b07ddb194249bfe3ea123c260b807065700 100644 (file)
@@ -15,6 +15,7 @@ compare_render_tests = [
   'big-checkerboard-scaled-down-nearest',
   'big-checkerboard-scaled-down2',
   'blend-difference',
+  'blend-modes',
   'blend-invisible-child',
   'blend-normal',
   'border-bottom-right',