diff options
author | Bo Yang <struggleyb.nku@gmail.com> | 2009-08-11 11:17:23 +0000 |
---|---|---|
committer | Bo Yang <struggleyb.nku@gmail.com> | 2009-08-11 11:17:23 +0000 |
commit | 399da01ae4eb5c5e3e9349bacc2063c946c3d4a1 (patch) | |
tree | 433c8bcde94fc7a6e6f2e5cbf23842a84db98146 /test/binding.c | |
parent | eec057c7437e19b59ca1e698ce548cb56ce37240 (diff) | |
download | libdom-399da01ae4eb5c5e3e9349bacc2063c946c3d4a1.tar.gz libdom-399da01ae4eb5c5e3e9349bacc2063c946c3d4a1.tar.bz2 |
Merge the branches/struggleyb/libdom-remain back to trunk.
svn path=/trunk/dom/; revision=9191
Diffstat (limited to 'test/binding.c')
-rw-r--r-- | test/binding.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test/binding.c b/test/binding.c deleted file mode 100644 index e7d824f..0000000 --- a/test/binding.c +++ /dev/null @@ -1,35 +0,0 @@ -#include <stdio.h> - -#include <dom/dom.h> -#include "testutils.h" - -int main(int argc, char **argv) -{ - struct dom_document *doc; - struct dom_element *element; - 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); - - err = dom_document_get_document_element(doc, &element); - assert(err == DOM_NO_ERR); - assert(element != NULL); - - err = dom_element_get_tag_name(element, &elementName); - assert(err == DOM_NO_ERR); - assert(elementName != NULL); - - printf("PASS\n"); - - return 0; -} |