summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-01-21 23:52:36 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-01-21 23:52:36 +0000
commitf05e9215cf2b66e2782e9742737920a664902d46 (patch)
tree079df0970dfaf5979fb0c7e60e472f342483c4d6 /test
parent02769080aa7f89aa0197cba28801c2c41aaaf28d (diff)
downloadlibcss-f05e9215cf2b66e2782e9742737920a664902d46.tar.gz
libcss-f05e9215cf2b66e2782e9742737920a664902d46.tar.bz2
Use css_fixed for fixed-point arithmetic. Simplify HSL->RGB conversion a little.
Add test data for white and black svn path=/trunk/libcss/; revision=11437
Diffstat (limited to 'test')
-rw-r--r--test/data/parse/colours-hsl.dat18
1 files changed, 17 insertions, 1 deletions
diff --git a/test/data/parse/colours-hsl.dat b/test/data/parse/colours-hsl.dat
index 74300c2..2a98ba9 100644
--- a/test/data/parse/colours-hsl.dat
+++ b/test/data/parse/colours-hsl.dat
@@ -54,7 +54,23 @@
| 0x02000018 0xffff00ff
#reset
-## Selection of difefrnt HSL values
+## Selection of different HSL values
+
+#data
+* { color: hsl(0, 0%, 0%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xff000000
+#reset
+
+#data
+* { color: hsl(0, 0%, 100%) }
+#errors
+#expected
+| 1 *
+| 0x02000018 0xffffffff
+#reset
#data
* { color: hsl(0, 0%, 40%) }