[gtk+] tests: Add parser test for shorthands



commit bd610582b8e64e26f5f77affcf84737f2bba7fb4
Author: Benjamin Otte <otte redhat com>
Date:   Sun May 22 03:09:23 2011 +0200

    tests: Add parser test for shorthands

 tests/css/parser/Makefile.am       |    2 ++
 tests/css/parser/shorthand.css     |    5 +++++
 tests/css/parser/shorthand.ref.css |    6 ++++++
 3 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index 6842b3a..e5ecb4f 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -76,4 +76,6 @@ EXTRA_DIST += \
 	pseudo-classes-unknown.ref.css \
 	selector.css \
 	selector.ref.css \
+	shorthand.css \
+	shorthand.ref.css \
 	simple.css
diff --git a/tests/css/parser/shorthand.css b/tests/css/parser/shorthand.css
new file mode 100644
index 0000000..5a20735
--- /dev/null
+++ b/tests/css/parser/shorthand.css
@@ -0,0 +1,5 @@
+/* need to use an existing shorthand, the public API doesn't
+ * allow custom ones */
+a {
+  border-width: 1 2 3;
+}
diff --git a/tests/css/parser/shorthand.ref.css b/tests/css/parser/shorthand.ref.css
new file mode 100644
index 0000000..a2f349b
--- /dev/null
+++ b/tests/css/parser/shorthand.ref.css
@@ -0,0 +1,6 @@
+a {
+  border-bottom-width: 3;
+  border-left-width: 2;
+  border-right-width: 2;
+  border-top-width: 1;
+}



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