tests: Add a CSS test for color parsing errors

In [particular check for the fix in the last commit.
This commit is contained in:
Benjamin Otte 2011-06-13 06:25:19 +02:00
parent 9e2ebdee07
commit f4a6ef0d50
4 changed files with 42 additions and 0 deletions

View File

@ -37,6 +37,9 @@ EXTRA_DIST += \
close-at-end-of-file.css \
close-at-end-of-file.errors \
close-at-end-of-file.ref.css \
colors-errors.css \
colors-errors.errors \
colors-errors.ref.css \
colors-red.css \
colors-red.ref.css \
css-21-malformed-declarations.css \

View File

@ -0,0 +1,31 @@
a {
rgba-property: #1;
}
b {
rgba-property: #12;
}
c {
rgba-property: #1234;
}
d {
rgba-property: #12345;
}
e {
rgba-property: #1234567;
}
f {
rgba-property: notacolorname;
}
g {
rgba-property: rgb(1,2,3,4);
}
h {
rgba-property: rgba(1,2,3,4,5);
}

View File

@ -0,0 +1,8 @@
colors-errors.css:2: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
colors-errors.css:6: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
colors-errors.css:10: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
colors-errors.css:14: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
colors-errors.css:18: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
colors-errors.css:22: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
colors-errors.css:26: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
colors-errors.css:30: error: GTK_CSS_PROVIDER_ERROR_SYNTAX

View File