summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Move old shorthands test into margin test. Add a few general tests.Michael Drake2009-06-273-61/+84
| | | | svn path=/trunk/libcss/; revision=8047
* A few more margin tests.Michael Drake2009-06-271-0/+41
| | | | svn path=/trunk/libcss/; revision=8045
* Tests for padding property.Michael Drake2009-06-272-1/+205
| | | | svn path=/trunk/libcss/; revision=8044
* Purge "colour" from the public API -- it's just confusingJohn Mark Bell2009-06-271-1/+1
| | | | svn path=/trunk/libcss/; revision=8035
* Tests for background property.Michael Drake2009-06-262-1/+211
| | | | svn path=/trunk/libcss/; revision=8028
* Support for parsing inline stylesJohn Mark Bell2009-06-264-10/+11
| | | | svn path=/trunk/libcss/; revision=8024
* Inherit tests. At least one currently fails.Michael Drake2009-06-261-0/+50
| | | | svn path=/trunk/libcss/; revision=8022
* Fix test data.Michael Drake2009-06-261-7/+7
| | | | svn path=/trunk/libcss/; revision=8020
* Tests for Margin shorthand prop. Comment out test that is currently expected ↵Michael Drake2009-06-263-1/+114
| | | | | | to fail. svn path=/trunk/libcss/; revision=8019
* Nested block support.John Mark Bell2009-06-262-11/+93
| | | | svn path=/trunk/libcss/; revision=8014
* Fix test dataJohn Mark Bell2009-06-251-4/+2
| | | | svn path=/trunk/libcss/; revision=7971
* A few test cases for important. Not exactly sure how important is handled ↵Michael Drake2009-06-252-0/+81
| | | | | | 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
* Border and outline shorthand property parsersJohn Mark Bell2009-06-251-4/+8
| | | | svn path=/trunk/libcss/; revision=7956
* Hacky increase to buffer size to stop overflow when dumping shorthand ↵John Mark Bell2009-06-191-3/+3
| | | | | | properties. Please look away now. svn path=/trunk/libcss/; revision=7873
* Some tweaks to the background-position parser, which will theoretically make ↵John Mark Bell2009-06-182-0/+22
| | | | | | | | it do the right thing when invoked by shorthand property parser, say. Some more tests for illegal background-position values, to make sure I haven't screwed up. svn path=/trunk/libcss/; revision=7859
* More tests (c.f. ↵John Mark Bell2009-06-181-0/+88
| | | | | | http://lists.w3.org/Archives/Public/www-style/2009Jun/0164.html) svn path=/trunk/libcss/; revision=7851
* Fix tests for unicode escape sequences to actually have the correct expected ↵John Mark Bell2009-05-261-5/+40
| | | | | | | | | | | values. Fix expected value for a CHAR containing solely a \. Add new tests for invalid unicode escape sequences (out-of-range, lonely surrogates, etc). Add test to ensure that \000D gets converted to \000A. Fix unicode escape sequence handling to pass the above tests. Also ensure it correctly handles the whitespace character after the escape sequence. svn path=/trunk/libcss/; revision=7549
* Fix automated lexer test code to correctly handle escape sequences and the ↵John Mark Bell2009-05-261-2/+5
| | | | | | absence of expected text. svn path=/trunk/libcss/; revision=7548
* More fread nonsenseJohn Mark Bell2009-04-171-2/+4
| | | | svn path=/trunk/libcss/; revision=7126
* And again.John Mark Bell2009-04-171-2/+4
| | | | svn path=/trunk/libcss/; revision=7125
* Pretend we care about fread/fwrite succeedingJohn Mark Bell2009-04-171-3/+7
| | | | svn path=/trunk/libcss/; revision=7124
* More c89ismsJohn Mark Bell2009-04-158-72/+86
| | | | svn path=/trunk/libcss/; revision=7100
* Support named colours.John Mark Bell2009-04-013-85/+83
| | | | | | Fix malformed declaration test data -- everything up to and including the next semicolon is dropped on the floor. svn path=/trunk/libcss/; revision=7020
* A couple of tests for CSS 2.1 issue 85 ('\'[\n\r(\r\n)] is not an escape ↵John Mark Bell2009-03-281-0/+21
| | | | | | sequence outside a string). We pass these, anyway, but it's worth ensuring that. svn path=/trunk/libcss/; revision=6965
* Purge testrunnerJohn Mark Bell2009-03-261-167/+0
| | | | svn path=/trunk/libcss/; revision=6891
* Port to new test schemeJohn Mark Bell2009-03-251-2/+4
| | | | svn path=/trunk/libcss/; revision=6872
* Port to new buildsystemJohn Mark Bell2009-03-241-96/+3
| | | | svn path=/trunk/libcss/; revision=6856
* Implement set_*_from_hintJohn Mark Bell2009-03-231-1/+1
| | | | | | Plug memory leaks. svn path=/trunk/libcss/; revision=6823
* Completely change the approach used for presentational hints.John Mark Bell2009-03-232-102/+118
| | | | | | | | This one stands a chance of working sanely. While this compiles, please don't expect it to link. svn path=/trunk/libcss/; revision=6820
* Fix test harness to actually stand a chance of working.John Mark Bell2009-03-221-3/+7
| | | | svn path=/trunk/libcss/; revision=6818
* Initialise variables.John Mark Bell2009-03-023-9/+11
| | | | | | Actually make disabling of CSS dumping work. svn path=/trunk/libcss/; revision=6670
* Some changes. No idea what they are, mind you.John Mark Bell2009-02-151-1/+1
| | | | svn path=/trunk/libcss/; revision=6536
* Most of the interned string lifetimes are at least no shorter than we think ↵Daniel Silverstone2009-02-151-1/+1
| | | | | | they ought to be. svn path=/trunk/libcss/; revision=6532
* Quirks mode parsingJohn Mark Bell2009-02-154-42/+58
| | | | svn path=/trunk/libcss/; revision=6519
* Port libcss to libwapcaplet.Daniel Silverstone2009-02-148-241/+279
| | | | | | | | | It passes the tests, perhaps we need more of them. Lifetimes of lwc_string objects really need attention before we can consider this finished. svn path=/trunk/libcss/; revision=6517
* Make fpmath stuff public.John Mark Bell2009-02-143-43/+43
| | | | | | Un-inline string->fixed conversion routine. svn path=/trunk/libcss/; revision=6513
* Test + selector.Michael Drake2009-02-141-0/+82
| | | | svn path=/trunk/libcss/; revision=6506
* Rework handling of imported stylesheets.John Mark Bell2009-02-145-20/+73
| | | | | | No longer is the client called back mid-parse. Instead, they must acquire details of and process imported stylesheets after css_stylesheet_data_done() has been called on the parent sheet. The return code of css_stylesheet_data_done() informs the client of the need to process imported sheets. svn path=/trunk/libcss/; revision=6504
* Fix caption-side constantsJohn Mark Bell2009-02-141-4/+6
| | | | | | Surround clip with #if 0 as it doesn't compile and I'm too lazy to fix it. svn path=/trunk/libcss/; revision=6500
* Update expected data.Michael Drake2009-02-141-0/+48
| | | | svn path=/trunk/libcss/; revision=6499
* Dump bottom, caption-side, clear and clip.Michael Drake2009-02-141-0/+74
| | | | svn path=/trunk/libcss/; revision=6498
* Add missing colonsJohn Mark Bell2009-02-141-4/+4
| | | | svn path=/trunk/libcss/; revision=6496
* Dump border-style-* and border-width-* properties.Michael Drake2009-02-141-7/+276
| | | | svn path=/trunk/libcss/; revision=6494
* Move css_error_from_string into test utilitiesDaniel Silverstone2009-02-142-0/+35
| | | | svn path=/trunk/libcss/; revision=6480
* Pseudo classes are now matched by callbacks to the client. This is far ↵John Mark Bell2009-02-142-48/+108
| | | | | | | | | saner, as any node may match a pseudo class, not just the immediate target of the selection. Munge test data to no longer expect :active to match -- there's currently no way to specify which node(s) in the tree have which pseudo classes applying to them. The pseudo classes on @page are no longer supported (namely, :left, :right, :first). These, and @page itself, probably want a dedicated API, as they are nothing to do with normal selection. Probably something like css_error css_select_page_margins(ctx, CSS_PAGE_LEFT, &computed); svn path=/trunk/libcss/; revision=6476
* Handle :first-child within libcssJohn Mark Bell2009-02-142-5/+33
| | | | svn path=/trunk/libcss/; revision=6474
* Discard selectors that contain pseudo elements in non-terminal simple selectors.John Mark Bell2009-02-143-0/+74
| | | | | | More test data for selectors with pseudo elements svn path=/trunk/libcss/; revision=6473
* A motley selection of changes. Vague summary:John Mark Bell2009-02-144-6/+334
| | | | | | | | | | | | | | | | | | + Add config makefile (not that there's anything to configure at present :) + Fix dumping of UNIT_MS to actually use sprintf and not printf + Extend computed style dumping (still loads of properties missing) + Make result buffer larger in select-auto.c -- avoids buffer overflows when there's way more output than expected + Expand expected test output to contain defaulted properties (more of this will be needed once the computed style dumping is complete) + Store interned string pointers in css_select_state. + Intern pseudo class/element names at start of selecting styles for a sheet + Group properties so we know which ones appear in the extension blocks + Fixup unset properties once the cascade has completed + Implement matching of pseudo class/element selectors + Fix setting of background-image and list-style-image when there's no URL. svn path=/trunk/libcss/; revision=6470
* Beginnings of a computed style dump routine.John Mark Bell2009-02-133-8/+121
| | | | | | | It probably helps to process the stylesheets individually, rather than parsing them all into one sheet. Fix test data somewhat. svn path=/trunk/libcss/; revision=6468
* Test driver for selection engine testsJohn Mark Bell2009-02-123-1/+954
| | | | svn path=/trunk/libcss/; revision=6461