- From: Jeroen van Rotterdam <jvrdam@xs4all.nl>
- Date: Fri, 24 May 2002 00:09:56 +0200 (CEST)
- To: <www-dom-ts@w3.org>
Hi, Below is a generated test (draft). setStringData says that stringDoc is undeclared. I'm probably missing something trivial here. any idea ? jeroen /** * DOM Builder test * @author X-Hive Corporation * @author X-Hive Corporation * @see <a href=""></a> */ public class DOMBuilderTest extends DOMTestCase { public DOMBuilderTest(DOMTestDocumentBuilderFactory factory) { super(factory); } public void runTest() throws java.lang.Throwable { DOMImplementation implementation; DOMImplementationLS lsImplementation; DOMInputSource inputSource; Document document; DOMWriter writer; DOMBuilder builder; String testfile1 = "test1.xml"; short mode = MODE_SYNCHRONOUS; String schemaType = null; builder = lsImplementation.createDOMBuilder(((unsigned short)/*short*/mode),schemaType); writer = lsImplementation.createDOMWriter(); inputSource = lsImplementation.createDOMInputSource(); NodeList elementList; String stringDoc; document = builder.parseURI(testfile1); elementList = document.getElementsByTagName("a"); assertSize("elementGetElementsByTagNameAssert",2,elementList); stringDoc = writer.writeToString(document); inputSource.setStringData(/* undeclared */stringDoc); document = builder.parseURI(testfile1); assertSize("elementGetElementsByTagNameAssert",2,elementList); } public String getTargetURI() { return "http://www.w3.org/2001/DOM-Test-Suite/level3/ls/DOMBuilderTest"; } public static void main(String[] args) { DOMTestCase.doMain(DOMBuilderTest.class,args); } } ===== X-Hive Corporation Jeroen van Rotterdam, CEO e-mail: jeroen@x-hive.com phone: +31 10 7108600 http://www.x-hive.com
Received on Thursday, 23 May 2002 18:10:02 UTC