summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/testutils/load.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/testutils/load.c b/test/testutils/load.c
index 2c93fc0..da22870 100644
--- a/test/testutils/load.c
+++ b/test/testutils/load.c
@@ -103,11 +103,19 @@ dom_document *load_html(const char *file, bool willBeModified)
dom_hubbub_error error;
dom_document *ret;
uint8_t buffer[1024];
+ dom_hubbub_parser_params params;
UNUSED(willBeModified);
- parser = dom_hubbub_parser_create(NULL, true, false, mymsg, NULL, NULL, &ret);
- if (parser == NULL) {
+ params.enc = NULL;
+ params.fix_enc = true;
+ params.enable_script = false;
+ params.msg = mymsg;
+ params.script = NULL;
+ params.ctx = NULL;
+
+ error = dom_hubbub_parser_create(&params, &parser, &ret);
+ if (error != DOM_HUBBUB_OK) {
fprintf(stderr, "Can't create Hubbub Parser\n");
return NULL;
}