summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-01-07 17:14:32 +0100
committerTimm Bäder <mail@baedert.org>2020-01-07 17:27:19 +0100
commit262ac4247ac420c6c1ed4f3169d5eb4c0a3efbfd (patch)
tree2a1484812454717ce79448131366daaeb0c8ec9e
parent8e4f0b94843dc07c04dae5eaf23fad154b1256a6 (diff)
downloadgtk+-262ac4247ac420c6c1ed4f3169d5eb4c0a3efbfd.tar.gz
testsuite: Add a testcase for blend nodes with invisible children
-rw-r--r--testsuite/gsk/compare/blend-invisible-child.node25
-rw-r--r--testsuite/gsk/compare/blend-invisible-child.pngbin0 -> 221 bytes
-rw-r--r--testsuite/gsk/meson.build1
3 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/gsk/compare/blend-invisible-child.node b/testsuite/gsk/compare/blend-invisible-child.node
new file mode 100644
index 0000000000..24981ca589
--- /dev/null
+++ b/testsuite/gsk/compare/blend-invisible-child.node
@@ -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
index 0000000000..cbdb30c30d
--- /dev/null
+++ b/testsuite/gsk/compare/blend-invisible-child.png
Binary files differ
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index f82bfaef15..aadc40642b 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -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