tests: Add another parsing test from the css spec
This commit is contained in:
@@ -37,6 +37,9 @@ EXTRA_DIST += \
|
|||||||
css-21-malformed-declarations.css \
|
css-21-malformed-declarations.css \
|
||||||
css-21-malformed-declarations.errors \
|
css-21-malformed-declarations.errors \
|
||||||
css-21-malformed-declarations.ref.css \
|
css-21-malformed-declarations.ref.css \
|
||||||
|
css-21-malformed-statements.css \
|
||||||
|
css-21-malformed-statements.errors \
|
||||||
|
css-21-malformed-statements.ref.css \
|
||||||
declarations.css \
|
declarations.css \
|
||||||
declarations.errors \
|
declarations.errors \
|
||||||
declarations.ref.css \
|
declarations.ref.css \
|
||||||
|
|||||||
4
tests/css/parser/css-21-malformed-statements.css
Normal file
4
tests/css/parser/css-21-malformed-statements.css
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
p @here {color: red} /* ruleset with unexpected at-keyword "@here" */
|
||||||
|
@foo @bar; /* at-rule with unexpected at-keyword "@bar" */
|
||||||
|
}} {{ - }} /* ruleset with unexpected right brace */
|
||||||
|
) ( {} ) p {color: red } /* ruleset with unexpected right parenthesis */
|
||||||
4
tests/css/parser/css-21-malformed-statements.errors
Normal file
4
tests/css/parser/css-21-malformed-statements.errors
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
css-21-malformed-statements.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||||
|
css-21-malformed-statements.css:2: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||||
|
css-21-malformed-statements.css:3: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||||
|
css-21-malformed-statements.css:4: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||||
Reference in New Issue
Block a user