forked from AuroraMiddleware/gtk
Update gsk tests
Add a clip-coordinates-2d test that is similar to clip-coordinates-3d, but actually uses a 2D transform.
This commit is contained in:
parent
e0cc7b5d86
commit
60e37d3368
22
testsuite/gsk/compare/clip-coordinates-2d.node
Normal file
22
testsuite/gsk/compare/clip-coordinates-2d.node
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/* This test checks that we get sharp clip boundaries
|
||||||
|
* for 2d transforms. Compare with clip-coordinates-3d.node,
|
||||||
|
* which uses a general transform and gets offscreen
|
||||||
|
* rendering with GL_LINEAR.
|
||||||
|
*/
|
||||||
|
transform {
|
||||||
|
transform: scale(2);
|
||||||
|
child: container {
|
||||||
|
color {
|
||||||
|
bounds: 0 0 50 50;
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
clip {
|
||||||
|
clip: 10 10 30 30;
|
||||||
|
child: color {
|
||||||
|
bounds: 0 0 50 50;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
testsuite/gsk/compare/clip-coordinates-2d.png
Normal file
BIN
testsuite/gsk/compare/clip-coordinates-2d.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 269 B |
@ -22,6 +22,7 @@ node_parser = executable(
|
|||||||
compare_render_tests = [
|
compare_render_tests = [
|
||||||
'blend-normal',
|
'blend-normal',
|
||||||
'blend-difference',
|
'blend-difference',
|
||||||
|
'clip-coordinates-2d',
|
||||||
'clip-coordinates-3d',
|
'clip-coordinates-3d',
|
||||||
'clipped_rounded_clip',
|
'clipped_rounded_clip',
|
||||||
'color-blur0',
|
'color-blur0',
|
||||||
|
Loading…
Reference in New Issue
Block a user