testsuite: Add a test for nearest vs linear scales
This commit is contained in:
16
testsuite/gsk/compare/texture-scale-nearest-vs-linear.node
Normal file
16
testsuite/gsk/compare/texture-scale-nearest-vs-linear.node
Normal 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";
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
testsuite/gsk/compare/texture-scale-nearest-vs-linear.png
Normal file
BIN
testsuite/gsk/compare/texture-scale-nearest-vs-linear.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 114 B |
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user