From bd610582b8e64e26f5f77affcf84737f2bba7fb4 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 22 May 2011 03:09:23 +0200 Subject: [PATCH] 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(+) create mode 100644 tests/css/parser/shorthand.css create mode 100644 tests/css/parser/shorthand.ref.css diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am index 6842b3affd..e5ecb4fde7 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 0000000000..5a207352f8 --- /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 0000000000..a2f349ba35 --- /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; +}