summaryrefslogtreecommitdiff
path: root/test/data/parse2
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-06-26 18:08:45 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-06-26 18:08:45 +0000
commit857c3ed7f6e7fb1829e69c6745674c5c6ba9d984 (patch)
treec800348414d6e3cd5736ec7803d37a7022ce6da7 /test/data/parse2
parentf4ac69edec27b0dcd883370f26f47a94112bc4e7 (diff)
downloadlibcss-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/data/parse2')
-rw-r--r--test/data/parse2/INDEX1
-rw-r--r--test/data/parse2/margin.dat112
2 files changed, 113 insertions, 0 deletions
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
+
+