summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-04-01 17:35:29 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-04-01 17:35:29 +0000
commit59caf847183261bf31ac75e5e1ab7d819480ffee (patch)
tree335396222bddb3f38e88bb8e3c1ea5978d84eab3 /test
parentb9bd625307bedfd4ddf8984b3ffe8f5555fc2dca (diff)
downloadlibcss-59caf847183261bf31ac75e5e1ab7d819480ffee.tar.gz
libcss-59caf847183261bf31ac75e5e1ab7d819480ffee.tar.bz2
Support named colours.
Fix malformed declaration test data -- everything up to and including the next semicolon is dropped on the floor. svn path=/trunk/libcss/; revision=7020
Diffstat (limited to 'test')
-rw-r--r--test/data/parse/colours.dat14
-rw-r--r--test/data/parse2/illegal-values.dat108
-rw-r--r--test/data/parse2/malformed-declarations.dat46
3 files changed, 83 insertions, 85 deletions
diff --git a/test/data/parse/colours.dat b/test/data/parse/colours.dat
index a5d158c..097e13c 100644
--- a/test/data/parse/colours.dat
+++ b/test/data/parse/colours.dat
@@ -1,12 +1,12 @@
## Simple colour values
-##data
-#* { color: red }
-##errors
-##expected
-#| 1 *
-#| 0x02000018 0xff000000
-##reset
+#data
+* { color: red }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xff000000
+#reset
#data
* { color: #f00 }
diff --git a/test/data/parse2/illegal-values.dat b/test/data/parse2/illegal-values.dat
index 99e747d..8576166 100644
--- a/test/data/parse2/illegal-values.dat
+++ b/test/data/parse2/illegal-values.dat
@@ -122,19 +122,19 @@
| *
#reset
-##data
-#* { background-color: -bbc; }
-##errors
-##expected
-#| *
-##reset
+#data
+* { background-color: -bbc; }
+#errors
+#expected
+| *
+#reset
-##data
-#* { background-color: -bbc111; }
-##errors
-##expected
-#| *
-##reset
+#data
+* { background-color: -bbc111; }
+#errors
+#expected
+| *
+#reset
#data
* { background-image: 0; }
@@ -2205,12 +2205,12 @@
| *
#reset
-##data
-#* { outline-color: red black; }
-##errors
-##expected
-#| *
-##reset
+#data
+* { outline-color: red black; }
+#errors
+#expected
+| *
+#reset
#data
* { outline-color: #BBC Radio 4; }
@@ -2226,26 +2226,26 @@
| *
#reset
-##data
-#* { outline-color: rgb); }
-##errors
-##expected
-#| *
-##reset
+#data
+* { outline-color: rgb); }
+#errors
+#expected
+| *
+#reset
-##data
-#* { outline-color: rgb),,); }
-##errors
-##expected
-#| *
-##reset
+#data
+* { outline-color: rgb),,); }
+#errors
+#expected
+| *
+#reset
-##data
-#* { outline-color: rgb)2,3,5); }
-##errors
-##expected
-#| *
-##reset
+#data
+* { outline-color: rgb)2,3,5); }
+#errors
+#expected
+| *
+#reset
#data
* { outline-color: rgb (2,30,5); }
@@ -2254,26 +2254,26 @@
| *
#reset
-##data
-#* { outline-color: rgb; }
-##errors
-##expected
-#| *
-##reset
+#data
+* { outline-color: rgb; }
+#errors
+#expected
+| *
+#reset
-##data
-#* { outline-color: Green Hill Zone; }
-##errors
-##expected
-#| *
-##reset
+#data
+* { outline-color: Green Hill Zone; }
+#errors
+#expected
+| *
+#reset
-##data
-#* { outline-color: green hill zone; }
-##errors
-##expected
-#| *
-##reset
+#data
+* { outline-color: green hill zone; }
+#errors
+#expected
+| *
+#reset
#data
* { outline-color: "Green Hill Zone"; outline-color: invert; }
diff --git a/test/data/parse2/malformed-declarations.dat b/test/data/parse2/malformed-declarations.dat
index 84703f5..9f21024 100644
--- a/test/data/parse2/malformed-declarations.dat
+++ b/test/data/parse2/malformed-declarations.dat
@@ -75,32 +75,30 @@
| color: #bbbbcc00
#reset
-##data
-#* { background-color: black; :; color: white; }
-##errors
-##expected
-#| *
-#| background-color: #00000000
-#| color: #ffffff00
-##reset
+#data
+* { background-color: black; :; color: white; }
+#errors
+#expected
+| *
+| background-color: #00000000
+| color: #ffffff00
+#reset
-##data
-#* { background-color: black; : color: white; }
-##errors
-##expected
-#| *
-#| background-color: #00000000
-#| color: #ffffff00
-##reset
+#data
+* { background-color: black; : color: white; }
+#errors
+#expected
+| *
+| background-color: #00000000
+#reset
-##data
-#* { background-color: black; dentist: color: white; }
-##errors
-##expected
-#| *
-#| background-color: #00000000
-#| color: #ffffff00
-##reset
+#data
+* { background-color: black; dentist: color: white; }
+#errors
+#expected
+| *
+| background-color: #00000000
+#reset
#data
*{f():{