summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-02-04 11:54:09 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2017-02-04 12:01:58 (GMT)
commit71bc53dd545491641b6f036257ebf06c6dbd0d6c (patch)
treeeec6fd88eacd840732674a4a459dcd4bc27e34cf
parent40ae669964146b36ad797bdbb931c5967e7f13fd (diff)
downloadlibnslayout-71bc53dd545491641b6f036257ebf06c6dbd0d6c.tar.gz
libnslayout-71bc53dd545491641b6f036257ebf06c6dbd0d6c.tar.bz2
test loader: Add chunk text debug text.
-rw-r--r--test/test-loader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-loader.c b/test/test-loader.c
index 1131790..6d52691 100644
--- a/test/test-loader.c
+++ b/test/test-loader.c
@@ -99,6 +99,8 @@ bool test_loader_doc_load_next(
if (chunk_length > 0) {
/* Parse the chunk */
+ printf(" Text: %.*s\n", (int)chunk_length,
+ load_ctx->html->buf + load_ctx->html->pos);
error = dom_hubbub_parser_parse_chunk(load_ctx->parser,
load_ctx->html->buf + load_ctx->html->pos,
chunk_length);