[gtk+/parser: 29/74] tests: Add test for booleans to CSS tests



commit 157bb711733b668945328af4e2c0ec9a01088048
Author: Benjamin Otte <otte redhat com>
Date:   Sat Apr 9 13:48:45 2011 +0200

    tests: Add test for booleans to CSS tests

 tests/css/parser/Makefile.am     |    3 ++
 tests/css/parser/boolean.css     |   48 ++++++++++++++++++++++++++++++++++++++
 tests/css/parser/boolean.errors  |    8 ++++++
 tests/css/parser/boolean.ref.css |   31 ++++++++++++++++++++++++
 4 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index b606dcd..e0668fd 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -25,6 +25,9 @@ clean-local:
 	rm $(builddir)/*.out.css || true
 
 EXTRA_DIST += \
+	boolean.css \
+	boolean.errors \
+	boolean.ref.css \
 	close-at-end-of-file.css \
 	close-at-end-of-file.errors \
 	close-at-end-of-file.ref.css \
diff --git a/tests/css/parser/boolean.css b/tests/css/parser/boolean.css
new file mode 100644
index 0000000..6773140
--- /dev/null
+++ b/tests/css/parser/boolean.css
@@ -0,0 +1,48 @@
+a {
+  boolean-property: true;
+}
+b {
+  boolean-property: TRUE;
+}
+c {
+  boolean-property: tRuE;
+}
+d {
+  boolean-property: 1;
+}
+e {
+  boolean-property: false;
+}
+f {
+  boolean-property: FALSE;
+}
+g {
+  boolean-property: FAlsE;
+}
+h {
+  boolean-property: 0;
+}
+i {
+  boolean-property: trueest;
+}
+j {
+  boolean-property: T;
+}
+k {
+  boolean-property: tru;
+}
+l {
+  boolean-property: 0.0;
+}
+m {
+  boolean-property: 1.0;
+}
+n {
+  boolean-property: fals;
+}
+o {
+  boolean-property: f;
+}
+p {
+  boolean-property: FAL;
+}
diff --git a/tests/css/parser/boolean.errors b/tests/css/parser/boolean.errors
new file mode 100644
index 0000000..d609f13
--- /dev/null
+++ b/tests/css/parser/boolean.errors
@@ -0,0 +1,8 @@
+boolean.css:26: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:29: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:32: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:35: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:38: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:41: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:44: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:47: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
diff --git a/tests/css/parser/boolean.ref.css b/tests/css/parser/boolean.ref.css
new file mode 100644
index 0000000..1cc348d
--- /dev/null
+++ b/tests/css/parser/boolean.ref.css
@@ -0,0 +1,31 @@
+a {
+  boolean-property: true;
+}
+
+b {
+  boolean-property: true;
+}
+
+c {
+  boolean-property: true;
+}
+
+d {
+  boolean-property: true;
+}
+
+e {
+  boolean-property: false;
+}
+
+f {
+  boolean-property: false;
+}
+
+g {
+  boolean-property: false;
+}
+
+h {
+  boolean-property: false;
+}



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