testsuite: Add blend-difference test case
authorTimm Bäder <mail@baedert.org>
Mon, 6 May 2019 15:33:29 +0000 (17:33 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 6 May 2019 15:34:48 +0000 (17:34 +0200)
Comparing blend nodes with mode: difference

testsuite/gsk/compare/blend-difference.node [new file with mode: 0644]
testsuite/gsk/compare/blend-difference.png [new file with mode: 0644]
testsuite/gsk/meson.build

diff --git a/testsuite/gsk/compare/blend-difference.node b/testsuite/gsk/compare/blend-difference.node
new file mode 100644 (file)
index 0000000..aaf8eaa
--- /dev/null
@@ -0,0 +1,11 @@
+blend {
+  mode: difference;
+  bottom: color {
+    bounds: 0 0 100 100;
+    color: red;
+  }
+  top: color {
+    bounds: 50 50 100 100;
+    color: blue;
+  }
+}
diff --git a/testsuite/gsk/compare/blend-difference.png b/testsuite/gsk/compare/blend-difference.png
new file mode 100644 (file)
index 0000000..be918ff
Binary files /dev/null and b/testsuite/gsk/compare/blend-difference.png differ
index 7f6fc3b3be4cfd1a9cca621150127546d79d25ce..90eed14aa9cb743282ef238008ce1006bbc30eca 100644 (file)
@@ -37,6 +37,7 @@ compare_render_tests = [
   'outset_shadow_simple',
   'shadow-in-opacity',
   'blend-normal',
+  'blend-difference',
 ]
 
 renderers = [