summaryrefslogtreecommitdiff
path: root/test/lib/testobject.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-11-04 02:13:32 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-11-04 02:13:32 +0000
commit358bca1162d0112c8564ec3956a44f1d5adf574e (patch)
treed11aa84f5d56c95a9c21e39436c309d277d90e51 /test/lib/testobject.c
parent975de383a09510aae8d5a32f5fc97181fe2846a5 (diff)
downloadlibdom-358bca1162d0112c8564ec3956a44f1d5adf574e.tar.gz
libdom-358bca1162d0112c8564ec3956a44f1d5adf574e.tar.bz2
Fix TestObject after xml binding error changes
svn path=/trunk/dom/; revision=3647
Diffstat (limited to 'test/lib/testobject.c')
-rw-r--r--test/lib/testobject.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/lib/testobject.c b/test/lib/testobject.c
index 8f27445..5a20770 100644
--- a/test/lib/testobject.c
+++ b/test/lib/testobject.c
@@ -46,7 +46,8 @@ TestObject *test_object_create(int argc, char **argv,
if (xml_parser_initialised == false) {
assert(dom_initialise(myrealloc, NULL) == DOM_NO_ERR);
- assert(dom_xml_binding_initialise(myrealloc, NULL) == XML_OK);
+ assert(dom_xml_binding_initialise(myrealloc, NULL) ==
+ DOM_XML_OK);
atexit(test_object_cleanup);
@@ -81,7 +82,7 @@ TestObject *test_object_create(int argc, char **argv,
fread(buf, 1, CHUNK_SIZE, fp);
assert(dom_xml_parser_parse_chunk(ret->parser, buf,
- CHUNK_SIZE) == XML_OK);
+ CHUNK_SIZE) == DOM_XML_OK);
len -= CHUNK_SIZE;
}
@@ -90,12 +91,12 @@ TestObject *test_object_create(int argc, char **argv,
fread(buf, 1, len, fp);
assert(dom_xml_parser_parse_chunk(ret->parser, buf,
- len) == XML_OK);
+ len) == DOM_XML_OK);
len = 0;
}
- assert(dom_xml_parser_completed(ret->parser) == XML_OK);
+ assert(dom_xml_parser_completed(ret->parser) == DOM_XML_OK);
fclose(fp);