Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/scannersTests
In directory sc8-pr-cvs1:/tmp/cvs-serv12612/org/htmlparser/tests/scannersTests
Modified Files:
TableScannerTest.java
Log Message:
Added testOverFlow().
See bug #750117 StackOverFlow while Node-Iteration
Not reproducible.
May be a Windows thing.
Index: TableScannerTest.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/scannersTests/TableScannerTest.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** TableScannerTest.java 22 Jun 2003 21:37:47 -0000 1.24
--- TableScannerTest.java 28 Jun 2003 15:47:15 -0000 1.25
***************
*** 169,171 ****
--- 169,187 ----
assertEquals ("Unclosed","<TABLE><TR><TD>blah blah</TD></TR><TR><TD>blah blah</TD></TR></TABLE>",s);
}
+
+ /**
+ * See bug #750117 StackOverFlow while Node-Iteration
+ * Not reproducible.
+ */
+ public void testOverFlow () throws ParserException
+ {
+ Parser parser;
+ Node node;
+
+ parser = new Parser("http://www.sec.gov/Archives/edgar/data/30554/000089322002000287/w57038e10-k.htm");
+ parser.addScanner(new TableScanner(parser));
+ for (NodeIterator e = parser.elements(); e.hasMoreNodes(); )
+ node = e.nextNode();
+ }
+
}
|