From b226ea0af17319d7df3490392a7636331ff6ab01 Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Thu, 5 Jul 2012 20:41:30 +0100 Subject: Fix testsuite --- test/tree-buf.c | 9 +++++++++ test/tree.c | 10 ++++++++++ test/tree2.c | 9 +++++++++ 3 files changed, 28 insertions(+) diff --git a/test/tree-buf.c b/test/tree-buf.c index d1eb12f..9814932 100644 --- a/test/tree-buf.c +++ b/test/tree-buf.c @@ -93,6 +93,7 @@ static hubbub_error form_associate(void *ctx, void *form, void *node); static hubbub_error add_attributes(void *ctx, void *node, const hubbub_attribute *attributes, uint32_t n_attributes); static hubbub_error set_quirks_mode(void *ctx, hubbub_quirks_mode mode); +static hubbub_error complete_script(void *ctx, void *script); static void delete_node(node_t *node); static void delete_attr(attr_t *attr); @@ -115,6 +116,7 @@ static hubbub_tree_handler tree_handler = { add_attributes, set_quirks_mode, NULL, + complete_script, NULL }; @@ -735,6 +737,13 @@ hubbub_error set_quirks_mode(void *ctx, hubbub_quirks_mode mode) return HUBBUB_OK; } +hubbub_error complete_script(void *ctx, void *script) +{ + UNUSED(ctx); + UNUSED(script); + + return HUBBUB_OK; +} /*** Serialising bits ***/ diff --git a/test/tree.c b/test/tree.c index 58c222c..85fd21a 100644 --- a/test/tree.c +++ b/test/tree.c @@ -54,6 +54,7 @@ static hubbub_error form_associate(void *ctx, void *form, void *node); static hubbub_error add_attributes(void *ctx, void *node, const hubbub_attribute *attributes, uint32_t n_attributes); static hubbub_error set_quirks_mode(void *ctx, hubbub_quirks_mode mode); +static hubbub_error complete_script(void *ctx, void *script); static hubbub_tree_handler tree_handler = { create_comment, @@ -73,6 +74,7 @@ static hubbub_tree_handler tree_handler = { add_attributes, set_quirks_mode, NULL, + complete_script, NULL }; @@ -407,3 +409,11 @@ hubbub_error set_quirks_mode(void *ctx, hubbub_quirks_mode mode) return HUBBUB_OK; } +hubbub_error complete_script(void *ctx, void *script) +{ + UNUSED(ctx); + UNUSED(script); + + return HUBBUB_OK; +} + diff --git a/test/tree2.c b/test/tree2.c index a964951..15f75db 100644 --- a/test/tree2.c +++ b/test/tree2.c @@ -93,6 +93,7 @@ static hubbub_error form_associate(void *ctx, void *form, void *node); static hubbub_error add_attributes(void *ctx, void *node, const hubbub_attribute *attributes, uint32_t n_attributes); static hubbub_error set_quirks_mode(void *ctx, hubbub_quirks_mode mode); +static hubbub_error complete_script(void *ctx, void *script); static void delete_node(node_t *node); static void delete_attr(attr_t *attr); @@ -115,6 +116,7 @@ static hubbub_tree_handler tree_handler = { add_attributes, set_quirks_mode, NULL, + complete_script, NULL }; @@ -814,6 +816,13 @@ hubbub_error set_quirks_mode(void *ctx, hubbub_quirks_mode mode) return HUBBUB_OK; } +hubbub_error complete_script(void *ctx, void *script) +{ + UNUSED(ctx); + UNUSED(script); + + return HUBBUB_OK; +} /*** Serialising bits ***/ -- cgit v1.2.3