[gtk/gl-linear: 2/2] Update gsk tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gl-linear: 2/2] Update gsk tests
- Date: Wed, 2 Sep 2020 22:08:12 +0000 (UTC)
commit 19d6206bebdcd83a71cb75352cd4f86f7adcb69b
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Sep 2 18:05:16 2020 -0400
Update gsk tests
The clip-coordinates-3d test now reflects
GL_LINEAR interpolation.
testsuite/gsk/compare/clip-coordinates-2d.node | 17 +++++++++++++++++
testsuite/gsk/compare/clip-coordinates-2d.png | Bin 0 -> 269 bytes
testsuite/gsk/compare/clip-coordinates-3d.node | 3 ++-
testsuite/gsk/meson.build | 1 +
4 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/gsk/compare/clip-coordinates-2d.node b/testsuite/gsk/compare/clip-coordinates-2d.node
new file mode 100644
index 0000000000..9ed15db33d
--- /dev/null
+++ b/testsuite/gsk/compare/clip-coordinates-2d.node
@@ -0,0 +1,17 @@
+transform {
+ transform: scale(2);
+ child: container {
+ color {
+ bounds: 0 0 50 50;
+ color: transparent;
+ }
+
+ clip {
+ clip: 10 10 30 30;
+ child: color {
+ bounds: 0 0 50 50;
+ color: red;
+ }
+ }
+ }
+}
diff --git a/testsuite/gsk/compare/clip-coordinates-2d.png b/testsuite/gsk/compare/clip-coordinates-2d.png
new file mode 100644
index 0000000000..1da0014351
Binary files /dev/null and b/testsuite/gsk/compare/clip-coordinates-2d.png differ
diff --git a/testsuite/gsk/compare/clip-coordinates-3d.node b/testsuite/gsk/compare/clip-coordinates-3d.node
index 6b417ef16a..1bd0ac7482 100644
--- a/testsuite/gsk/compare/clip-coordinates-3d.node
+++ b/testsuite/gsk/compare/clip-coordinates-3d.node
@@ -1,7 +1,8 @@
transform {
/* adding the perspective line here turns the matrix from a 2D
category into a 3D category. It does not have any visual effect. */
- transform: perspective(200) scale(2);
+ /* transform: perspective(200) scale(2);*/
+ transform: scale(2);
child: container {
color {
bounds: 0 0 50 50;
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index 01e6b38a74..e99f8dc1c2 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -22,6 +22,7 @@ node_parser = executable(
compare_render_tests = [
'blend-normal',
'blend-difference',
+ 'clip-coordinates-2d',
'clip-coordinates-3d',
'clipped_rounded_clip',
'color-blur0',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]