testsuite: Add testcase for z clipping
the near and far clipping plane are at -10000 and 10000 respectively. Test that the renderers respect that.
This commit is contained in:
28
testsuite/gsk/compare/z-transform-clipping-bounds-3d.node
Normal file
28
testsuite/gsk/compare/z-transform-clipping-bounds-3d.node
Normal file
@@ -0,0 +1,28 @@
|
||||
transform {
|
||||
transform: translate3d(0, 0, -10000);
|
||||
child: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,0);
|
||||
}
|
||||
}
|
||||
transform {
|
||||
transform: translate3d(0, 0, -10001);
|
||||
child: color {
|
||||
bounds: 50 0 50 50;
|
||||
color: rgb(255,255,0);
|
||||
}
|
||||
}
|
||||
transform {
|
||||
transform: translate3d(0, 0, 10000);
|
||||
child: color {
|
||||
bounds: 0 50 50 50;
|
||||
color: rgb(0,255,0);
|
||||
}
|
||||
}
|
||||
transform {
|
||||
transform: translate3d(0, 0, 10001);
|
||||
child: color {
|
||||
bounds: 50 50 50 50;
|
||||
color: rgb(0,0,255);
|
||||
}
|
||||
}
|
||||
BIN
testsuite/gsk/compare/z-transform-clipping-bounds-3d.png
Normal file
BIN
testsuite/gsk/compare/z-transform-clipping-bounds-3d.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 331 B |
@@ -88,6 +88,7 @@ compare_render_tests = [
|
||||
'texture-url',
|
||||
'transform-in-transform',
|
||||
'transform-in-transform-in-transform',
|
||||
'z-transform-clipping-bounds-3d',
|
||||
]
|
||||
|
||||
# these are too sensitive to differences in the renderers
|
||||
|
||||
Reference in New Issue
Block a user