From 857c3ed7f6e7fb1829e69c6745674c5c6ba9d984 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 26 Jun 2009 18:08:45 +0000 Subject: Tests for Margin shorthand prop. Comment out test that is currently expected to fail. svn path=/trunk/libcss/; revision=8019 --- test/data/parse2/INDEX | 1 + test/data/parse2/margin.dat | 112 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 test/data/parse2/margin.dat (limited to 'test/data') diff --git a/test/data/parse2/INDEX b/test/data/parse2/INDEX index dccd832..a90de89 100644 --- a/test/data/parse2/INDEX +++ b/test/data/parse2/INDEX @@ -10,3 +10,4 @@ illegal-values.dat Illegal value tests malformed-declarations.dat Malformed declaration tests unknown-properties.dat Unknown property tests bgpos.dat Illegal background-position values +margin.dat Margin shorthand tests diff --git a/test/data/parse2/margin.dat b/test/data/parse2/margin.dat new file mode 100644 index 0000000..e78ad4c --- /dev/null +++ b/test/data/parse2/margin.dat @@ -0,0 +1,112 @@ +#data +* { margin: auto; } +#errors +#expected +| * +| margin-top: auto +| margin-right: auto +| margin-bottom: auto +| margin-left: auto +#reset + +#data +* { margin: auto auto; } +#errors +#expected +| * +| margin-top: auto +| margin-right: auto +| margin-bottom: auto +| margin-left: auto +#reset + +#data +* { margin: auto auto 0; } +#errors +#expected +| * +| margin-top: auto +| margin-right: auto +| margin-bottom: 0 +| margin-left: auto +#reset + +#data +* { margin: auto auto 10px 0; } +#errors +#expected +| * +| margin-top: +| margin-right: +| margin-bottom: +| margin-left: +#reset + + +#data +* { margin: auto !important; } +#errors +#expected +| * +| margin-top: auto !important +| margin-right: auto !important +| margin-bottom: auto !important +| margin-left: auto !important +#reset + +#data +* { margin: auto auto !important; } +#errors +#expected +| * +| margin-top: auto !important +| margin-right: auto !important +| margin-bottom: auto !important +| margin-left: auto !important +#reset + +#data +* { margin: auto auto 0 !important; } +#errors +#expected +| * +| margin-top: auto !important +| margin-right: auto !important +| margin-bottom: 0 !important +| margin-left: auto !important +#reset + +#data +* { margin: auto auto 10px 0 !important; } +#errors +#expected +| * +| margin-top: auto !important +| margin-right: auto !important +| margin-bottom: 10px !important +| margin-left: 0 !important +#reset + + +#data +* { margin: invalid; } +#errors +#expected +| * +#reset + +#data +* { margin: ; } +#errors +#expected +| * +#reset + +#data +* { margin:} +#errors +#expected +| * +#reset + + -- cgit v1.2.3