testsuite: Add a testcase for blend nodes with invisible children
authorTimm Bäder <mail@baedert.org>
Tue, 7 Jan 2020 16:14:32 +0000 (17:14 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 7 Jan 2020 16:27:19 +0000 (17:27 +0100)
testsuite/gsk/compare/blend-invisible-child.node [new file with mode: 0644]
testsuite/gsk/compare/blend-invisible-child.png [new file with mode: 0644]
testsuite/gsk/meson.build

diff --git a/testsuite/gsk/compare/blend-invisible-child.node b/testsuite/gsk/compare/blend-invisible-child.node
new file mode 100644 (file)
index 0000000..24981ca
--- /dev/null
@@ -0,0 +1,25 @@
+blend {
+  top: color {
+    bounds: 0 0 50 50;
+    color: red;
+  }
+  bottom: color {
+    bounds: 25 25 0 10;
+    color: blue;
+  }
+  mode: multiply;
+}
+
+
+blend {
+  top: color {
+    bounds: 25 85 0 10;
+    color: blue;
+  }
+  bottom: color {
+    bounds: 0 60 50 50;
+    color: red;
+  }
+
+  mode: multiply;
+}
diff --git a/testsuite/gsk/compare/blend-invisible-child.png b/testsuite/gsk/compare/blend-invisible-child.png
new file mode 100644 (file)
index 0000000..cbdb30c
Binary files /dev/null and b/testsuite/gsk/compare/blend-invisible-child.png differ
index f82bfaef150787711f7b79d04e1b91e25fe245a8..aadc40642b49337425d6e4619c33123313ae7ce1 100644 (file)
@@ -63,6 +63,7 @@ compare_render_tests = [
   'repeat-negative-coords',
   'inset-shadow-multiple',
   'borders-rotated',
+  'blend-invisible-child',
 ]
 
 # these are too sensitive to differences in the renderers