summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-01-20 12:35:29 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-01-20 12:35:29 +0000
commit1e54b1c3d4cd02a07146b9cc749e494838a61f4a (patch)
treeeb3aa855aa330ed52882a6237445b56d5bb4610c /test
parente860e9d5d0bbcc4d467fe4d5434465c33415be98 (diff)
downloadlibcss-1e54b1c3d4cd02a07146b9cc749e494838a61f4a.tar.gz
libcss-1e54b1c3d4cd02a07146b9cc749e494838a61f4a.tar.bz2
Test cases for illegal values.
svn path=/trunk/libcss/; revision=6153
Diffstat (limited to 'test')
-rw-r--r--test/data/parse2/illegal-values.dat103
1 files changed, 103 insertions, 0 deletions
diff --git a/test/data/parse2/illegal-values.dat b/test/data/parse2/illegal-values.dat
new file mode 100644
index 0000000..d532908
--- /dev/null
+++ b/test/data/parse2/illegal-values.dat
@@ -0,0 +1,103 @@
+#data
+* { color: #gghhgg; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { color: #gghhgg; stress: 101; stress: 50px; stress: -50; stress: 50grad; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { stress: 50 medium; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { stress: medium 50; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { stress: medium 50; stress: 40; position: "fixed"; }
+#errors
+#expected
+| *
+| stress: 40
+#reset
+
+#data
+* { position: fixed; position: 3; }
+#errors
+#expected
+| *
+| position: fixed
+#reset
+
+#data
+* { position: 50Hz; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { position: 50em; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { top: 50em; bottom: 11; }
+#errors
+#expected
+| *
+| top: 50em
+#reset
+
+#data
+* { font-weight: 1000; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { font-weight: 450; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { font-weight: 400 lighter; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { font-weight: bold lighter; }
+#errors
+#expected
+| *
+#reset
+
+#data
+* { position:fixed; font-family: 'Trinity max-height: 30%; min-height: 2em; }
+#errors
+#expected
+| *
+| position: fixed
+| min-height: 2em
+#reset
+