diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-07-09 15:43:00 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-07-09 15:43:00 +0000 |
commit | c32c49be6738551acdd5bbd94360e9973c921190 (patch) | |
tree | acb4550e14128285e519b828e3181e200bc3cd35 /test/tree2.c | |
parent | 6b9d7b0e859aa06b0f39e716f2576a19e025f955 (diff) | |
download | libhubbub-c32c49be6738551acdd5bbd94360e9973c921190.tar.gz libhubbub-c32c49be6738551acdd5bbd94360e9973c921190.tar.bz2 |
Make the test harness ignore #document-fragment sections instead of choking on them.
svn path=/trunk/hubbub/; revision=4544
Diffstat (limited to 'test/tree2.c')
-rw-r--r-- | test/tree2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/tree2.c b/test/tree2.c index cee4f3d..2e4304e 100644 --- a/test/tree2.c +++ b/test/tree2.c @@ -224,7 +224,10 @@ int main(int argc, char **argv) break; case READING_ERRORS: - assert(strcmp(line, "#document-fragment\n") != 0); + if (strcmp(line, "#document-fragment\n") == 0) { + hubbub_parser_destroy(parser); + state = EXPECT_DATA; + } if (strcmp(line, "#document\n") == 0) state = READING_TREE; |