tests: Add a test for enum values

This commit is contained in:
Benjamin Otte 2011-05-15 01:22:24 +02:00
parent 619d344d8d
commit 710caeb512
4 changed files with 48 additions and 0 deletions

View File

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

View 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

View File

@ -0,0 +1,7 @@
a {
enum-property: in;
}
b {
enum-property: none;
}