diff --git a/testsuite/gsk/compare/texture-scale-nearest-vs-linear.node b/testsuite/gsk/compare/texture-scale-nearest-vs-linear.node new file mode 100644 index 0000000000..be9a5ec4c9 --- /dev/null +++ b/testsuite/gsk/compare/texture-scale-nearest-vs-linear.node @@ -0,0 +1,16 @@ +color-matrix { + matrix: matrix3d(1000, 0, 0, 0, 0, 1000, 0, 0, 0, 0, 1000, 0, 0, 0, 0, 1); + child: container { + texture-scale { + bounds: 0 0 20 10; + texture: "texture1" url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAABCAYAAAD0In+KAAAAEUlEQVQImWP4z8Dwn+E/w38AEPgD\ +/V+dao0AAAAASUVORK5CYII=\ +"); + } + texture-scale { + bounds: 0 15 20 10; + filter: nearest; + texture: "texture1"; + } + } +} diff --git a/testsuite/gsk/compare/texture-scale-nearest-vs-linear.png b/testsuite/gsk/compare/texture-scale-nearest-vs-linear.png new file mode 100644 index 0000000000..095b8eb79f Binary files /dev/null and b/testsuite/gsk/compare/texture-scale-nearest-vs-linear.png differ diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index 2e3613c3e5..039932a5bf 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -101,6 +101,7 @@ compare_render_tests = [ 'texture-scale-filters-3d', 'texture-scale-magnify-10000x', 'texture-scale-magnify-rotate', + 'texture-scale-nearest-vs-linear', 'texture-scale-stripes', 'texture-url', 'transform-in-transform',