Add a test for scaled textures
authorMatthias Clasen <mclasen@redhat.com>
Sat, 11 Feb 2023 18:43:05 +0000 (13:43 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 11 Feb 2023 20:09:38 +0000 (15:09 -0500)
testsuite/gsk/compare/scaled-texture.node [new file with mode: 0644]
testsuite/gsk/compare/scaled-texture.png [new file with mode: 0644]
testsuite/gsk/meson.build

diff --git a/testsuite/gsk/compare/scaled-texture.node b/testsuite/gsk/compare/scaled-texture.node
new file mode 100644 (file)
index 0000000..ffcf912
--- /dev/null
@@ -0,0 +1,7 @@
+container {
+  texture-scale {
+    texture: url("some-10x10-image-with-content.png");
+    bounds: 0 0 100 100;
+    filter: nearest;
+  }
+}
diff --git a/testsuite/gsk/compare/scaled-texture.png b/testsuite/gsk/compare/scaled-texture.png
new file mode 100644 (file)
index 0000000..acc16bf
Binary files /dev/null and b/testsuite/gsk/compare/scaled-texture.png differ
index 1897562465996bb97b56e078fbfb26875c595db7..631f4127bb894ca8c200cf6118cfdddeedcf5313 100644 (file)
@@ -75,6 +75,7 @@ compare_render_tests = [
   'transform-in-transform',
   'transform-in-transform-in-transform',
   'rounded-clip-in-clip-3d', # not really 3d, but cairo fails it
+  'scaled-texture',
 ]
 
 # these are too sensitive to differences in the renderers