[gtk/wip/baedert/gl-rework] testsuite: Add test cases for last commit
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework] testsuite: Add test cases for last commit
- Date: Tue, 21 Jan 2020 14:07:41 +0000 (UTC)
commit 1fec4acbe12954d33f2ccc73d584e6e28fe1077b
Author: Timm Bäder <mail baedert org>
Date: Tue Jan 21 10:01:18 2020 +0100
testsuite: Add test cases for last commit
Easy enough to test
.../gsk/compare/transform-in-transform-in-transform.node | 14 ++++++++++++++
.../gsk/compare/transform-in-transform-in-transform.png | Bin 0 -> 104 bytes
testsuite/gsk/compare/transform-in-transform.node | 10 ++++++++++
testsuite/gsk/compare/transform-in-transform.png | Bin 0 -> 121 bytes
testsuite/gsk/meson.build | 2 ++
5 files changed, 26 insertions(+)
---
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
index 0000000000..6c8a2f11aa
--- /dev/null
+++ b/testsuite/gsk/compare/transform-in-transform-in-transform.node
@@ -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
index 0000000000..8b8846daca
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
index 0000000000..25689f479b
--- /dev/null
+++ b/testsuite/gsk/compare/transform-in-transform.node
@@ -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
index 0000000000..90b7de6096
Binary files /dev/null and b/testsuite/gsk/compare/transform-in-transform.png differ
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index aadc40642b..bee40fd32e 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]