tests: Add parsing test from the css spec
This commit is contained in:
@ -34,6 +34,9 @@ EXTRA_DIST += \
|
|||||||
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 \
|
||||||
|
css-21-malformed-declarations.css \
|
||||||
|
css-21-malformed-declarations.errors \
|
||||||
|
css-21-malformed-declarations.ref.css \
|
||||||
declarations.css \
|
declarations.css \
|
||||||
declarations.errors \
|
declarations.errors \
|
||||||
declarations.ref.css \
|
declarations.ref.css \
|
||||||
|
|||||||
7
tests/css/parser/css-21-malformed-declarations.css
Normal file
7
tests/css/parser/css-21-malformed-declarations.css
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
p { color:green }
|
||||||
|
p { color:green; color } /* malformed declaration missing ':', value */
|
||||||
|
p { color:red; color; color:green } /* same with expected recovery */
|
||||||
|
p { color:green; color: } /* malformed declaration missing value */
|
||||||
|
p { color:red; color:; color:green } /* same with expected recovery */
|
||||||
|
p { color:green; color{;color:maroon} } /* unexpected tokens { } */
|
||||||
|
p { color:red; color{;color:maroon}; color:green } /* same with recovery */
|
||||||
6
tests/css/parser/css-21-malformed-declarations.errors
Normal file
6
tests/css/parser/css-21-malformed-declarations.errors
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
css-21-malformed-declarations.css:2: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||||
|
css-21-malformed-declarations.css:3: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||||
|
css-21-malformed-declarations.css:4: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||||
|
css-21-malformed-declarations.css:5: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||||
|
css-21-malformed-declarations.css:6: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||||
|
css-21-malformed-declarations.css:7: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||||
27
tests/css/parser/css-21-malformed-declarations.ref.css
Normal file
27
tests/css/parser/css-21-malformed-declarations.ref.css
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
p {
|
||||||
|
color: rgb(0,255,0);
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: rgb(0,255,0);
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: rgb(0,255,0);
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: rgb(0,255,0);
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: rgb(0,255,0);
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: rgb(0,255,0);
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: rgb(0,255,0);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user