testsuite: Add parsing tests for node and texture naming

This commit is contained in:
Benjamin Otte 2023-03-29 00:12:59 +02:00
parent 0d6a6a5997
commit 9dd050ff30
6 changed files with 42 additions and 0 deletions

View File

@ -221,6 +221,10 @@ node_parser_tests = [
'gradient-fail.errors',
'mask-modes.node',
'mask-modes.ref.node',
'node-names.node',
'node-names-everywhere.errors',
'node-names-everywhere.node',
'node-names-everywhere.ref.node',
'radial-gradient.node',
'radial-gradient.ref.node',
'repeating-linear-gradient.node',
@ -242,6 +246,7 @@ node_parser_tests = [
'texture-fail.node',
'texture-fail.ref.node',
'texture-fail.ref.errors',
'texture-names.node',
'texture-scale-filters.node',
'texture-scale-filters.ref.node',
'texture-scale-unknown-filter.errors',

View File

@ -0,0 +1,4 @@
<data>:1:1-6: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
<data>:3:3-8: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
<data>:5:5-10: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
<data>:2:11-16: error: GTK_CSS_PARSER_ERROR_FAILED

View File

@ -0,0 +1,9 @@
"foo";
container "foo" {
"foo";
container "foo" {
"foo";
}
"foo";
}
"foo";

View File

@ -0,0 +1,6 @@
container {
container "node1" {
}
"node1";
}
"node1";

View File

@ -0,0 +1,8 @@
color "node1" {
bounds: 0 0 10 10;
color: rgb(23,42,69);
}
transform {
transform: translate(20, 0);
child: "node1";
}

View File

@ -0,0 +1,10 @@
texture {
bounds: 0 0 1 1;
texture: "texture1" url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWP4z8DwHwAFAAH/q842\
iQAAAABJRU5ErkJggg==\
");
}
texture {
bounds: 2 0 1 1;
texture: "texture1";
}