]> Pileus Git - ~andy/gtk/commitdiff
tests: Add parser test for shorthands
authorBenjamin Otte <otte@redhat.com>
Sun, 22 May 2011 01:09:23 +0000 (03:09 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 22 May 2011 03:56:11 +0000 (05:56 +0200)
tests/css/parser/Makefile.am
tests/css/parser/shorthand.css [new file with mode: 0644]
tests/css/parser/shorthand.ref.css [new file with mode: 0644]

index 6842b3affdf4b7bf8531e138c33af97ce85abdf9..e5ecb4fde7fc6a0f7a5f64c6004b1417bcd76fd7 100644 (file)
@@ -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 (file)
index 0000000..5a20735
--- /dev/null
@@ -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 (file)
index 0000000..a2f349b
--- /dev/null
@@ -0,0 +1,6 @@
+a {
+  border-bottom-width: 3;
+  border-left-width: 2;
+  border-right-width: 2;
+  border-top-width: 1;
+}