summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* css_string is now the same as a parserutils_dict_entry. This allows us to ↵John Mark Bell2008-11-274-25/+31
| | | | | | | | | | use dict entries directly as strings. iChange the way in which selectors are represented. This significantly reduces memory requirements -- reducing the approximate usage count (excludes the string dictionary, which is about 360k) of allzengarden.css from 4,535,400 bytes to 2,414,312 bytes on a 64bit platform. The string dictionary is now created and owned by the stylesheet object. The parser is just given access to this so that it can store strings in it. svn path=/trunk/libcss/; revision=5809
* Fix rounding when fractional part is close to 1.John Mark Bell2008-11-241-0/+6
| | | | | | Add testcase to exercise this. svn path=/trunk/libcss/; revision=5766
* Fix number parsing and make test code automatically determine correctness.John Mark Bell2008-11-242-12/+102
| | | | | | | More test data, which covers everything. Fix includes in libcss/types.h svn path=/trunk/libcss/; revision=5764
* Some kind of testsuite for number parsing.John Mark Bell2008-11-235-1/+177
| | | | | | It appears that negative values are broken, at least. svn path=/trunk/libcss/; revision=5763
* Port css21 frontend to new object APIJohn Mark Bell2008-11-091-3/+2
| | | | svn path=/trunk/libcss/; revision=5676
* Port libcss to new lpu API.John Mark Bell2008-11-093-13/+10
| | | | | | Make lexer, core parser, and css21 parser constructors&destructors return errors svn path=/trunk/libcss/; revision=5674
* Support signs on numbers, percentages, and dimensionsJohn Mark Bell2008-10-272-0/+49
| | | | svn path=/trunk/libcss/; revision=5648
* Provide an internal mechanism for dumping stylesheets to a file handle.John Mark Bell2008-10-191-1/+3
| | | | | | Make the css21 test driver call this so we can see if it's working. svn path=/trunk/libcss/; revision=5602
* Modify CSS2.1 frontend test driver to use the public stylesheet API.John Mark Bell2008-09-251-21/+9
| | | | | | Media type handling may need to change -- 32bits may not be large enough in the long term, and there's no sensible way of extending this without causing ABI breakage in the future. svn path=/trunk/libcss/; revision=5439
* Fix compilation of test drivers on 64bit platforms.John Mark Bell2008-09-053-17/+28
| | | | svn path=/trunk/libcss/; revision=5261