[gtk/wip/baedert/gl-rework: 111/127] testsuite: Add a test case for rotated border node



commit fa413f0d1150226d4ef541f7578643d70261301e
Author: Timm Bäder <mail baedert org>
Date:   Thu Dec 19 12:37:57 2019 +0100

    testsuite: Add a test case for rotated border node

 testsuite/gsk/compare/borders-rotated.node |  13 +++++++++++++
 testsuite/gsk/compare/borders-rotated.png  | Bin 0 -> 356 bytes
 testsuite/gsk/meson.build                  |   1 +
 3 files changed, 14 insertions(+)
---
diff --git a/testsuite/gsk/compare/borders-rotated.node b/testsuite/gsk/compare/borders-rotated.node
new file mode 100644
index 0000000000..c3ebb89c73
--- /dev/null
+++ b/testsuite/gsk/compare/borders-rotated.node
@@ -0,0 +1,13 @@
+transform {
+  child: container {
+    border {
+      outline: 5 5 100 100;
+    }
+    color {
+      color: rgba(0, 0, 0, 0);
+      bounds: 0 0 110 110;
+    }
+  }
+
+  transform: translate(110, 0) rotate(90);
+}
diff --git a/testsuite/gsk/compare/borders-rotated.png b/testsuite/gsk/compare/borders-rotated.png
new file mode 100644
index 0000000000..667fb77ee5
Binary files /dev/null and b/testsuite/gsk/compare/borders-rotated.png differ
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index ba01a2eeb2..f82bfaef15 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -62,6 +62,7 @@ compare_render_tests = [
   'repeat-no-repeat',
   'repeat-negative-coords',
   'inset-shadow-multiple',
+  'borders-rotated',
 ]
 
 # these are too sensitive to differences in the renderers


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