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.
This commit is contained in:
Benjamin Otte 2019-05-20 03:32:30 +02:00
parent eb386134e3
commit 0a32305f01
39 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1 @@
blend { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

View 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;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

View File

@ -0,0 +1 @@
border { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

View File

@ -0,0 +1 @@
clip { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

View File

@ -0,0 +1 @@
color-matrix { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

View File

@ -0,0 +1 @@
color { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

View 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;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B

View 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;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

View File

@ -0,0 +1 @@
debug { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

View File

@ -0,0 +1 @@
inset-shadow { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

View File

@ -0,0 +1 @@
linear-gradient { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

View 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;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

View File

@ -0,0 +1 @@
outset-shadow { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

View File

@ -0,0 +1 @@
repeat { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

View File

@ -0,0 +1 @@
rounded-clip { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

View File

@ -0,0 +1 @@
shadow { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

View File

@ -0,0 +1 @@
text { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

View 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;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 B

View File

@ -0,0 +1 @@
transform { }

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

View File

@ -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',