tests: Add another parsing test from the css spec

This commit is contained in:
Benjamin Otte 2011-04-14 17:48:06 +02:00
parent 3f07482b10
commit 42fb004dfc
4 changed files with 11 additions and 0 deletions

View File

@ -37,6 +37,9 @@ EXTRA_DIST += \
css-21-malformed-declarations.css \
css-21-malformed-declarations.errors \
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.errors \
declarations.ref.css \

View 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 */

View 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