tests: Add test for booleans to CSS tests

This commit is contained in:
Benjamin Otte 2011-04-09 13:48:45 +02:00
parent 5e054b37a2
commit d28816bdba
4 changed files with 90 additions and 0 deletions

View File

@ -25,6 +25,9 @@ clean-local:
rm $(builddir)/*.out.css || true rm $(builddir)/*.out.css || true
EXTRA_DIST += \ EXTRA_DIST += \
boolean.css \
boolean.errors \
boolean.ref.css \
close-at-end-of-file.css \ close-at-end-of-file.css \
close-at-end-of-file.errors \ close-at-end-of-file.errors \
close-at-end-of-file.ref.css \ close-at-end-of-file.ref.css \

View File

@ -0,0 +1,48 @@
a {
boolean-property: true;
}
b {
boolean-property: TRUE;
}
c {
boolean-property: tRuE;
}
d {
boolean-property: 1;
}
e {
boolean-property: false;
}
f {
boolean-property: FALSE;
}
g {
boolean-property: FAlsE;
}
h {
boolean-property: 0;
}
i {
boolean-property: trueest;
}
j {
boolean-property: T;
}
k {
boolean-property: tru;
}
l {
boolean-property: 0.0;
}
m {
boolean-property: 1.0;
}
n {
boolean-property: fals;
}
o {
boolean-property: f;
}
p {
boolean-property: FAL;
}

View File

@ -0,0 +1,8 @@
boolean.css:26: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
boolean.css:29: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
boolean.css:32: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
boolean.css:35: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
boolean.css:38: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
boolean.css:41: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
boolean.css:44: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
boolean.css:47: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE

View File

@ -0,0 +1,31 @@
a {
boolean-property: true;
}
b {
boolean-property: true;
}
c {
boolean-property: true;
}
d {
boolean-property: true;
}
e {
boolean-property: false;
}
f {
boolean-property: false;
}
g {
boolean-property: false;
}
h {
boolean-property: false;
}