testsuite: Add render tests for all the empty nodes
Test that rendering empty nodes succees. For a lot of nodes the resulting rendering isn't clearly defined, in those cases we overdraw those regions (sometimes the whole image) with black.
1
testsuite/gsk/compare/empty-blend.node
Normal file
@ -0,0 +1 @@
|
||||
blend { }
|
BIN
testsuite/gsk/compare/empty-blend.png
Normal file
After Width: | Height: | Size: 153 B |
20
testsuite/gsk/compare/empty-blur.node
Normal file
@ -0,0 +1,20 @@
|
||||
blur { }
|
||||
|
||||
/* The blur algorithm isn't specified, so
|
||||
don't test it. */
|
||||
color {
|
||||
bounds: -3 -3 50 6;
|
||||
color: black;
|
||||
}
|
||||
color {
|
||||
bounds: 47 -3 6 50;
|
||||
color: black;
|
||||
}
|
||||
color {
|
||||
bounds: 3 47 50 6;
|
||||
color: black;
|
||||
}
|
||||
color {
|
||||
bounds: -3 3 6 50;
|
||||
color: black;
|
||||
}
|
BIN
testsuite/gsk/compare/empty-blur.png
Normal file
After Width: | Height: | Size: 167 B |
1
testsuite/gsk/compare/empty-border.node
Normal file
@ -0,0 +1 @@
|
||||
border { }
|
BIN
testsuite/gsk/compare/empty-border.png
Normal file
After Width: | Height: | Size: 169 B |
1
testsuite/gsk/compare/empty-clip.node
Normal file
@ -0,0 +1 @@
|
||||
clip { }
|
BIN
testsuite/gsk/compare/empty-clip.png
Normal file
After Width: | Height: | Size: 153 B |
1
testsuite/gsk/compare/empty-color-matrix.node
Normal file
@ -0,0 +1 @@
|
||||
color-matrix { }
|
BIN
testsuite/gsk/compare/empty-color-matrix.png
Normal file
After Width: | Height: | Size: 153 B |
1
testsuite/gsk/compare/empty-color.node
Normal file
@ -0,0 +1 @@
|
||||
color { }
|
BIN
testsuite/gsk/compare/empty-color.png
Normal file
After Width: | Height: | Size: 153 B |
8
testsuite/gsk/compare/empty-container.node
Normal file
@ -0,0 +1,8 @@
|
||||
container { }
|
||||
|
||||
/* We need to contain something because 0x0 nodes
|
||||
cause NULL textures */
|
||||
color {
|
||||
bounds: -1 -1 1 1;
|
||||
color: transparent;
|
||||
}
|
BIN
testsuite/gsk/compare/empty-container.png
Normal file
After Width: | Height: | Size: 86 B |
9
testsuite/gsk/compare/empty-cross-fade.node
Normal file
@ -0,0 +1,9 @@
|
||||
cross-fade { }
|
||||
|
||||
/* This is not very useful as a test, because the
|
||||
resulting color is undefined, because 0.5 * 255
|
||||
can be rounded to either 127 or 128 by the renderers.
|
||||
But at least we know they get the size right... */
|
||||
color {
|
||||
color: black;
|
||||
}
|
BIN
testsuite/gsk/compare/empty-cross-fade.png
Normal file
After Width: | Height: | Size: 105 B |
1
testsuite/gsk/compare/empty-debug.node
Normal file
@ -0,0 +1 @@
|
||||
debug { }
|
BIN
testsuite/gsk/compare/empty-debug.png
Normal file
After Width: | Height: | Size: 153 B |
1
testsuite/gsk/compare/empty-inset-shadow.node
Normal file
@ -0,0 +1 @@
|
||||
inset-shadow { }
|
BIN
testsuite/gsk/compare/empty-inset-shadow.png
Normal file
After Width: | Height: | Size: 164 B |
1
testsuite/gsk/compare/empty-linear-gradient.node
Normal file
@ -0,0 +1 @@
|
||||
linear-gradient { }
|
BIN
testsuite/gsk/compare/empty-linear-gradient.png
Normal file
After Width: | Height: | Size: 203 B |
9
testsuite/gsk/compare/empty-opacity.node
Normal file
@ -0,0 +1,9 @@
|
||||
opacity { }
|
||||
|
||||
/* This is not very useful as a test, because the
|
||||
resulting color is undefined, because 0.5 * 255
|
||||
can be rounded to either 127 or 128 by the renderers.
|
||||
But at least we know they get the size right... */
|
||||
color {
|
||||
color: black;
|
||||
}
|
BIN
testsuite/gsk/compare/empty-opacity.png
Normal file
After Width: | Height: | Size: 105 B |
1
testsuite/gsk/compare/empty-outset-shadow.node
Normal file
@ -0,0 +1 @@
|
||||
outset-shadow { }
|
BIN
testsuite/gsk/compare/empty-outset-shadow.png
Normal file
After Width: | Height: | Size: 168 B |
1
testsuite/gsk/compare/empty-repeat.node
Normal file
@ -0,0 +1 @@
|
||||
repeat { }
|
BIN
testsuite/gsk/compare/empty-repeat.png
Normal file
After Width: | Height: | Size: 153 B |
1
testsuite/gsk/compare/empty-rounded-clip.node
Normal file
@ -0,0 +1 @@
|
||||
rounded-clip { }
|
BIN
testsuite/gsk/compare/empty-rounded-clip.png
Normal file
After Width: | Height: | Size: 153 B |
1
testsuite/gsk/compare/empty-shadow.node
Normal file
@ -0,0 +1 @@
|
||||
shadow { }
|
BIN
testsuite/gsk/compare/empty-shadow.png
Normal file
After Width: | Height: | Size: 181 B |
1
testsuite/gsk/compare/empty-text.node
Normal file
@ -0,0 +1 @@
|
||||
text { }
|
BIN
testsuite/gsk/compare/empty-text.png
Normal file
After Width: | Height: | Size: 405 B |
12
testsuite/gsk/compare/empty-texture.node
Normal file
@ -0,0 +1,12 @@
|
||||
texture { }
|
||||
|
||||
/* The bilinear filtering code can differ
|
||||
between implementations, so cover it */
|
||||
color {
|
||||
bounds: 21 0 10 50;
|
||||
color: black;
|
||||
}
|
||||
color {
|
||||
bounds: 0 21 50 10;
|
||||
color: black;
|
||||
}
|
BIN
testsuite/gsk/compare/empty-texture.png
Normal file
After Width: | Height: | Size: 197 B |
1
testsuite/gsk/compare/empty-transform.node
Normal file
@ -0,0 +1 @@
|
||||
transform { }
|
BIN
testsuite/gsk/compare/empty-transform.png
Normal file
After Width: | Height: | Size: 153 B |
@ -32,6 +32,25 @@ compare_render_tests = [
|
||||
'clipped_rounded_clip',
|
||||
'color-blur0',
|
||||
'cross-fade-in-opacity',
|
||||
'empty-blend',
|
||||
'empty-blur',
|
||||
'empty-border',
|
||||
'empty-clip',
|
||||
'empty-color',
|
||||
'empty-color-matrix',
|
||||
'empty-container',
|
||||
'empty-cross-fade',
|
||||
'empty-debug',
|
||||
'empty-inset-shadow',
|
||||
'empty-linear-gradient',
|
||||
'empty-opacity',
|
||||
'empty-outset-shadow',
|
||||
'empty-repeat',
|
||||
'empty-rounded-clip',
|
||||
'empty-shadow',
|
||||
'empty-text',
|
||||
'empty-texture',
|
||||
'empty-transform',
|
||||
'opacity_clip',
|
||||
'outset_shadow_offset_both',
|
||||
'outset_shadow_offset_x',
|
||||
|