From 353ab0fbe152e97a06b59493b012cea921c31afc Mon Sep 17 00:00:00 2001 From: James Shaw Date: Sat, 14 Jul 2007 11:14:05 +0000 Subject: Implement metadata function comment. Partially implement on DOMStrings. dom_string_create_from_const_ptr lookup is currently hardwired. svn path=/trunk/dom/; revision=3410 --- test/test-to-c.xsl | 170 ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 135 insertions(+), 35 deletions(-) (limited to 'test') diff --git a/test/test-to-c.xsl b/test/test-to-c.xsl index 5502d60..6c26730 100644 --- a/test/test-to-c.xsl +++ b/test/test-to-c.xsl @@ -7,14 +7,14 @@ test representation. - - dom1-interfaces.xml - http://www.w3.org/2001/DOM-Test-Suite/tests/Level-1/ - - + dom1-interfaces.xml + http://www.w3.org/2001/DOM-Test-Suite/tests/Level-1/ + + + - + - + @@ -69,37 +69,52 @@ we generate an reporting that the element is not known. + -int main(int argc, char **argv) { +int main(int argc, char **argv) +{ + dom_exception err; - + return 0; } + + /** + + + + + */ + + + + + - + struct *; - - if () { - - + - } + if () { + + + } else { - + } @@ -112,6 +127,10 @@ DOM templates ================================ --> + + strcmp(TODO, "") == 0 + + @@ -146,9 +165,21 @@ DOM templates + - err = TODO_function_call(, &); + err = + + + + _get_ + + + + (, &); assert(err == DOM_NO_ERR); @@ -161,40 +192,109 @@ Assert templates ================================ --> - + assert( != NULL); - + assert( == NULL); + + + + + + + + struct dom_string *match; + err = dom_string_create_from_const_ptr(doc , , + SLEN(), &match); + assert(err == DOM_NO_ERR); + assert(dom_string_cmp(, match) == 0); + + + + Warning in assertEquals template: don't know how to compare variable type '' + + + + - -dom_ - - document - - - document_type - - - string - - - Warning in convert_var_type template: unrecognised variable type '' - - - + + dom_ + + + document + + + document_type + + + string + + + Warning in convert_var_type template: unrecognised variable type '' + + + + + + + + + + + node_value + + + + + + + + + + + + + + + + * + + + + + + + + + + + + + * + + + + + -- cgit v1.2.3