W3C home > Mailing lists > Public > www-dom-ts@w3.org > May 2002

undeclared var in generated test.

From: Jeroen van Rotterdam <jvrdam@xs4all.nl>
Date: Fri, 24 May 2002 00:09:56 +0200 (CEST)
Message-ID: <18001.62.163.200.152.1022191796.squirrel@webmail.xs4all.nl>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:58:46 GMT