summaryrefslogtreecommitdiff
path: root/test/data/parse
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-06-25 09:24:40 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-06-25 09:24:40 +0000
commitd65da921893a0b519c7a7228321888540b26051c (patch)
treeeb1dd136085b868e752b9f9abb631c5c74cb2a6e /test/data/parse
parent6382fefa013e2d621273b2a4297ad996901e6442 (diff)
downloadlibcss-d65da921893a0b519c7a7228321888540b26051c.tar.gz
libcss-d65da921893a0b519c7a7228321888540b26051c.tar.bz2
A few test cases for important. Not exactly sure how important is handled when not at end of declaration. Add some tests for azimuth:behind; since that was not tested. I'm not sure how the byte code is meant to handle behind, with no angle set.
svn path=/trunk/libcss/; revision=7967
Diffstat (limited to 'test/data/parse')
-rw-r--r--test/data/parse/properties.dat65
-rw-r--r--test/data/parse/tests1.dat16
2 files changed, 81 insertions, 0 deletions
diff --git a/test/data/parse/properties.dat b/test/data/parse/properties.dat
index 8869aba..4137d0b 100644
--- a/test/data/parse/properties.dat
+++ b/test/data/parse/properties.dat
@@ -35,6 +35,30 @@
#reset
#data
+* { azimuth: center-left; !important }
+#errors
+#expected
+| 1 *
+| 0x000c0000
+#reset
+
+#data
+* { azimuth: center-left !important; }
+#errors
+#expected
+| 1 *
+| 0x000c0400
+#reset
+
+#data
+* { azimuth: center-left ! important; }
+#errors
+#expected
+| 1 *
+| 0x000c0400
+#reset
+
+#data
* { azimuth: center; }
#errors
#expected
@@ -75,6 +99,47 @@
#reset
#data
+* { azimuth: behind; }
+#errors
+#expected
+| 1 *
+| 0x00800000
+#reset
+
+#data
+* { azimuth: behind far-right; }
+#errors
+#expected
+| 1 *
+| 0x009c0000
+#reset
+
+#data
+* { azimuth: far-right behind; }
+#errors
+#expected
+| 1 *
+| 0x009c0000
+#reset
+
+#data
+* { azimuth: far-right; }
+#errors
+#expected
+| 1 *
+| 0x009c0400
+#reset
+
+#data
+* { azimuth: far-right !important behind; }
+#errors
+#expected
+| 1 *
+| 0x001c0400
+#reset
+
+
+#data
* { azimuth: leftwards; }
#errors
#expected
diff --git a/test/data/parse/tests1.dat b/test/data/parse/tests1.dat
index ad63242..b4cbfac 100644
--- a/test/data/parse/tests1.dat
+++ b/test/data/parse/tests1.dat
@@ -22,6 +22,22 @@
#reset
#data
+* { color: inherit ! important }
+#errors
+#expected
+| 1 *
+| 0x00000c18
+#reset
+
+#data
+* { color: inherit !important }
+#errors
+#expected
+| 1 *
+| 0x00000c18
+#reset
+
+#data
* { background-image: url("foo.png"); color: inherit }
#errors
#expected