testsuite: Test we don't crash with overly large nodes
... when these nodes are used as children of a complex transform nodes and we lose the clip.
This commit is contained in:
17
testsuite/gsk/compare/transform-huge-child-3d.node
Normal file
17
testsuite/gsk/compare/transform-huge-child-3d.node
Normal file
@@ -0,0 +1,17 @@
|
||||
/* a normal clip */
|
||||
clip {
|
||||
clip: 0 0 50 50;
|
||||
/* a 3D transform */
|
||||
child: transform {
|
||||
transform: rotateX(1);
|
||||
/* a node that forces an offscreen */
|
||||
child: rounded-clip {
|
||||
clip: -30000 -30000 60000 60000 / 5;
|
||||
child: color {
|
||||
/* way too big, but it's clipped, so no problem */
|
||||
bounds: -30000 -30000 60000 60000;
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
testsuite/gsk/compare/transform-huge-child-3d.png
Normal file
BIN
testsuite/gsk/compare/transform-huge-child-3d.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 144 B |
13
testsuite/gsk/compare/transform-huge-child.node
Normal file
13
testsuite/gsk/compare/transform-huge-child.node
Normal file
@@ -0,0 +1,13 @@
|
||||
clip {
|
||||
clip: 0 0 50 50;
|
||||
child: transform {
|
||||
transform: rotate(1);
|
||||
child: rounded-clip {
|
||||
clip: -30000 -30000 60000 60000 / 5;
|
||||
child: color {
|
||||
bounds: -30000 -30000 60000 60000;
|
||||
color: rgb(255,0,0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
testsuite/gsk/compare/transform-huge-child.png
Normal file
BIN
testsuite/gsk/compare/transform-huge-child.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 144 B |
@@ -92,6 +92,8 @@ compare_render_tests = [
|
||||
'texture-scale-magnify-rotate',
|
||||
'texture-scale-stripes',
|
||||
'texture-url',
|
||||
'transform-huge-child',
|
||||
'transform-huge-child-3d',
|
||||
'transform-in-transform',
|
||||
'transform-in-transform-in-transform',
|
||||
'z-transform-clipping-bounds-3d',
|
||||
|
||||
Reference in New Issue
Block a user