[gtk/fix-negative-scales] testsuite: Add test for crasher
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-negative-scales] testsuite: Add test for crasher
- Date: Thu, 15 Jul 2021 21:36:07 +0000 (UTC)
commit 7ca2a753db0a8f66d451efc334e5d8221c4d331c
Author: Benjamin Otte <otte redhat com>
Date: Thu Jul 15 23:33:54 2021 +0200
testsuite: Add test for crasher
Test for the crasher in !4096
testsuite/gsk/compare/scale-textures-negative.node | 48 +++++++++++++++++++++
testsuite/gsk/compare/scale-textures-negative.png | Bin 0 -> 262 bytes
testsuite/gsk/meson.build | 1 +
3 files changed, 49 insertions(+)
---
diff --git a/testsuite/gsk/compare/scale-textures-negative.node
b/testsuite/gsk/compare/scale-textures-negative.node
new file mode 100644
index 0000000000..71217ab194
--- /dev/null
+++ b/testsuite/gsk/compare/scale-textures-negative.node
@@ -0,0 +1,48 @@
+transform {
+ transform: scale(1, 1);
+ child: opacity {
+ opacity: 0.5;
+ child: container {
+ texture {
+ bounds: 0 0 50 50;
+ texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25'
fill='red'/></svg>");
+ }
+ }
+ }
+}
+transform {
+ transform: scale(1, -1);
+ child: opacity {
+ opacity: 0.5;
+ child: container {
+ texture {
+ bounds: 0 0 50 50;
+ texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25'
fill='lime'/></svg>");
+ }
+ }
+ }
+}
+transform {
+ transform: scale(-1, -1);
+ child: opacity {
+ opacity: 0.5;
+ child: container {
+ texture {
+ bounds: 0 0 50 50;
+ texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25'
fill='blue'/></svg>");
+ }
+ }
+ }
+}
+transform {
+ transform: scale(-1, 1);
+ child: opacity {
+ opacity: 0.5;
+ child: container {
+ texture {
+ bounds: 0 0 50 50;
+ texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25'
fill='yellow'/></svg>");
+ }
+ }
+ }
+}
diff --git a/testsuite/gsk/compare/scale-textures-negative.png
b/testsuite/gsk/compare/scale-textures-negative.png
new file mode 100644
index 0000000000..61b4cd99aa
Binary files /dev/null and b/testsuite/gsk/compare/scale-textures-negative.png differ
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index 4bdfc8ceaf..1a20fe8223 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -69,6 +69,7 @@ compare_render_tests = [
'outset_shadow_rounded_top',
'outset_shadow_simple',
'scaled-cairo',
+ 'scale-textures-negative',
'scale-up-down',
'shadow-in-opacity',
'texture-url',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]