summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix test data for pause-{after,before} -- default time units are seconds, ↵John Mark Bell2009-01-181-3/+3
| | | | | | not milliseconds. svn path=/trunk/libcss/; revision=6126
* Fix page-break-inside test data -- documentation was wrong.John Mark Bell2009-01-181-2/+2
| | | | svn path=/trunk/libcss/; revision=6125
* Fix expected bytecode for font-family with ident list.John Mark Bell2009-01-181-16/+8
| | | | | | Remove upper-greek from list-style-type -- documentation was wrong. svn path=/trunk/libcss/; revision=6124
* Test cases for properties 50 to 53. (All properties now have test cases.)Michael Drake2009-01-171-0/+88
| | | | svn path=/trunk/libcss/; revision=6118
* Test cases for properties 40 to 4f.Michael Drake2009-01-171-9/+689
| | | | svn path=/trunk/libcss/; revision=6117
* Test cases for properties 30 to 3f.Michael Drake2009-01-171-0/+569
| | | | svn path=/trunk/libcss/; revision=6114
* Tes cases for properties 20 to 2f.Michael Drake2009-01-171-1/+608
| | | | svn path=/trunk/libcss/; revision=6113
* Test cases for properties 1b - 1f.Michael Drake2009-01-171-0/+340
| | | | svn path=/trunk/libcss/; revision=6112
* Use our own printing routine, rather than relying on snprintf to do the ↵John Mark Bell2009-01-172-6/+72
| | | | | | | | right thing wrt rounding. Update test data in line with this. That said, it would appear that values <=-(2^21) get truncated to -2097151.999. This probably wants investigating. svn path=/trunk/libcss/; revision=6111
* Make makefixed.pl round to nearest integer, rather than truncating towards zero.John Mark Bell2009-01-172-1/+19
| | | | | | Add a test for negative fractions to properties.dat svn path=/trunk/libcss/; revision=6110
* Also munge the expected output to cater for slight oddity in float parsingJohn Mark Bell2009-01-161-1/+1
| | | | svn path=/trunk/libcss/; revision=6108
* Hm, for some reason, we're encoding 0.785 as 0x324, whereas makefixed.pl ↵John Mark Bell2009-01-161-1/+1
| | | | | | converts it to 0x323. This needs looking at. For now, munge the testdata so the test passes. svn path=/trunk/libcss/; revision=6106
* Fix test dataJohn Mark Bell2009-01-161-3/+3
| | | | svn path=/trunk/libcss/; revision=6105
* Test cases for 00 property.Michael Drake2009-01-161-0/+120
| | | | svn path=/trunk/libcss/; revision=6103
* s/ptr/PTR/gJohn Mark Bell2009-01-161-2/+2
| | | | svn path=/trunk/libcss/; revision=6102
* Test cases for properties 15 - 1a.Michael Drake2009-01-161-0/+432
| | | | svn path=/trunk/libcss/; revision=6101
* Fix test dataJohn Mark Bell2009-01-161-4/+4
| | | | svn path=/trunk/libcss/; revision=6100
* Fix test data.John Mark Bell2009-01-161-9/+9
| | | | | | Don't use non UTF-8 encoded characters in the test data. Things get confused. svn path=/trunk/libcss/; revision=6099
* Test cases for 13 & 14.Michael Drake2009-01-161-0/+40
| | | | svn path=/trunk/libcss/; revision=6096
* Test cases for 10 - 12.Michael Drake2009-01-161-0/+229
| | | | svn path=/trunk/libcss/; revision=6094
* Fix test dataJohn Mark Bell2009-01-161-1/+1
| | | | svn path=/trunk/libcss/; revision=6090
* Tests for properties 0b to 0f.Michael Drake2009-01-161-0/+142
| | | | svn path=/trunk/libcss/; revision=6089
* Fix test dataJohn Mark Bell2009-01-161-5/+5
| | | | svn path=/trunk/libcss/; revision=6087
* Tests for properties 06 to 0a.Michael Drake2009-01-161-1/+216
| | | | svn path=/trunk/libcss/; revision=6086
* Make test valid and comment out possible quirk version.Michael Drake2009-01-161-1/+10
| | | | svn path=/trunk/libcss/; revision=6083
* Fix test data some more -- dimensions are <length,units>, not <units,length>John Mark Bell2009-01-161-6/+6
| | | | svn path=/trunk/libcss/; revision=6082
* Dump unexpected bytecodeJohn Mark Bell2009-01-161-0/+6
| | | | svn path=/trunk/libcss/; revision=6081
* Fix test dataJohn Mark Bell2009-01-161-9/+9
| | | | svn path=/trunk/libcss/; revision=6080
* Tests for properties 01 to 05.Michael Drake2009-01-162-0/+205
| | | | svn path=/trunk/libcss/; revision=6077
* Manufacture fixed point values from floatsJohn Mark Bell2009-01-161-0/+11
| | | | svn path=/trunk/libcss/; revision=6076
* Use oct() instead of hex(). Can now consume binary input.John Mark Bell2009-01-161-1/+1
| | | | svn path=/trunk/libcss/; revision=6075
* Script to manufacture OPV word from 3 hex values.John Mark Bell2009-01-161-0/+11
| | | | svn path=/trunk/libcss/; revision=6074
* Basic tests for colour values.John Mark Bell2009-01-142-0/+77
| | | | svn path=/trunk/libcss/; revision=6066
* Support pointers in the expected bytecode.John Mark Bell2009-01-143-14/+110
| | | | | | Add a simple test that uses this functionality. svn path=/trunk/libcss/; revision=6065
* @import tests and support in the test harness.John Mark Bell2009-01-142-17/+21
| | | | svn path=/trunk/libcss/; revision=6063
* at-rule test data. Only @charset for now.John Mark Bell2009-01-142-0/+25
| | | | svn path=/trunk/libcss/; revision=6061
* Add support for non-selector rule types (currently only charset rules)John Mark Bell2009-01-141-41/+91
| | | | svn path=/trunk/libcss/; revision=6060
* More selector tests.John Mark Bell2009-01-131-0/+181
| | | | svn path=/trunk/libcss/; revision=6056
* Make the automated parser test harness compare selectorsJohn Mark Bell2009-01-133-1/+295
| | | | | | Some testdata for selectors svn path=/trunk/libcss/; revision=6055
* Point in the direction of the bytecode documentation before someone ↵John Mark Bell2009-01-121-1/+2
| | | | | | complains that they don't know what hexnum is meant to represent. svn path=/trunk/libcss/; revision=6054
* Document testdata formatJohn Mark Bell2009-01-121-0/+48
| | | | svn path=/trunk/libcss/; revision=6053
* Testcase for colour specifiers. Should cover most things.John Mark Bell2009-01-121-0/+19
| | | | | | This (or something similar) will need migrating to the automated data at some point. svn path=/trunk/libcss/; revision=6052
* Just the one iteration -- I'm fed up of waiting for this to finish.John Mark Bell2009-01-121-1/+1
| | | | | | Multiple iterations are only of any use for benchmarking, anyway. svn path=/trunk/libcss/; revision=6051
* Just the one iteration, thanks. Also, no spam.John Mark Bell2009-01-121-1/+5
| | | | | | More importantly, make this build when we have spam enabled. svn path=/trunk/libcss/; revision=6050
* Something approximating the beginnings of an automated test harness for the ↵John Mark Bell2009-01-125-2/+327
| | | | | | parser. svn path=/trunk/libcss/; revision=6049
* Fix testcase.John Mark Bell2009-01-121-1/+1
| | | | svn path=/trunk/libcss/; revision=6043
* Divorce css_string from whatever gets stored in lpu hashes.John Mark Bell2008-12-011-3/+3
| | | | | | | | | | | | | | | | | | Use pointers to parserutils_hash_entry directly in stylesheet datastructures. The upshot of this for allzengarden.css is: 5506 slots used (of 8192 => 67.211914%) Data: 8 full blocks: 32768 bytes 9 partial blocks: 35124 bytes (of 36864 => 95.279945%) Total: 69936 (4112) (32) Hash structures: 65584 i.e. a total string dictionary size of 135,520 bytes, which is some 74,056 bytes less than before. svn path=/trunk/libcss/; revision=5859
* More modifications to allow numerous iterations for profiling.John Mark Bell2008-11-303-73/+88
| | | | | | | | | | | Overall time breakdown for allzengarden.css is approximately: lex : 37% core : 43% lang : 20% svn path=/trunk/libcss/; revision=5857
* Modify to allow a configurable number of iterations for profiling.John Mark Bell2008-11-301-27/+43
| | | | svn path=/trunk/libcss/; revision=5856
* Use parserutils_hash instead of parserutils_dict.John Mark Bell2008-11-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | This approximately halves the size of the interned string table. We now have the following for allzengarden.css: 5507 slots used (of 8192 => 67.224121%) Data: 3 full blocks: 12288 bytes 10 partial blocks: 38946 bytes (of 40960 => 95.083008%) Total: 53488 (4112) (32) Entries: 21 full blocks: 86016 bytes 1 partial blocks: 2096 bytes (of 4096 => 51.171875%) Total: 90496 (4112) (32) Hash structures: 65592 Which gives a total dictionary size of 209,576 bytes. Note that 43% of this is parserutils_hash_entry structures (length-pointer pairs). It would be good, therefore, to be able to purge these. svn path=/trunk/libcss/; revision=5852