summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Export a hubbub_doctype type to create_doctype() directly, rather than ↵Andrew Sidwell2008-07-112-22/+19
| | | | | | passing all its members as individual arguments. svn path=/trunk/hubbub/; revision=4602
* Fix an html5lib testcase (also committed upstream).Andrew Sidwell2008-07-111-1/+1
| | | | svn path=/trunk/hubbub/; revision=4601
* Provide an strndup implementation for those platforms that don't have it ↵John Mark Bell2008-07-111-0/+25
| | | | | | (yay Mac OS) svn path=/trunk/hubbub/; revision=4600
* Comment out SIGCHLD handler -- it's unnecessary afaicsJohn Mark Bell2008-07-111-1/+1
| | | | svn path=/trunk/hubbub/; revision=4599
* Cast values to int to avoid warnings.John Mark Bell2008-07-112-3/+5
| | | | svn path=/trunk/hubbub/; revision=4598
* - Ignore #document-fragment sections betterAndrew Sidwell2008-07-111-9/+15
| | | | | | - Remove a debugging statement svn path=/trunk/hubbub/; revision=4596
* - Fix html5lib test. (also committed upstream)Andrew Sidwell2008-07-111-1/+0
| | | | | | - Process XMP properly. svn path=/trunk/hubbub/; revision=4595
* Fix the test harness with multiline #data sections.Andrew Sidwell2008-07-111-4/+22
| | | | svn path=/trunk/hubbub/; revision=4591
* Implement the test harness' add_attribute() methodAndrew Sidwell2008-07-111-2/+26
| | | | svn path=/trunk/hubbub/; revision=4588
* Sort out the harness' DOCTYPE prettyprinting and up in the input line length ↵Andrew Sidwell2008-07-111-9/+25
| | | | | | to 2048 characters. svn path=/trunk/hubbub/; revision=4585
* Get the test harness concatenating adjacent text nodes.Andrew Sidwell2008-07-111-13/+43
| | | | svn path=/trunk/hubbub/; revision=4582
* Fix the FIXME -- OS X was clearly being stupid earlier. This works fine on ↵John Mark Bell2008-07-101-5/+1
| | | | | | real OSen. svn path=/trunk/hubbub/; revision=4579
* Improved dependency tracking.John Mark Bell2008-07-101-3/+25
| | | | | | There's currently an issue that means that testcases don't get rebuilt when the debug library changes -- the workaround is to make clean. I've currently no idea how to fix this -- see the FIXME in test/Makefile for details. svn path=/trunk/hubbub/; revision=4571
* - Handle in_table_foster for element insertion (yet to do comment/character).Andrew Sidwell2008-07-101-2/+4
| | | | | | | - Fix test harness's insert_before() method. - Foster parenting now correctly taints the current table. svn path=/trunk/hubbub/; revision=4568
* Use correct format specifierJohn Mark Bell2008-07-101-20/+20
| | | | svn path=/trunk/hubbub/; revision=4567
* Remove some unintentionally committed debug code.Andrew Sidwell2008-07-101-3/+0
| | | | svn path=/trunk/hubbub/; revision=4564
* Format comments properly in text output. In the test harness. Again.Andrew Sidwell2008-07-101-2/+5
| | | | svn path=/trunk/hubbub/; revision=4563
* Fix another bug in the test harness.Andrew Sidwell2008-07-101-3/+17
| | | | svn path=/trunk/hubbub/; revision=4561
* Fix the test harness' implementation of reparent_children().Andrew Sidwell2008-07-101-6/+27
| | | | svn path=/trunk/hubbub/; revision=4559
* Make the testrunner not overwrite the root node in cases like "<!DOCTYPE ↵Andrew Sidwell2008-07-091-16/+24
| | | | | | html><html>", and make the node printer print all nodes in a document. svn path=/trunk/hubbub/; revision=4552
* Make the tree-construction testrunner ns-aware.Andrew Sidwell2008-07-091-11/+42
| | | | svn path=/trunk/hubbub/; revision=4551
* Get the tree-construction testrunner checking that tests actually pass.Andrew Sidwell2008-07-091-16/+73
| | | | svn path=/trunk/hubbub/; revision=4548
* Make the test harness ignore #document-fragment sections instead of choking ↵Andrew Sidwell2008-07-091-1/+4
| | | | | | on them. svn path=/trunk/hubbub/; revision=4544
* Move debugging statement for ease of debugging.Andrew Sidwell2008-07-091-1/+1
| | | | svn path=/trunk/hubbub/; revision=4537
* 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