summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-06-27 18:36:28 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-06-27 18:36:28 +0000
commitc0596ea17f1ccb7a5a9f27d51458718f3907beca (patch)
tree961aaf45baa2d324a6b2de204b6467bfee891504
parent11cb410a4b212a182ea7b6877a8b165da7a049f1 (diff)
downloadlibcss-c0596ea17f1ccb7a5a9f27d51458718f3907beca.tar.gz
libcss-c0596ea17f1ccb7a5a9f27d51458718f3907beca.tar.bz2
List property tests.
svn path=/trunk/libcss/; revision=8071
-rw-r--r--test/data/parse2/INDEX1
-rw-r--r--test/data/parse2/list.dat488
2 files changed, 489 insertions, 0 deletions
diff --git a/test/data/parse2/INDEX b/test/data/parse2/INDEX
index edfc769..e51befb 100644
--- a/test/data/parse2/INDEX
+++ b/test/data/parse2/INDEX
@@ -14,6 +14,7 @@ au.dat Aural property tests
bg.dat Background property tests
border.dat Border property tests
font.dat Font property tests
+list.dat List property tests
margin.dat Margin property tests
outline.dat Outline property tests
padding.dat Padding property tests \ No newline at end of file
diff --git a/test/data/parse2/list.dat b/test/data/parse2/list.dat
new file mode 100644
index 0000000..5f0b53f
--- /dev/null
+++ b/test/data/parse2/list.dat
@@ -0,0 +1,488 @@
+#data
+* { list-style: inherit; }
+#errors
+#expected
+| *
+| list-style-image: inherit
+| list-style-position: inherit
+| list-style-type: inherit
+#reset
+
+#data
+* { list-style: circle; }
+#errors
+#expected
+| *
+| list-style-image: none
+| list-style-position: outside
+| list-style-type: circle
+#reset
+
+#data
+* { list-style: inside; }
+#errors
+#expected
+| *
+| list-style-image: none
+| list-style-position: inside
+| list-style-type: disc
+#reset
+
+#data
+* { list-style: url(foo); }
+#errors
+#expected
+| *
+| list-style-image: url('foo')
+| list-style-position: outside
+| list-style-type: disc
+#reset
+
+#data
+* { list-style: circle inside; }
+#errors
+#expected
+| *
+| list-style-image: none
+| list-style-position: inside
+| list-style-type: circle
+#reset
+
+#data
+* { list-style: inside circle; }
+#errors
+#expected
+| *
+| list-style-image: none
+| list-style-position: inside
+| list-style-type: circle
+#reset
+
+#data
+* { list-style: inside url(foo); }
+#errors
+#expected
+| *
+| list-style-image: url('foo')
+| list-style-position: inside
+| list-style-type: disc
+#reset
+
+#data
+* { list-style: url(foo) inside; }
+#errors
+#expected
+| *
+| list-style-image: url('foo')
+| list-style-position: inside
+| list-style-type: disc
+#reset
+
+#data
+* { list-style: circle url(foo); }
+#errors
+#expected
+| *
+| list-style-image: url('foo')
+| list-style-position: outside
+| list-style-type: circle
+#reset
+
+#data
+* { list-style: url(foo) circle; }
+#errors
+#expected
+| *
+| list-style-image: url('foo')
+| list-style-position: outside
+| list-style-type: circle
+#reset
+
+#data
+* { list-style: circle inside url(foo); }
+#errors
+#expected
+| *
+| list-style-image: url('foo')
+| list-style-position: inside
+| list-style-type: circle
+#reset
+
+#data
+* { list-style: circle url(foo) inside; }
+#errors
+#expected
+| *
+| list-style-image: url('foo')
+| list-style-position: inside
+| list-style-type: circle
+#reset
+
+#data
+* { list-style: inside circle url(foo); }
+#errors
+#expected
+| *
+| list-style-image: url('foo')
+| list-style-position: inside
+| list-style-type: circle
+#reset
+
+#data
+* { list-style: inside url(foo) circle; }
+#errors
+#expected
+| *
+| list-style-image: url('foo')
+| list-style-position: inside
+| list-style-type: circle
+#reset
+
+#data
+* { list-style: url(foo) circle inside; }
+#errors
+#expected
+| *
+| list-style-image: url('foo')
+| list-style-position: inside
+| list-style-type: circle
+#reset
+
+#data
+* { list-style: url(foo) inside circle; }
+#errors
+#expected
+| *
+| list-style-image: url('foo')
+| list-style-position: inside
+| list-style-type: circle
+#reset
+
+
+#data
+* { list-style: invalid; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { list-style: ; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { list-style:}
+#errors
+#expected
+| *
+#reset
+
+
+
+
+#data
+* { list-style: inherit !important; }
+#errors
+#expected
+| *
+| list-style-image: inherit !important
+| list-style-position: inherit !important
+| list-style-type: inherit !important
+#reset
+
+#data
+* { list-style: circle !important; }
+#errors
+#expected
+| *
+| list-style-image: none !important
+| list-style-position: outside !important
+| list-style-type: circle !important
+#reset
+
+#data
+* { list-style: inside !important; }
+#errors
+#expected
+| *
+| list-style-image: none !important
+| list-style-position: inside !important
+| list-style-type: disc !important
+#reset
+
+#data
+* { list-style: url(foo) !important; }
+#errors
+#expected
+| *
+| list-style-image: url('foo') !important
+| list-style-position: outside !important
+| list-style-type: disc !important
+#reset
+
+#data
+* { list-style: circle inside !important; }
+#errors
+#expected
+| *
+| list-style-image: none !important
+| list-style-position: inside !important
+| list-style-type: circle !important
+#reset
+
+#data
+* { list-style: inside circle !important; }
+#errors
+#expected
+| *
+| list-style-image: none !important
+| list-style-position: inside !important
+| list-style-type: circle !important
+#reset
+
+#data
+* { list-style: inside url(foo) !important; }
+#errors
+#expected
+| *
+| list-style-image: url('foo') !important
+| list-style-position: inside !important
+| list-style-type: disc !important
+#reset
+
+#data
+* { list-style: url(foo) inside !important; }
+#errors
+#expected
+| *
+| list-style-image: url('foo') !important
+| list-style-position: inside !important
+| list-style-type: disc !important
+#reset
+
+#data
+* { list-style: circle url(foo) !important; }
+#errors
+#expected
+| *
+| list-style-image: url('foo') !important
+| list-style-position: outside !important
+| list-style-type: circle !important
+#reset
+
+#data
+* { list-style: url(foo) circle !important; }
+#errors
+#expected
+| *
+| list-style-image: url('foo') !important
+| list-style-position: outside !important
+| list-style-type: circle !important
+#reset
+
+#data
+* { list-style: circle inside url(foo) !important; }
+#errors
+#expected
+| *
+| list-style-image: url('foo') !important
+| list-style-position: inside !important
+| list-style-type: circle !important
+#reset
+
+#data
+* { list-style: circle url(foo) inside !important; }
+#errors
+#expected
+| *
+| list-style-image: url('foo') !important
+| list-style-position: inside !important
+| list-style-type: circle !important
+#reset
+
+#data
+* { list-style: inside circle url(foo) !important; }
+#errors
+#expected
+| *
+| list-style-image: url('foo') !important
+| list-style-position: inside !important
+| list-style-type: circle !important
+#reset
+
+#data
+* { list-style: inside url(foo) circle !important; }
+#errors
+#expected
+| *
+| list-style-image: url('foo') !important
+| list-style-position: inside !important
+| list-style-type: circle !important
+#reset
+
+#data
+* { list-style: url(foo) circle inside !important; }
+#errors
+#expected
+| *
+| list-style-image: url('foo') !important
+| list-style-position: inside !important
+| list-style-type: circle !important
+#reset
+
+#data
+* { list-style: url(foo) inside circle !important; }
+#errors
+#expected
+| *
+| list-style-image: url('foo') !important
+| list-style-position: inside !important
+| list-style-type: circle !important
+#reset
+
+#data
+* { content: inherit; }
+#errors
+#expected
+| *
+| content: inherit
+#reset
+
+#data
+* { list-style-position: inherit; }
+#errors
+#expected
+| *
+| list-style-position: inherit
+#reset
+
+#data
+* { list-style-type: inherit; }
+#errors
+#expected
+| *
+| list-style-type: inherit
+#reset
+
+#data
+* { quotes: inherit; }
+#errors
+#expected
+| *
+| quotes: inherit
+#reset
+
+#data
+* { counter-reset: inherit; }
+#errors
+#expected
+| *
+| counter-reset: inherit
+#reset
+
+#data
+* { content: open-quote; }
+#errors
+#expected
+| *
+| content: open-quote
+#reset
+
+#data
+* { content: open-quote "moose" close-quote; }
+#errors
+#expected
+| *
+| content: open-quote 'moose' close-quote
+#reset
+
+#data
+* { content: no-open-quote "moose" no-close-quote; }
+#errors
+#expected
+| *
+| content: no-open-quote 'moose' no-close-quote
+#reset
+
+#data
+* { content: no-close-quote "moose" no-open-quote; }
+#errors
+#expected
+| *
+| content: no-close-quote 'moose' no-open-quote
+#reset
+
+#data
+* { content: open-quote "moose" close-quote open-quote no-open-quote "moose" no-close-quote close-quote; }
+#errors
+#expected
+| *
+| content: open-quote 'moose' close-quote open-quote no-open-quote 'moose' no-close-quote close-quote
+#reset
+
+
+
+
+
+#data
+* { list-style: inherit inside; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { list-style: inherit inside inherit; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { list-style: inherit inherit; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { list-style: inherit url(foo); }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { list-style: url(foo) inherit; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { list-style: circle inherit inside; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { list-style: inherit circle inside; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { list-style: circle inside inherit; }
+#errors
+#expected
+| *
+#reset
+
+
+
+