[gtk/wip/baedert/nodeeditor: 13/21] testsuite: Add another gl renderer test
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/nodeeditor: 13/21] testsuite: Add another gl renderer test
- Date: Fri, 26 Apr 2019 14:51:30 +0000 (UTC)
commit 51e8ad68047fedbde9945a777197612093315591
Author: Timm Bäder <mail baedert org>
Date: Wed Apr 24 13:25:32 2019 +0200
testsuite: Add another gl renderer test
testsuite/gsk/gl/shadow-in-opacity.gl.png | Bin 0 -> 408 bytes
testsuite/gsk/gl/shadow-in-opacity.node | 24 ++++++++++++++++++++++++
testsuite/gsk/meson.build | 1 +
3 files changed, 25 insertions(+)
---
diff --git a/testsuite/gsk/gl/shadow-in-opacity.gl.png b/testsuite/gsk/gl/shadow-in-opacity.gl.png
new file mode 100644
index 0000000000..64c2cabfd1
Binary files /dev/null and b/testsuite/gsk/gl/shadow-in-opacity.gl.png differ
diff --git a/testsuite/gsk/gl/shadow-in-opacity.node b/testsuite/gsk/gl/shadow-in-opacity.node
new file mode 100644
index 0000000000..c9a6286c28
--- /dev/null
+++ b/testsuite/gsk/gl/shadow-in-opacity.node
@@ -0,0 +1,24 @@
+
+/*
+ The opacity node should affect both the shadow node child
+ (the node that's NOT colored) and the actual shadow.
+ I.e. the output should be entirely empty.
+*/
+opacity {
+ opacity: 0;
+
+ child: shadow {
+ child: cross-fade {
+ start: color {
+ color: blue;
+ bounds: 0 0 100 100;
+ }
+ end: color {
+ color: red;
+ bounds: 100 100 100 100;
+ }
+ progress: 0;
+ }
+ shadows: green 200 0 0;
+ }
+}
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index 69442986be..037cececfb 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -49,6 +49,7 @@ test('nodes (cairo)', test_render_nodes,
# Interesting render nodes proven to be rendered 'correctly' by the GL renderer.
gl_tests = [
['cross fade in opacity', 'cross-fade-in-opacity'],
+ ['shadow in opacity', 'cross-fade-in-opacity'],
]
foreach gl_test : gl_tests
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]