mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
testsuite: Add empty node tests
For every node type, add a test that creates it empty and ensure that it prints the reference output.
This commit is contained in:
parent
b90a66cab5
commit
b37c2216fc
@ -80,6 +80,44 @@ node_parser_tests = [
|
||||
'crash4.errors',
|
||||
'crash4.node',
|
||||
'crash4.ref.node',
|
||||
'empty-blend.node',
|
||||
'empty-blend.ref.node',
|
||||
'empty-blur.node',
|
||||
'empty-blur.ref.node',
|
||||
'empty-border.node',
|
||||
'empty-border.ref.node',
|
||||
'empty-clip.node',
|
||||
'empty-clip.ref.node',
|
||||
'empty-color.node',
|
||||
'empty-color.ref.node',
|
||||
'empty-color-matrix.node',
|
||||
'empty-color-matrix.ref.node',
|
||||
'empty-container.node',
|
||||
'empty-container.ref.node',
|
||||
'empty-cross-fade.node',
|
||||
'empty-cross-fade.ref.node',
|
||||
'empty-debug.node',
|
||||
'empty-debug.ref.node',
|
||||
'empty-inset-shadow.node',
|
||||
'empty-inset-shadow.ref.node',
|
||||
'empty-linear-gradient.node',
|
||||
'empty-linear-gradient.ref.node',
|
||||
'empty-opacity.node',
|
||||
'empty-opacity.ref.node',
|
||||
'empty-outset-shadow.node',
|
||||
'empty-outset-shadow.ref.node',
|
||||
'empty-repeat.node',
|
||||
'empty-repeat.ref.node',
|
||||
'empty-rounded-clip.node',
|
||||
'empty-rounded-clip.ref.node',
|
||||
'empty-shadow.node',
|
||||
'empty-shadow.ref.node',
|
||||
'empty-text.node',
|
||||
'empty-text.ref.node',
|
||||
'empty-texture.node',
|
||||
'empty-texture.ref.node',
|
||||
'empty-transform.node',
|
||||
'empty-transform.ref.node',
|
||||
]
|
||||
|
||||
foreach test : node_parser_tests
|
||||
|
1
testsuite/gsk/nodeparser/empty-blend.node
Normal file
1
testsuite/gsk/nodeparser/empty-blend.node
Normal file
@ -0,0 +1 @@
|
||||
blend { }
|
10
testsuite/gsk/nodeparser/empty-blend.ref.node
Normal file
10
testsuite/gsk/nodeparser/empty-blend.ref.node
Normal file
@ -0,0 +1,10 @@
|
||||
blend {
|
||||
bottom: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(170,255,0);
|
||||
}
|
||||
top: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-blur.node
Normal file
1
testsuite/gsk/nodeparser/empty-blur.node
Normal file
@ -0,0 +1 @@
|
||||
blur { }
|
6
testsuite/gsk/nodeparser/empty-blur.ref.node
Normal file
6
testsuite/gsk/nodeparser/empty-blur.ref.node
Normal file
@ -0,0 +1,6 @@
|
||||
blur {
|
||||
child: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-border.node
Normal file
1
testsuite/gsk/nodeparser/empty-border.node
Normal file
@ -0,0 +1 @@
|
||||
border { }
|
3
testsuite/gsk/nodeparser/empty-border.ref.node
Normal file
3
testsuite/gsk/nodeparser/empty-border.ref.node
Normal file
@ -0,0 +1,3 @@
|
||||
border {
|
||||
outline: 0 0 50 50;
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-clip.node
Normal file
1
testsuite/gsk/nodeparser/empty-clip.node
Normal file
@ -0,0 +1 @@
|
||||
clip { }
|
7
testsuite/gsk/nodeparser/empty-clip.ref.node
Normal file
7
testsuite/gsk/nodeparser/empty-clip.ref.node
Normal file
@ -0,0 +1,7 @@
|
||||
clip {
|
||||
child: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
clip: 0 0 50 50;
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-color-matrix.node
Normal file
1
testsuite/gsk/nodeparser/empty-color-matrix.node
Normal file
@ -0,0 +1 @@
|
||||
color-matrix { }
|
6
testsuite/gsk/nodeparser/empty-color-matrix.ref.node
Normal file
6
testsuite/gsk/nodeparser/empty-color-matrix.ref.node
Normal file
@ -0,0 +1,6 @@
|
||||
color-matrix {
|
||||
child: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-color.node
Normal file
1
testsuite/gsk/nodeparser/empty-color.node
Normal file
@ -0,0 +1 @@
|
||||
color { }
|
4
testsuite/gsk/nodeparser/empty-color.ref.node
Normal file
4
testsuite/gsk/nodeparser/empty-color.ref.node
Normal file
@ -0,0 +1,4 @@
|
||||
color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,204);
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-container.node
Normal file
1
testsuite/gsk/nodeparser/empty-container.node
Normal file
@ -0,0 +1 @@
|
||||
container { }
|
0
testsuite/gsk/nodeparser/empty-container.ref.node
Normal file
0
testsuite/gsk/nodeparser/empty-container.ref.node
Normal file
1
testsuite/gsk/nodeparser/empty-cross-fade.node
Normal file
1
testsuite/gsk/nodeparser/empty-cross-fade.node
Normal file
@ -0,0 +1 @@
|
||||
cross-fade { }
|
10
testsuite/gsk/nodeparser/empty-cross-fade.ref.node
Normal file
10
testsuite/gsk/nodeparser/empty-cross-fade.ref.node
Normal file
@ -0,0 +1,10 @@
|
||||
cross-fade {
|
||||
end: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
start: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(170,255,0);
|
||||
}
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-debug.node
Normal file
1
testsuite/gsk/nodeparser/empty-debug.node
Normal file
@ -0,0 +1 @@
|
||||
debug { }
|
6
testsuite/gsk/nodeparser/empty-debug.ref.node
Normal file
6
testsuite/gsk/nodeparser/empty-debug.ref.node
Normal file
@ -0,0 +1,6 @@
|
||||
debug {
|
||||
child: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-inset-shadow.node
Normal file
1
testsuite/gsk/nodeparser/empty-inset-shadow.node
Normal file
@ -0,0 +1 @@
|
||||
inset-shadow { }
|
3
testsuite/gsk/nodeparser/empty-inset-shadow.ref.node
Normal file
3
testsuite/gsk/nodeparser/empty-inset-shadow.ref.node
Normal file
@ -0,0 +1,3 @@
|
||||
inset-shadow {
|
||||
outline: 0 0 50 50;
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-linear-gradient.node
Normal file
1
testsuite/gsk/nodeparser/empty-linear-gradient.node
Normal file
@ -0,0 +1 @@
|
||||
linear-gradient { }
|
6
testsuite/gsk/nodeparser/empty-linear-gradient.ref.node
Normal file
6
testsuite/gsk/nodeparser/empty-linear-gradient.ref.node
Normal file
@ -0,0 +1,6 @@
|
||||
linear-gradient {
|
||||
bounds: 0 0 50 50;
|
||||
end: 0 50;
|
||||
start: 0 0;
|
||||
stops: 0 rgb(170,255,0), 1 rgb(255,0,204);
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-opacity.node
Normal file
1
testsuite/gsk/nodeparser/empty-opacity.node
Normal file
@ -0,0 +1 @@
|
||||
opacity { }
|
6
testsuite/gsk/nodeparser/empty-opacity.ref.node
Normal file
6
testsuite/gsk/nodeparser/empty-opacity.ref.node
Normal file
@ -0,0 +1,6 @@
|
||||
opacity {
|
||||
child: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-outset-shadow.node
Normal file
1
testsuite/gsk/nodeparser/empty-outset-shadow.node
Normal file
@ -0,0 +1 @@
|
||||
outset-shadow { }
|
3
testsuite/gsk/nodeparser/empty-outset-shadow.ref.node
Normal file
3
testsuite/gsk/nodeparser/empty-outset-shadow.ref.node
Normal file
@ -0,0 +1,3 @@
|
||||
outset-shadow {
|
||||
outline: 0 0 50 50;
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-repeat.node
Normal file
1
testsuite/gsk/nodeparser/empty-repeat.node
Normal file
@ -0,0 +1 @@
|
||||
repeat { }
|
6
testsuite/gsk/nodeparser/empty-repeat.ref.node
Normal file
6
testsuite/gsk/nodeparser/empty-repeat.ref.node
Normal file
@ -0,0 +1,6 @@
|
||||
repeat {
|
||||
child: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-rounded-clip.node
Normal file
1
testsuite/gsk/nodeparser/empty-rounded-clip.node
Normal file
@ -0,0 +1 @@
|
||||
rounded-clip { }
|
7
testsuite/gsk/nodeparser/empty-rounded-clip.ref.node
Normal file
7
testsuite/gsk/nodeparser/empty-rounded-clip.ref.node
Normal file
@ -0,0 +1,7 @@
|
||||
rounded-clip {
|
||||
child: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
clip: 0 0 50 50;
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-shadow.node
Normal file
1
testsuite/gsk/nodeparser/empty-shadow.node
Normal file
@ -0,0 +1 @@
|
||||
shadow { }
|
7
testsuite/gsk/nodeparser/empty-shadow.ref.node
Normal file
7
testsuite/gsk/nodeparser/empty-shadow.ref.node
Normal file
@ -0,0 +1,7 @@
|
||||
shadow {
|
||||
child: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
shadows: rgb(0,0,0) 1 1;
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-text.node
Normal file
1
testsuite/gsk/nodeparser/empty-text.node
Normal file
@ -0,0 +1 @@
|
||||
text { }
|
4
testsuite/gsk/nodeparser/empty-text.ref.node
Normal file
4
testsuite/gsk/nodeparser/empty-text.ref.node
Normal file
@ -0,0 +1,4 @@
|
||||
text {
|
||||
font: "Cantarell 11";
|
||||
glyphs: "Hello";
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-texture.node
Normal file
1
testsuite/gsk/nodeparser/empty-texture.node
Normal file
@ -0,0 +1 @@
|
||||
texture { }
|
4
testsuite/gsk/nodeparser/empty-texture.ref.node
Normal file
4
testsuite/gsk/nodeparser/empty-texture.ref.node
Normal file
@ -0,0 +1,4 @@
|
||||
texture {
|
||||
bounds: 0 0 50 50;
|
||||
texture: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABmJLR0QA/wD/AP+gvaeTAAAAKUlEQVQYlWP8z3DmPwMaYGQwYUQXY0IXwAUGUCGGoxkYGBiweXAoeAYAz44F3e3U1xUAAAAASUVORK5CYII=");
|
||||
}
|
1
testsuite/gsk/nodeparser/empty-transform.node
Normal file
1
testsuite/gsk/nodeparser/empty-transform.node
Normal file
@ -0,0 +1 @@
|
||||
transform { }
|
6
testsuite/gsk/nodeparser/empty-transform.ref.node
Normal file
6
testsuite/gsk/nodeparser/empty-transform.ref.node
Normal file
@ -0,0 +1,6 @@
|
||||
transform {
|
||||
child: color {
|
||||
bounds: 0 0 50 50;
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user