[gtk/wip/baedert/for-master: 17/20] testsuite: Add an inset shadow rendering test case



commit daa6e62fbba8583472e96467c2db494e42194244
Author: Timm Bäder <mail baedert org>
Date:   Sat Nov 30 09:26:01 2019 +0100

    testsuite: Add an inset shadow rendering test case

 testsuite/gsk/compare/inset-shadow-multiple.node |  28 +++++++++++++++++++++++
 testsuite/gsk/compare/inset-shadow-multiple.png  | Bin 0 -> 195 bytes
 testsuite/gsk/meson.build                        |   1 +
 3 files changed, 29 insertions(+)
---
diff --git a/testsuite/gsk/compare/inset-shadow-multiple.node 
b/testsuite/gsk/compare/inset-shadow-multiple.node
new file mode 100644
index 0000000000..6ee3a6cad7
--- /dev/null
+++ b/testsuite/gsk/compare/inset-shadow-multiple.node
@@ -0,0 +1,28 @@
+
+inset-shadow {
+  outline: 0 0 50 50 / 0;
+  dx: 0;
+  dy: 10;
+  color: red;
+}
+
+inset-shadow {
+  outline: 0 0 50 50 / 0;
+  dx: 10;
+  dy: 0;
+  color: blue;
+}
+
+inset-shadow {
+  outline: 0 0 50 50 / 0;
+  dx: -10;
+  dy: 0;
+  color: green;
+}
+
+inset-shadow {
+  outline: 0 0 50 50 / 0;
+  dx: 0;
+  dy: -10;
+  color: cyan;
+}
diff --git a/testsuite/gsk/compare/inset-shadow-multiple.png b/testsuite/gsk/compare/inset-shadow-multiple.png
new file mode 100644
index 0000000000..103cbacce9
Binary files /dev/null and b/testsuite/gsk/compare/inset-shadow-multiple.png differ
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index cf3a74b5c5..ba01a2eeb2 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -61,6 +61,7 @@ compare_render_tests = [
   'repeat-texture',
   'repeat-no-repeat',
   'repeat-negative-coords',
+  'inset-shadow-multiple',
 ]
 
 # these are too sensitive to differences in the renderers


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