testsuite: Add tests for empty mask children
The compare tests use an empty container node, but running them with --replay ends up with empty nodes in snapshots due to how containers are replayed. Related: !7396 Related: #6761
This commit is contained in:
35
testsuite/gsk/compare/mask-empty-mask.node
Normal file
35
testsuite/gsk/compare/mask-empty-mask.node
Normal file
@@ -0,0 +1,35 @@
|
||||
mask {
|
||||
source: color {
|
||||
bounds: 0 0 40 40;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
mask: container {
|
||||
}
|
||||
}
|
||||
mask {
|
||||
mode: inverted-alpha;
|
||||
source: color {
|
||||
bounds: 0 50 40 40;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
mask: container {
|
||||
}
|
||||
}
|
||||
mask {
|
||||
mode: luminance;
|
||||
source: color {
|
||||
bounds: 50 0 40 40;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
mask: container {
|
||||
}
|
||||
}
|
||||
mask {
|
||||
mode: inverted-luminance;
|
||||
source: color {
|
||||
bounds: 50 50 40 40;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
mask: container {
|
||||
}
|
||||
}
|
||||
BIN
testsuite/gsk/compare/mask-empty-mask.png
Normal file
BIN
testsuite/gsk/compare/mask-empty-mask.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 106 B |
41
testsuite/gsk/compare/mask-empty-source.node
Normal file
41
testsuite/gsk/compare/mask-empty-source.node
Normal file
@@ -0,0 +1,41 @@
|
||||
/* guarantee bounds */
|
||||
color {
|
||||
color: transparent;
|
||||
bounds: 0 0 90 90;
|
||||
}
|
||||
|
||||
mask {
|
||||
source: container {
|
||||
}
|
||||
mask: color {
|
||||
bounds: 0 0 40 40;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
}
|
||||
mask {
|
||||
mode: inverted-alpha;
|
||||
source: container {
|
||||
}
|
||||
mask: color {
|
||||
bounds: 0 50 40 40;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
}
|
||||
mask {
|
||||
mode: luminance;
|
||||
source: container {
|
||||
}
|
||||
mask: color {
|
||||
bounds: 50 0 40 40;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
}
|
||||
mask {
|
||||
mode: inverted-luminance;
|
||||
source: container {
|
||||
}
|
||||
mask: color {
|
||||
bounds: 50 50 40 40;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
}
|
||||
BIN
testsuite/gsk/compare/mask-empty-source.png
Normal file
BIN
testsuite/gsk/compare/mask-empty-source.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 102 B |
@@ -99,6 +99,8 @@ compare_render_tests = [
|
||||
'linear-gradient-with-64-colorstops',
|
||||
'mask',
|
||||
'mask-clipped-inverted-alpha',
|
||||
'mask-empty-mask',
|
||||
'mask-empty-source',
|
||||
'mask-modes',
|
||||
'mask-modes-in-opacity',
|
||||
'mask-modes-with-alpha',
|
||||
|
||||
Reference in New Issue
Block a user