]> Pileus Git - ~andy/gtk/commitdiff
tests: Add a test for border parsing
authorBenjamin Otte <otte@redhat.com>
Sat, 9 Apr 2011 23:53:31 +0000 (01:53 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 19:58:45 +0000 (21:58 +0200)
tests/css/parser/Makefile.am
tests/css/parser/border.css [new file with mode: 0644]
tests/css/parser/border.errors [new file with mode: 0644]
tests/css/parser/border.ref.css [new file with mode: 0644]

index ca40b4694ef028fb882000c755f821220dc3a6a6..b990872dcc910236e9b33c98edc409cc5ce005d5 100644 (file)
@@ -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 (file)
index 0000000..1a0e252
--- /dev/null
@@ -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 (file)
index 0000000..a002e60
--- /dev/null
@@ -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 (file)
index 0000000..7cf5007
--- /dev/null
@@ -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;
+}