testsuite: Add a test for nearest vs linear scales

This commit is contained in:
Benjamin Otte
2023-10-29 19:02:09 +01:00
parent 76007c4d09
commit a30e9dcfeb
3 changed files with 17 additions and 0 deletions

View File

@@ -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";
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 B

View File

@@ -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',