mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
testsuite: Add crossfade-clip-both-children test
This one tests a crossfade between two non-overlapping nodes with a clip region that covers neither of the two nodes. This tests that renderers can deal with clip regions that doesn't overlap nodes in a situation where they will most likely want to create an offscreen. As offscreens are typically clipped to the clip region, this would cause an empty offscreen and that can cause failures.
This commit is contained in:
parent
853e8719c6
commit
f5955feea1
18
testsuite/gsk/compare/crossfade-clip-both-children.node
Normal file
18
testsuite/gsk/compare/crossfade-clip-both-children.node
Normal file
@ -0,0 +1,18 @@
|
||||
color {
|
||||
bounds: 0 0 150 50;
|
||||
color: rgb(0,0,0);
|
||||
}
|
||||
clip {
|
||||
clip: 50 0 50 50;
|
||||
child: cross-fade {
|
||||
progress: 0.6;
|
||||
start: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,0);
|
||||
}
|
||||
end: color {
|
||||
bounds: 100 0 50 50;
|
||||
color: rgb(0,0,255);
|
||||
}
|
||||
}
|
||||
}
|
BIN
testsuite/gsk/compare/crossfade-clip-both-children.png
Normal file
BIN
testsuite/gsk/compare/crossfade-clip-both-children.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 214 B |
@ -35,6 +35,7 @@ compare_render_tests = [
|
||||
'color-blur0',
|
||||
'color-matrix-identity',
|
||||
'color-matrix-parsing',
|
||||
'crossfade-clip-both-children',
|
||||
'cross-fade-in-opacity',
|
||||
'cross-fade-in-rotate',
|
||||
'css-background',
|
||||
|
Loading…
Reference in New Issue
Block a user