summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Add a really basic tree construction test harness. Known problems:Andrew Sidwell2008-07-073-2/+565
| | | | | | | | | | | | - Doesn't compare expected tree with hubbub's tree -- atm it just checks there are no segfaults - Ungracious handling of #document-fragment tests (since hubbub doesn't support them at present) - Leaks memory because it doesn't use refcounting - Doesn't support dynamic adding of attributes. Also, it shows a crash bug in the treebuilder when run. svn path=/trunk/hubbub/; revision=4529
* More test data. Warning -- huge.John Mark Bell2008-07-073-2/+127698
| | | | svn path=/trunk/hubbub/; revision=4526
* Add tree construction tests in anticipation of a test harness.Andrew Sidwell2008-07-0313-0/+5816
| | | | svn path=/trunk/hubbub/; revision=4504
* Update to latest html5lib tests.Andrew Sidwell2008-06-233-7/+11
| | | | svn path=/trunk/hubbub/; revision=4428
* Add CDATA tests and the infrastructure to support them.Andrew Sidwell2008-06-194-0/+46
| | | | svn path=/trunk/hubbub/; revision=4410
* Add a tokeniser3, which tests the tokeniser byte-by-byte rather than with ↵Andrew Sidwell2008-06-193-1/+478
| | | | | | all the data at once. svn path=/trunk/hubbub/; revision=4409
* Add some new tests (also committed to html5lib).Andrew Sidwell2008-06-192-0/+8
| | | | svn path=/trunk/hubbub/; revision=4407
* Add a comma that somehow went missing.Andrew Sidwell2008-06-181-1/+1
| | | | svn path=/trunk/hubbub/; revision=4388
* Fix remaining issues around passing the testsuite, and make sure all the ↵Andrew Sidwell2008-06-181-3/+4
| | | | | | tokeniser is tested. svn path=/trunk/hubbub/; revision=4387
* Use json_object_get_string_len().John Mark Bell2008-06-181-11/+11
| | | | svn path=/trunk/hubbub/; revision=4386
* Print out expected string, too, so we can see where json-c is failing to ↵John Mark Bell2008-06-181-1/+3
| | | | | | decode surrogates correctly. svn path=/trunk/hubbub/; revision=4380
* Catch non-zero exit status and treat it as a failureJohn Mark Bell2008-06-181-1/+13
| | | | svn path=/trunk/hubbub/; revision=4379
* - Fix up the html5lib-test-tester so it doesn't crash if the number of ↵Andrew Sidwell2008-06-171-13/+16
| | | | | | | | attributes on a tag is larger than the number expected. - Remove some unnecessary casts. svn path=/trunk/hubbub/; revision=4373
* Restore the commenting-out of a test.Andrew Sidwell2008-06-171-0/+3
| | | | svn path=/trunk/hubbub/; revision=4368
* Use a better entities test.Andrew Sidwell2008-06-161-3/+9
| | | | svn path=/trunk/hubbub/; revision=4365
* Use IO::Select to avoid deadlockJohn Mark Bell2008-06-161-56/+49
| | | | svn path=/trunk/hubbub/; revision=4363
* Update the testsuite to match the tokeniser. Also, import new html5lib ↵Andrew Sidwell2008-06-1613-76/+3306
| | | | | | tests for better coverage. Known issue: the tokeniser test stalls using the testrunner script. svn path=/trunk/hubbub/; revision=4356
* Rework buildsystem so that it no longer calls make recursively and rebuilds ↵John Mark Bell2008-04-073-58/+90
| | | | | | the testcases when the library changes. svn path=/trunk/hubbub/; revision=4077
* Implement "in body" insertion mode.John Mark Bell2008-04-074-19/+86
| | | | | | | Modify treebuilder test driver to bring it in line with API changes. A few minimal bits of testdata for various bits of in body. Proper testing will come once we're actually building a tree. svn path=/trunk/hubbub/; revision=4076
* Fix recalculation of used document buffer length after resizing when the ↵John Mark Bell2008-04-073-1/+94
| | | | | | | | | last attempt to write into the buffer failed mid-way through a multibyte sequence. Add regression test for this Include regression tests in the testsuite index. svn path=/trunk/hubbub/; revision=4075
* hubbub_strings may now be either an offset into the data buffer or a pointer ↵John Mark Bell2008-03-215-40/+56
| | | | | | | | | | | | | to constant data. Fix up tokeniser and treebuilder to deal with this. Fix up testcases, too. The tokeniser will only ever emit strings of type HUBBUB_STRING_OFF. Anything else is a bug which should be fixed. The treebuilder may emit strings of either type. svn path=/trunk/hubbub/; revision=4014
* More treebuilder (really 8.2.4.8 this time)John Mark Bell2008-03-111-0/+19
| | | | | | Add tree handler entrypoint for creating elements with verbatim names svn path=/trunk/hubbub/; revision=3940
* More treebuilder (8.2.4.8)John Mark Bell2008-03-113-2/+329
| | | | | | | | | Make tree_handler a pointer rather than value. Check for tree_handler's presence in hubbub_treebuilder_token_handler rather than scattering checks all over the treebuilder code. Add test driver (doesn't actually build a tree but will exercise the core code correctly and verify that the treebuilder code releases all the node references it gains) Enhance quirks mode reporting to distinguish between standards, limited, and full quirks modes. svn path=/trunk/hubbub/; revision=3939
* Test page that breaks libxmlJohn Mark Bell2008-03-102-0/+70
| | | | svn path=/trunk/hubbub/; revision=3924
* Improve error handlingJohn Mark Bell2008-03-051-10/+20
| | | | svn path=/trunk/hubbub/; revision=3886
* Add testcase of page with initial close tagJohn Mark Bell2008-03-052-0/+12
| | | | | | Fix capitalisation in documentation svn path=/trunk/hubbub/; revision=3883
* Warning fixesJohn Mark Bell2007-07-101-1/+1
| | | | svn path=/trunk/hubbub/; revision=3393
* Add UTF-16 input stream.John Mark Bell2007-06-243-1/+177
| | | | | | This appears to work correctly -- could probably do with more testing. svn path=/trunk/hubbub/; revision=3362
* Remove large testdata (and set svn:ignore on it)John Mark Bell2007-06-232-41272/+1
| | | | svn path=/trunk/hubbub/; revision=3360
* Import hubbub -- an HTML parsing library.John Mark Bell2007-06-2334-0/+47595
Plenty of work still to do (like tree generation ;) svn path=/trunk/hubbub/; revision=3359