From 66d0cf30a6248b20af661ebe8d14776beffe52d2 Mon Sep 17 00:00:00 2001 From: James Shaw Date: Tue, 17 Jul 2007 21:40:18 +0000 Subject: Take out lots of code because it's broken, and needs rethinking. Partially fix attribute generation to call method on the right interface. svn path=/trunk/dom/; revision=3428 --- test/test-to-c.xsl | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/test/test-to-c.xsl b/test/test-to-c.xsl index 23cac3e..a4181d5 100644 --- a/test/test-to-c.xsl +++ b/test/test-to-c.xsl @@ -69,7 +69,10 @@ we generate an reporting that the element is not known. -#include <dom/dom.h> +#include <string.h> + +#include <dom/dom.h> +#include <utils.h> #include "testutils.h" @@ -115,7 +118,7 @@ The source document contained the following notice: append a counter to the variable name? --> - TestObject testObject = test_object_create(argc, argv, ".xml", false); + TestObject *testObject = test_object_create(argc, argv, ".xml", false); assert(testObject != NULL); = test_object_get_doc(testObject); @@ -245,13 +248,13 @@ DOM templates err = - + _get_ - (, &); + (, &); assert(err == DOM_NO_ERR); @@ -286,13 +289,13 @@ Assert templates + struct dom_string *match; - struct dom_document *actualDoc; - err = dom_node_get_owner_document(, &actualDoc); - assert(err == DOM_NO_ERR); - err = dom_string_create_from_const_ptr(actualDoc, , + err = dom_string_create_from_const_ptr(doc, , SLEN(), &match); assert(err == DOM_NO_ERR); @@ -342,6 +345,9 @@ Assert templates dom_element + + dom_node + -- cgit v1.2.3