[gtk+/parser: 72/74] tests: Add another parsing test from the css spec



commit 0eab0abe4a826f61a1a5f01fdee1d8dd557bda59
Author: Benjamin Otte <otte redhat com>
Date:   Thu Apr 14 17:48:06 2011 +0200

    tests: Add another parsing test from the css spec

 tests/css/parser/Makefile.am                       |    3 +++
 tests/css/parser/css-21-malformed-statements.css   |    4 ++++
 .../css/parser/css-21-malformed-statements.errors  |    4 ++++
 3 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index 75cc6cc..00ee38d 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -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 \
diff --git a/tests/css/parser/css-21-malformed-statements.css b/tests/css/parser/css-21-malformed-statements.css
new file mode 100644
index 0000000..38ffea9
--- /dev/null
+++ b/tests/css/parser/css-21-malformed-statements.css
@@ -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 */
diff --git a/tests/css/parser/css-21-malformed-statements.errors b/tests/css/parser/css-21-malformed-statements.errors
new file mode 100644
index 0000000..3fdb242
--- /dev/null
+++ b/tests/css/parser/css-21-malformed-statements.errors
@@ -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
diff --git a/tests/css/parser/css-21-malformed-statements.ref.css b/tests/css/parser/css-21-malformed-statements.ref.css
new file mode 100644
index 0000000..e69de29



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]