summaryrefslogtreecommitdiff
path: root/test/testutils
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-12-06 16:16:01 +0000
committerVincent Sanders <vince@netsurf-browser.org>2012-12-06 16:16:59 +0000
commit2f8d84b8961315d3531608b2d3d36b23979d3e15 (patch)
tree13dcd636d0d7565a7a0264e7862fde69d92d4b22 /test/testutils
parent77efdb615b56e66fcdd4fc49efac37a460196fc3 (diff)
downloadlibdom-2f8d84b8961315d3531608b2d3d36b23979d3e15.tar.gz
libdom-2f8d84b8961315d3531608b2d3d36b23979d3e15.tar.bz2
make the hubbub binding creation take a parameter struct and return standard error codes
Diffstat (limited to 'test/testutils')
-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;
}