summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2012-07-05 19:41:30 (GMT)
committer John-Mark Bell <jmb@netsurf-browser.org>2012-07-05 19:41:30 (GMT)
commitb226ea0af17319d7df3490392a7636331ff6ab01 (patch)
treea6d128dfecac27b929b9265d98515dedcc329471
parent24cadf35148075ab5300ac406a2c87c8496dc0d5 (diff)
downloadlibhubbub-b226ea0af17319d7df3490392a7636331ff6ab01.tar.gz
libhubbub-b226ea0af17319d7df3490392a7636331ff6ab01.tar.bz2
Fix testsuite
-rw-r--r--test/tree-buf.c9
-rw-r--r--test/tree.c10
-rw-r--r--test/tree2.c9
3 files changed, 28 insertions, 0 deletions
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 ***/