From c34dc685f70193728ead525f59d56cdbf116f574 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 4 Nov 2007 03:40:09 +0000 Subject: Make TestObject support both HTML and XML documents and auto-detect which parser to use. Make binding testcase attempt to load an HTML document. Hubbub parser binding constructor takes Aliases file path as a parameter. Hubbub parser binding's token handler now spews debug at stdout. svn path=/trunk/dom/; revision=3648 --- test/binding.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/binding.c') diff --git a/test/binding.c b/test/binding.c index ac76733..e7d824f 100644 --- a/test/binding.c +++ b/test/binding.c @@ -10,10 +10,14 @@ int main(int argc, char **argv) struct dom_string *elementName; dom_exception err; TestObject *staff; + TestObject *html; staff = test_object_create(argc, argv, "staff.xml", false); assert(staff != NULL); + html = test_object_create(argc, argv, "sample.html", false); + assert(html != NULL); + doc = test_object_get_doc(staff); assert(doc != NULL); -- cgit v1.2.3