summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* tests/tokenizer[23]: fix handling of CHARACTER tokensJohn-Mark Bell2023-09-162-4/+4
| | | | | | | | | | Where a CHARACTER token is emitted but the expected data is shorter than the data in the token, we want to consume the expected data and then process the remaining token data as if it were emitted separately. Sadly this didn't happen as we never initialised the replacement token correctly. Make this so, and also tell the compiler that the recursive call is actually a tail call so it can optimise it appropriately.
* Tests: Squash comparison of signed vs unsigned warnings.Michael Drake2021-05-152-8/+8
|
* Tests: libjson-c does not provide is_error any more.Michael Drake2021-05-152-2/+2
|
* Tests: Squash leaked chunks allocations.Michael Drake2018-07-281-0/+1
|
* Tests: Squash leak of hubbub parser.Michael Drake2018-07-281-2/+12
| | | | Found by address sanitizer.
* Tests: Fix passing NULL to qsort.Michael Drake2018-07-281-3/+6
| | | | test/tree2.c:882:3: runtime error: null pointer passed as argument 1, which is declared to never be null
* Tests: Squash json object leak in tests.Michael Drake2018-07-281-0/+2
|
* Tests: Squash implicit fallthrough error.Michael Drake2018-07-281-0/+1
| | | | test/tree2.c:239:10: error: this statement may fall through [-Werror=implicit-fallthrough=]
* Remove client allocation function and update for new lpu API.Michael Drake2013-12-147-88/+10
|
* Correct various warnings in the test suiteCraig Barnes2013-05-046-14/+14
|
* Don't use the nonportable alloca() during tests.Anthony J. Bentley2013-04-274-4/+12
|
* Fix up for json-c 0.10John-Mark Bell2012-08-291-14/+14
|
* Sprinkle some const correctness aroundJohn-Mark Bell2012-08-291-9/+9
|
* update for json-c 0.10 APIVincent Sanders2012-08-281-7/+6
|
* Fix testsuiteJohn-Mark Bell2012-07-053-0/+28
|
* Update to new NSBUILD infrastructureDaniel Silverstone2012-06-291-1/+1
| | | | svn path=/trunk/hubbub/; revision=14006
* Fix handling of xmlns attributes on foreign content root elementsJohn Mark Bell2011-10-271-0/+10
| | | | svn path=/trunk/hubbub/; revision=13083
* Remove Aliases file from test harnessesJohn Mark Bell2010-12-049-333/+30
| | | | svn path=/trunk/hubbub/; revision=10978
* Remove init/final and embed entity trie at build time. r=vinceDaniel Silverstone2010-12-0413-143/+3
| | | | svn path=/trunk/hubbub/; revision=10976
* A load of c89 compatibility fixes.John Mark Bell2009-04-166-39/+66
| | | | | | GCC 2.95 doesn't understand -Wno-unused-parameter svn path=/trunk/hubbub/; revision=7103
* Manually merge r7070 into trunkJohn Mark Bell2009-04-153-148/+159
| | | | svn path=/trunk/hubbub/; revision=7082
* Move hubbub_error_from_string into testutils.h and remove it from the library.John Mark Bell2009-04-041-0/+27
| | | | svn path=/trunk/hubbub/; revision=7041
* Purge testrunnerJohn Mark Bell2009-03-261-257/+0
| | | | svn path=/trunk/hubbub/; revision=6893
* Make testcases compile in release modeJohn Mark Bell2009-03-253-1/+56
| | | | svn path=/trunk/hubbub/; revision=6878
* Port to new test scheme.John Mark Bell2009-03-253-4/+6
| | | | | | Avoid strict-aliasing warnings. svn path=/trunk/hubbub/; revision=6870
* Fix determination of whether json is requiredJohn Mark Bell2009-03-241-8/+0
| | | | svn path=/trunk/hubbub/; revision=6846
* Flag argc as unusedJohn Mark Bell2009-03-241-0/+2
| | | | svn path=/trunk/hubbub/; revision=6842
* First cut at porting hubbub's buildsystem to the core toolsJohn Mark Bell2009-03-241-114/+4
| | | | svn path=/trunk/hubbub/; revision=6837
* Update test data to reflect spec changesJohn Mark Bell2009-03-103-5/+10
| | | | svn path=/trunk/hubbub/; revision=6763
* Sync treebuilder tests with html5libJohn Mark Bell2009-03-108-284/+344
| | | | svn path=/trunk/hubbub/; revision=6757
* Lose svn:executable propertyJohn Mark Bell2009-03-101-0/+0
| | | | svn path=/trunk/hubbub/; revision=6756
* Sync tokeniser tests with html5lib.John Mark Bell2009-03-109-281/+8579
| | | | | | | | Sync tokeniser implementation with the spec. Fix handling of \0 in the tag open state. The unicodeCharacters test is disabled, as json-c doesn't like it. svn path=/trunk/hubbub/; revision=6755
* Fix bug 2673645John Mark Bell2009-03-091-1/+1
| | | | | | <form><option>foo</option></form> => abort. svn path=/trunk/hubbub/; revision=6746
* Test data for bug 2673645John Mark Bell2009-03-092-1/+1823
| | | | svn path=/trunk/hubbub/; revision=6745
* Allow TESTTYPE=release to be specified to build the tests with the release ↵Daniel Silverstone2009-02-146-59/+49
| | | | | | | | | | CFLAGS. Add TARGET to the build paths. You should 'make distclean' before updating to this. Add BUILD_SHARED=yes support to the *nix build svn path=/trunk/hubbub/; revision=6478
* Rework testrunner to avoid deadlocks. Hopefully, this is the last time I ↵John Mark Bell2009-01-231-18/+103
| | | | | | have to do this. svn path=/trunk/hubbub/; revision=6179
* Return errors from parser constructor/destructor. This changes the public API.John Mark Bell2008-11-094-8/+8
| | | | svn path=/trunk/hubbub/; revision=5666
* Return errors from tokeniser constructor/destructorJohn Mark Bell2008-11-093-6/+6
| | | | svn path=/trunk/hubbub/; revision=5664
* Return errors from dictionary constructor/destructor.John Mark Bell2008-11-091-2/+1
| | | | | | Fix commentary copied from libcss svn path=/trunk/hubbub/; revision=5663
* Port hubbub to new lpu APIJohn Mark Bell2008-11-083-9/+6
| | | | svn path=/trunk/hubbub/; revision=5656
* Fixup dubious charsetsJohn Mark Bell2008-10-144-4/+4
| | | | svn path=/trunk/hubbub/; revision=5575
* Entity test, using chunks from log fileJohn Mark Bell2008-09-072-0/+45
| | | | svn path=/trunk/hubbub/; revision=5280
* Only include the .d files for testcases if we're building the test target.John Mark Bell2008-09-071-2/+2
| | | | svn path=/trunk/hubbub/; revision=5278
* Only look for json if we're building the test targetJohn Mark Bell2008-09-071-0/+2
| | | | svn path=/trunk/hubbub/; revision=5276
* Native RO buildsystem. Beware of the NOP.John Mark Bell2008-09-071-2/+8
| | | | svn path=/trunk/hubbub/; revision=5275
* Revert accidental commenting out of tree tester.Michael Drake2008-09-071-1/+1
| | | | svn path=/trunk/hubbub/; revision=5269
* Test case for attributes on first COL when COLGROUP is only implied.Michael Drake2008-09-072-1/+20
| | | | svn path=/trunk/hubbub/; revision=5268
* Fixes for handling of CR followed immediately by multibyte sequences.John Mark Bell2008-09-062-0/+21
| | | | | | | Pedantic whitespace changes. More paranoia surrounding entity handling. svn path=/trunk/hubbub/; revision=5266
* Untested regression test case for attribute on first tr in table with no tbody.Michael Drake2008-09-061-0/+17
| | | | svn path=/trunk/hubbub/; revision=5265
* Fix testutils line reader.John Mark Bell2008-09-051-1/+1
| | | | svn path=/trunk/hubbub/; revision=5253