mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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:
parent
72b35a32fd
commit
2b59c4cf16
17
testsuite/gsk/compare/transform-huge-child-3d-nocairo.node
Normal file
17
testsuite/gsk/compare/transform-huge-child-3d-nocairo.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-nocairo.png
Normal file
BIN
testsuite/gsk/compare/transform-huge-child-3d-nocairo.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 |
@ -112,6 +112,8 @@ compare_render_tests = [
|
||||
'texture-scale-offset',
|
||||
'texture-scale-stripes',
|
||||
'texture-url',
|
||||
'transform-huge-child',
|
||||
'transform-huge-child-3d-nocairo',
|
||||
'transform-in-transform',
|
||||
'transform-in-transform-in-transform',
|
||||
'z-transform-clipping-bounds-nocairo',
|
||||
|
Loading…
Reference in New Issue
Block a user