summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-04-30 16:16:32 -0400
committerMatthias Clasen <mclasen@redhat.com>2023-05-01 13:43:33 -0400
commit21df62f4287cea0f9264228a5d5afe1237425369 (patch)
treead840f7eaa1f84ad3d9586d39cb72f65a66d6d53
parent4e501d2d4415a52d2acbc566acaf4036ad5e0948 (diff)
downloadgtk+-21df62f4287cea0f9264228a5d5afe1237425369.tar.gz
Add another test
-rw-r--r--testsuite/gsk/compare/blend-modes.node23
-rw-r--r--testsuite/gsk/compare/blend-modes.pngbin0 -> 626 bytes
-rw-r--r--testsuite/gsk/meson.build1
3 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gsk/compare/blend-modes.node b/testsuite/gsk/compare/blend-modes.node
new file mode 100644
index 0000000000..b5e7e3eeb6
--- /dev/null
+++ b/testsuite/gsk/compare/blend-modes.node
@@ -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
index 0000000000..8ae7de33f6
--- /dev/null
+++ b/testsuite/gsk/compare/blend-modes.png
Binary files differ
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index a337eaa280..aa2f3b07dd 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -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',