[gtk/wip/baedert/nodeeditor: 17/21] testsuite: Add another gl renderer test



commit 8f1aba487fcd78c0323f5beb1ef69edb30abbe5e
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   |  18 ++++++++++++++++++
 testsuite/gsk/meson.build                 |   1 +
 3 files changed, 19 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..f30a0fc1ed
--- /dev/null
+++ b/testsuite/gsk/gl/shadow-in-opacity.node
@@ -0,0 +1,18 @@
+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 d8162da6bc..e11647f170 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]