testsuite: Add test cases for last commit
authorTimm Bäder <mail@baedert.org>
Tue, 21 Jan 2020 09:01:18 +0000 (10:01 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 24 Jan 2020 05:19:16 +0000 (06:19 +0100)
Easy enough to test

testsuite/gsk/compare/transform-in-transform-in-transform.node [new file with mode: 0644]
testsuite/gsk/compare/transform-in-transform-in-transform.png [new file with mode: 0644]
testsuite/gsk/compare/transform-in-transform.node [new file with mode: 0644]
testsuite/gsk/compare/transform-in-transform.png [new file with mode: 0644]
testsuite/gsk/meson.build

diff --git a/testsuite/gsk/compare/transform-in-transform-in-transform.node b/testsuite/gsk/compare/transform-in-transform-in-transform.node
new file mode 100644 (file)
index 0000000..6c8a2f1
--- /dev/null
@@ -0,0 +1,14 @@
+transform {
+  child: transform {
+    child: transform {
+      child: color {
+        bounds: 0 0 20 20;
+        color: blue;
+      }
+      transform: translate(0, -20);
+    }
+    transform: rotate(90);
+  }
+
+  transform: translate(300, 200);
+}
diff --git a/testsuite/gsk/compare/transform-in-transform-in-transform.png b/testsuite/gsk/compare/transform-in-transform-in-transform.png
new file mode 100644 (file)
index 0000000..8b8846d
Binary files /dev/null and b/testsuite/gsk/compare/transform-in-transform-in-transform.png differ
diff --git a/testsuite/gsk/compare/transform-in-transform.node b/testsuite/gsk/compare/transform-in-transform.node
new file mode 100644 (file)
index 0000000..25689f4
--- /dev/null
@@ -0,0 +1,10 @@
+transform {
+  child: transform {
+    child: color {
+      bounds: 0 0 20 20;
+      color: blue;
+    }
+    transform: translate(0, -20);
+  }
+  transform: scale(2) rotate(90);
+}
diff --git a/testsuite/gsk/compare/transform-in-transform.png b/testsuite/gsk/compare/transform-in-transform.png
new file mode 100644 (file)
index 0000000..90b7de6
Binary files /dev/null and b/testsuite/gsk/compare/transform-in-transform.png differ
index aadc40642b49337425d6e4619c33123313ae7ce1..bee40fd32ed15687414f472fa9d80263c1d24188 100644 (file)
@@ -64,6 +64,8 @@ compare_render_tests = [
   'inset-shadow-multiple',
   'borders-rotated',
   'blend-invisible-child',
+  'transform-in-transform',
+  'transform-in-transform-in-transform',
 ]
 
 # these are too sensitive to differences in the renderers