- From: Michael B Allen <mballen@erols.com>
- Date: Sat, 16 Mar 2002 03:37:02 -0500
- To: www-dom-ts@w3.org
Hello, I'm the author of a plain C implementation called DOMC. I would like to generate conformance test sources like: /* nodecommentnodename.c */ #include <stdlib.h> #include "domts.h" #include "dom.h" int main() { DOM_Document *doc; DOM_NodeList *elementList; int nodeType; DOM_String *commentName; DOM_String *commentNodeName; int _index; doc = load("staff"); elementList = doc->childNodes; for (_index = 0; _index < elementList->length; _index++) { commentNode = DOM_NodeList_item(elementList, index); nodeType = (int)commentNode->nodeType; if (8 == nodeType) { commentNodeName = commentNode->nodeName; assertEquals("nodeCommentNodeNameAssert1", "#comment", commentNodeName); } } return EXIT_SUCCESS; } I suspect the easiest way for me to do this is to modify the code/style-sheet that generated the Java test suite. Can I use that? If so where can I get it? If it's in the DOMTSL1Core-20020213 package where exactly is that? Thanks, Mike http://auditorymodels.org/domc/ -- May The Source be with you.
Received on Saturday, 16 March 2002 03:30:44 UTC