[gtk/wip/otte/nodeeditor2: 14/30] testsuite: Add another gl renderer test



commit 1e5d19830eea3d8b8bca746eb57cc6027f18d111
Author: Timm Bäder <mail baedert org>
Date:   Wed Apr 24 13:25:32 2019 +0200

    testsuite: Add another gl renderer test

 testsuite/gsk/compare/shadow-in-opacity.node |  24 ++++++++++++++++++++++++
 testsuite/gsk/compare/shadow-in-opacity.png  | Bin 0 -> 408 bytes
 testsuite/gsk/meson.build                    |   1 +
 3 files changed, 25 insertions(+)
---
diff --git a/testsuite/gsk/compare/shadow-in-opacity.node b/testsuite/gsk/compare/shadow-in-opacity.node
new file mode 100644
index 0000000000..c9a6286c28
--- /dev/null
+++ b/testsuite/gsk/compare/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/compare/shadow-in-opacity.png b/testsuite/gsk/compare/shadow-in-opacity.png
new file mode 100644
index 0000000000..64c2cabfd1
Binary files /dev/null and b/testsuite/gsk/compare/shadow-in-opacity.png differ
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index 71fe68dcd6..df7c5608c7 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -56,6 +56,7 @@ compare_render_tests = [
   'outset_shadow_offset_y',
   'outset_shadow_rounded_top',
   'outset_shadow_simple',
+  'shadow-in-opacity',
 ]
 
 renderers = [


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]