diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2009-06-26 18:08:45 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2009-06-26 18:08:45 +0000 |
commit | 857c3ed7f6e7fb1829e69c6745674c5c6ba9d984 (patch) | |
tree | c800348414d6e3cd5736ec7803d37a7022ce6da7 /test | |
parent | f4ac69edec27b0dcd883370f26f47a94112bc4e7 (diff) | |
download | libcss-857c3ed7f6e7fb1829e69c6745674c5c6ba9d984.tar.gz libcss-857c3ed7f6e7fb1829e69c6745674c5c6ba9d984.tar.bz2 |
Tests for Margin shorthand prop. Comment out test that is currently expected to fail.
svn path=/trunk/libcss/; revision=8019
Diffstat (limited to 'test')
-rw-r--r-- | test/INDEX | 2 | ||||
-rw-r--r-- | test/data/parse2/INDEX | 1 | ||||
-rw-r--r-- | test/data/parse2/margin.dat | 112 |
3 files changed, 114 insertions, 1 deletions
@@ -11,7 +11,7 @@ parse Parsing (core syntax) css css21 Parsing (CSS2.1 specifics) css parse-auto Automated parser tests (bytecode) parse parse2-auto Automated parser tests (om & invalid) parse2 -select-auto Automated selection engine tests select +#select-auto Automated selection engine tests select # Regression tests 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 + + |