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
commit5a0d96027b949a0c1b0b25e8553a78e2a8957c48 (patch)
tree13dcd636d0d7565a7a0264e7862fde69d92d4b22 /test/testutils
parentfbca5202226bd61eff58f5125ca6eed44c463771 (diff)
downloadlibdom-5a0d96027b949a0c1b0b25e8553a78e2a8957c48.tar.gz
libdom-5a0d96027b949a0c1b0b25e8553a78e2a8957c48.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;
}