mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 19:30:10 +00:00
tests: Add a CSS test for color parsing errors
In [particular check for the fix in the last commit.
This commit is contained in:
parent
9e2ebdee07
commit
f4a6ef0d50
@ -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 \
|
||||
|
31
tests/css/parser/colors-errors.css
Normal file
31
tests/css/parser/colors-errors.css
Normal 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);
|
||||
}
|
8
tests/css/parser/colors-errors.errors
Normal file
8
tests/css/parser/colors-errors.errors
Normal 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
|
0
tests/css/parser/colors-errors.ref.css
Normal file
0
tests/css/parser/colors-errors.ref.css
Normal file
Loading…
Reference in New Issue
Block a user