[gtk/fix-neg-scales-4.2: 22/22] testsuite: Add test for crasher




commit 14df31b5090372a612fac6996bfb864dfac7f507
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

 .../gsk/compare/scale-textures-negative-ngl.node   |  48 +++++++++++++++++++++
 .../gsk/compare/scale-textures-negative-ngl.png    | Bin 0 -> 265 bytes
 testsuite/gsk/meson.build                          |   1 +
 3 files changed, 49 insertions(+)
---
diff --git a/testsuite/gsk/compare/scale-textures-negative-ngl.node 
b/testsuite/gsk/compare/scale-textures-negative-ngl.node
new file mode 100644
index 0000000000..fbf1d8205e
--- /dev/null
+++ b/testsuite/gsk/compare/scale-textures-negative-ngl.node
@@ -0,0 +1,48 @@
+transform {
+  transform: scale(1, 1);
+  child: opacity {
+    opacity: 0.6;
+    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.6;
+    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.6;
+    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.6;
+    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-ngl.png 
b/testsuite/gsk/compare/scale-textures-negative-ngl.png
new file mode 100644
index 0000000000..8624e6c403
Binary files /dev/null and b/testsuite/gsk/compare/scale-textures-negative-ngl.png differ
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index edb06ad154..c3f674599e 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -56,6 +56,7 @@ compare_render_tests = [
   'outset_shadow_rounded_top',
   'outset_shadow_simple',
   'scaled-cairo',
+  'scale-textures-negative-ngl',
   'shadow-in-opacity',
   'texture-url',
   'color-matrix-identity',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]