[gtk/offscreen-fixes: 5/5] gsk: Add another test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/offscreen-fixes: 5/5] gsk: Add another test
- Date: Wed, 31 Mar 2021 19:00:55 +0000 (UTC)
commit 5883f099590d3263255af9a45a1731c9fc73ef2d
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Mar 31 07:49:58 2021 -0400
gsk: Add another test
Compare clipped repeat nodes. Must skip cairo here
since it blurred the child by scaling after rendering.
Also skip the gl renderer, since it hasn't been fixed
for this yet. ngl passes this test.
testsuite/gsk/compare/clipped-repeat-3d-ngl.node | 32 +++++++++++++++++++++++
testsuite/gsk/compare/clipped-repeat-3d-ngl.png | Bin 0 -> 1760 bytes
testsuite/gsk/meson.build | 3 ++-
3 files changed, 34 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/gsk/compare/clipped-repeat-3d-ngl.node
b/testsuite/gsk/compare/clipped-repeat-3d-ngl.node
new file mode 100644
index 0000000000..288560c89d
--- /dev/null
+++ b/testsuite/gsk/compare/clipped-repeat-3d-ngl.node
@@ -0,0 +1,32 @@
+transform {
+ child: transform {
+ child: rounded-clip {
+ child: container {
+ repeat {
+ bounds: 0 0 159 34;
+ child: container {
+ color {
+ bounds: 0 0 10 10;
+ color: rgb(168,168,168);
+ }
+ color {
+ bounds: 10 0 10 10;
+ color: rgb(84,84,84);
+ }
+ color {
+ bounds: 0 10 10 10;
+ color: rgb(84,84,84);
+ }
+ color {
+ bounds: 10 10 10 10;
+ color: rgb(168,168,168);
+ }
+ }
+ }
+ }
+ clip: 0 0 159 34 / 6;
+ }
+ transform: scale(4, 4);
+ }
+ transform: translate(6, 20);
+}
diff --git a/testsuite/gsk/compare/clipped-repeat-3d-ngl.png b/testsuite/gsk/compare/clipped-repeat-3d-ngl.png
new file mode 100644
index 0000000000..b9a847d7c1
Binary files /dev/null and b/testsuite/gsk/compare/clipped-repeat-3d-ngl.png differ
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index 439f5a7c2e..88f6287b3d 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -76,6 +76,7 @@ compare_render_tests = [
'clip-in-rounded-clip2',
'clip-in-rounded-clip3',
'rounded-clip-in-clip-3d', # not really 3d, but cairo fails it
+ 'clipped-repeat-3d',
'issue-3615'
]
@@ -89,7 +90,7 @@ informative_render_tests = [
renderers = [
# name exclude term
- [ 'gl', '' ],
+ [ 'gl', '-ngl' ],
[ 'ngl', '' ],
[ 'broadway', '-3d' ],
[ 'cairo', '-3d' ],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]