[gtk+] tests: Add a test for enum values
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Add a test for enum values
- Date: Wed, 18 May 2011 20:31:15 +0000 (UTC)
commit 710caeb5122c75e8cc0c99fa19d7092060f80975
Author: Benjamin Otte <otte redhat com>
Date: Sun May 15 01:22:24 2011 +0200
tests: Add a test for enum values
tests/css/parser/Makefile.am | 3 +++
tests/css/parser/enum.css | 32 ++++++++++++++++++++++++++++++++
tests/css/parser/enum.errors | 6 ++++++
tests/css/parser/enum.ref.css | 7 +++++++
4 files changed, 48 insertions(+), 0 deletions(-)
---
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index 9ffd437..6842b3a 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -48,6 +48,9 @@ EXTRA_DIST += \
does-not-exist.css \
does-not-exist.errors \
does-not-exist.ref.css \
+ enum.css \
+ enum.errors \
+ enum.ref.css \
import-cyclic-1.css \
import-cyclic-1.errors \
import-cyclic-1.ref.css \
diff --git a/tests/css/parser/enum.css b/tests/css/parser/enum.css
new file mode 100644
index 0000000..8416e93
--- /dev/null
+++ b/tests/css/parser/enum.css
@@ -0,0 +1,32 @@
+a {
+ enum-property: in;
+}
+
+b {
+ enum-property: none;
+}
+
+c {
+ enum-property: 2;
+}
+
+d {
+ enum-property: "in";
+}
+
+e {
+ enum-property: non-existing;
+}
+
+f {
+ enum-property: "non-existing";
+}
+
+g {
+ enum-property: 34;
+}
+
+h {
+ enum-property: 12e;
+}
+
diff --git a/tests/css/parser/enum.errors b/tests/css/parser/enum.errors
new file mode 100644
index 0000000..22f5289
--- /dev/null
+++ b/tests/css/parser/enum.errors
@@ -0,0 +1,6 @@
+enum.css:10: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+enum.css:14: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+enum.css:18: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+enum.css:22: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+enum.css:26: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+enum.css:30: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/enum.ref.css b/tests/css/parser/enum.ref.css
new file mode 100644
index 0000000..ea6c44e
--- /dev/null
+++ b/tests/css/parser/enum.ref.css
@@ -0,0 +1,7 @@
+a {
+ enum-property: in;
+}
+
+b {
+ enum-property: none;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]