[gtk+/parser: 40/57] tests: Add a test for border parsing



commit 41d1b9a2d538ba9fb8b8ded12835038977c5a48c
Author: Benjamin Otte <otte redhat com>
Date:   Sun Apr 10 01:53:31 2011 +0200

    tests: Add a test for border parsing

 tests/css/parser/Makefile.am    |    3 ++
 tests/css/parser/border.css     |   59 +++++++++++++++++++++++++++++++++++++++
 tests/css/parser/border.errors  |    8 +++++
 tests/css/parser/border.ref.css |   31 ++++++++++++++++++++
 4 files changed, 101 insertions(+), 0 deletions(-)
---
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index ca40b46..b990872 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -28,6 +28,9 @@ EXTRA_DIST += \
 	boolean.css \
 	boolean.errors \
 	boolean.ref.css \
+	border.css \
+	border.errors \
+	border.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/border.css b/tests/css/parser/border.css
new file mode 100644
index 0000000..1a0e252
--- /dev/null
+++ b/tests/css/parser/border.css
@@ -0,0 +1,59 @@
+a {
+  border-property: 1 2 3 4;
+}
+
+b {
+  border-property: 1 2 3;
+}
+
+c {
+  border-property: 1 2;
+}
+
+d {
+  border-property: 1;
+}
+
+e {
+  border-property: 0 0 0 0;
+}
+
+f {
+  border-property: 1px 2px 3 4px;
+}
+
+g {
+  border-property: 5 oops 6 7;
+}
+
+h {
+  border-property: true;
+}
+
+i {
+  border-property: -1;
+}
+
+j {
+  border-property: -5px;
+}
+
+k {
+  border-property: 3units;
+}
+
+l {
+  border-property: 1 2 3 4units;
+}
+
+m {
+  border-property: 1 2 3 4 5;
+}
+
+n {
+  border-property: 1 2 ; 4;
+}
+
+o {
+  border-property: none
+}
diff --git a/tests/css/parser/border.errors b/tests/css/parser/border.errors
new file mode 100644
index 0000000..a002e60
--- /dev/null
+++ b/tests/css/parser/border.errors
@@ -0,0 +1,8 @@
+border.css:26: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+border.css:30: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+border.css:34: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+border.css:38: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+border.css:42: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+border.css:46: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+border.css:50: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+border.css:54: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_NAME
diff --git a/tests/css/parser/border.ref.css b/tests/css/parser/border.ref.css
new file mode 100644
index 0000000..7cf5007
--- /dev/null
+++ b/tests/css/parser/border.ref.css
@@ -0,0 +1,31 @@
+a {
+  border-property: 1 2 3 4;
+}
+
+b {
+  border-property: 1 2 3;
+}
+
+c {
+  border-property: 1 2;
+}
+
+d {
+  border-property: 1;
+}
+
+e {
+  border-property: 0;
+}
+
+f {
+  border-property: 1 2 3 4;
+}
+
+n {
+  border-property: 1 2;
+}
+
+o {
+  border-property: none;
+}



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