mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 04:31:09 +00:00
testsuite: Add parsing tests for node and texture naming
This commit is contained in:
parent
0d6a6a5997
commit
9dd050ff30
@ -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',
|
||||
|
4
testsuite/gsk/nodeparser/node-names-everywhere.errors
Normal file
4
testsuite/gsk/nodeparser/node-names-everywhere.errors
Normal 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
|
9
testsuite/gsk/nodeparser/node-names-everywhere.node
Normal file
9
testsuite/gsk/nodeparser/node-names-everywhere.node
Normal file
@ -0,0 +1,9 @@
|
||||
"foo";
|
||||
container "foo" {
|
||||
"foo";
|
||||
container "foo" {
|
||||
"foo";
|
||||
}
|
||||
"foo";
|
||||
}
|
||||
"foo";
|
6
testsuite/gsk/nodeparser/node-names-everywhere.ref.node
Normal file
6
testsuite/gsk/nodeparser/node-names-everywhere.ref.node
Normal file
@ -0,0 +1,6 @@
|
||||
container {
|
||||
container "node1" {
|
||||
}
|
||||
"node1";
|
||||
}
|
||||
"node1";
|
8
testsuite/gsk/nodeparser/node-names.node
Normal file
8
testsuite/gsk/nodeparser/node-names.node
Normal file
@ -0,0 +1,8 @@
|
||||
color "node1" {
|
||||
bounds: 0 0 10 10;
|
||||
color: rgb(23,42,69);
|
||||
}
|
||||
transform {
|
||||
transform: translate(20, 0);
|
||||
child: "node1";
|
||||
}
|
10
testsuite/gsk/nodeparser/texture-names.node
Normal file
10
testsuite/gsk/nodeparser/texture-names.node
Normal 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";
|
||||
}
|
Loading…
Reference in New Issue
Block a user