[gtk+/parser: 33/74] tests: Add new test checking weird behavior for declarations



commit c586bdb78e7d85ede2cdb559e1a99bf9908dd32f
Author: Benjamin Otte <otte redhat com>
Date:   Sun Apr 10 01:52:58 2011 +0200

    tests: Add new test checking weird behavior for declarations

 tests/css/parser/Makefile.am          |    3 ++
 tests/css/parser/declarations.css     |   50 +++++++++++++++++++++++++++++++++
 tests/css/parser/declarations.errors  |   14 +++++++++
 tests/css/parser/declarations.ref.css |   28 ++++++++++++++++++
 4 files changed, 95 insertions(+), 0 deletions(-)
---
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index 934d95a..ca40b46 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -31,6 +31,9 @@ EXTRA_DIST += \
 	close-at-end-of-file.css \
 	close-at-end-of-file.errors \
 	close-at-end-of-file.ref.css \
+	declarations.css \
+	declarations.errors \
+	declarations.ref.css \
 	does-not-exist.css \
 	does-not-exist.errors \
 	does-not-exist.ref.css \
diff --git a/tests/css/parser/declarations.css b/tests/css/parser/declarations.css
new file mode 100644
index 0000000..05fc0e5
--- /dev/null
+++ b/tests/css/parser/declarations.css
@@ -0,0 +1,50 @@
+a { ;;; }
+
+b { }
+
+c {
+}
+
+d { ; int-property: 42; }
+
+e {
+  int-property: 42;
+  ;
+  ;
+  ;
+  uint-property: 42;
+}
+
+f {
+  int-property: 42
+}
+
+g { int-property: 42 }
+
+h { int-property }
+
+i { int-property; }
+
+j { int-property: }
+
+k { int-property : }
+
+l { int-property: ; }
+
+m { int-property:; }
+
+n { int-property: ; }
+
+h { int-property uint-property: 42; }
+
+i { int-property; uint-property: 42; }
+
+j { int-property: uint-property: 42; }
+
+k { int-property : uint-property: 42; }
+
+l { int-property: uint-property: 42; }
+
+m { int-property:; uint-property: 42; }
+
+n { int-property: ; uint-property: 42; }
diff --git a/tests/css/parser/declarations.errors b/tests/css/parser/declarations.errors
new file mode 100644
index 0000000..0b36cbf
--- /dev/null
+++ b/tests/css/parser/declarations.errors
@@ -0,0 +1,14 @@
+declarations.css:24: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+declarations.css:26: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+declarations.css:28: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+declarations.css:30: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+declarations.css:32: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+declarations.css:34: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+declarations.css:36: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+declarations.css:38: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+declarations.css:40: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+declarations.css:42: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+declarations.css:44: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+declarations.css:46: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+declarations.css:48: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+declarations.css:50: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/declarations.ref.css b/tests/css/parser/declarations.ref.css
new file mode 100644
index 0000000..9274798
--- /dev/null
+++ b/tests/css/parser/declarations.ref.css
@@ -0,0 +1,28 @@
+d {
+  int-property: 42;
+}
+
+e {
+  int-property: 42;
+  uint-property: 42;
+}
+
+f {
+  int-property: 42;
+}
+
+g {
+  int-property: 42;
+}
+
+i {
+  uint-property: 42;
+}
+
+m {
+  uint-property: 42;
+}
+
+n {
+  uint-property: 42;
+}



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