summaryrefslogtreecommitdiff
path: root/test/binding.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/binding.c')
-rw-r--r--test/binding.c35
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;
-}