mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
tests: Add a test for enum values
This commit is contained in:
parent
619d344d8d
commit
710caeb512
@ -48,6 +48,9 @@ EXTRA_DIST += \
|
||||
does-not-exist.css \
|
||||
does-not-exist.errors \
|
||||
does-not-exist.ref.css \
|
||||
enum.css \
|
||||
enum.errors \
|
||||
enum.ref.css \
|
||||
import-cyclic-1.css \
|
||||
import-cyclic-1.errors \
|
||||
import-cyclic-1.ref.css \
|
||||
|
32
tests/css/parser/enum.css
Normal file
32
tests/css/parser/enum.css
Normal file
@ -0,0 +1,32 @@
|
||||
a {
|
||||
enum-property: in;
|
||||
}
|
||||
|
||||
b {
|
||||
enum-property: none;
|
||||
}
|
||||
|
||||
c {
|
||||
enum-property: 2;
|
||||
}
|
||||
|
||||
d {
|
||||
enum-property: "in";
|
||||
}
|
||||
|
||||
e {
|
||||
enum-property: non-existing;
|
||||
}
|
||||
|
||||
f {
|
||||
enum-property: "non-existing";
|
||||
}
|
||||
|
||||
g {
|
||||
enum-property: 34;
|
||||
}
|
||||
|
||||
h {
|
||||
enum-property: 12e;
|
||||
}
|
||||
|
6
tests/css/parser/enum.errors
Normal file
6
tests/css/parser/enum.errors
Normal file
@ -0,0 +1,6 @@
|
||||
enum.css:10: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||
enum.css:14: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||
enum.css:18: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||
enum.css:22: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||
enum.css:26: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||
enum.css:30: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
7
tests/css/parser/enum.ref.css
Normal file
7
tests/css/parser/enum.ref.css
Normal file
@ -0,0 +1,7 @@
|
||||
a {
|
||||
enum-property: in;
|
||||
}
|
||||
|
||||
b {
|
||||
enum-property: none;
|
||||
}
|
Loading…
Reference in New Issue
Block a user