From d65da921893a0b519c7a7228321888540b26051c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 25 Jun 2009 09:24:40 +0000 Subject: 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 --- test/data/parse/properties.dat | 65 ++++++++++++++++++++++++++++++++++++++++++ test/data/parse/tests1.dat | 16 +++++++++++ 2 files changed, 81 insertions(+) (limited to 'test/data/parse') 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 @@ -34,6 +34,30 @@ | 0x000c0000 #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 @@ -74,6 +98,47 @@ | 0x00200000 #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 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 @@ -21,6 +21,22 @@ | 0x00000818 #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 -- cgit v1.2.3