Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/scannersTests
In directory sc8-pr-cvs1:/tmp/cvs-serv20167/tests/scannersTests
Modified Files:
CompositeTagScannerTest.java
Log Message:
Sixth drop for new i/o subsystem.
Isolated htmllexer.jar file and made it compileable and runnable on JDK 1.1 systems.
The build.xml file now has four new targets for separate compiling and jaring of the lexer and parser.
Significantly refactored the existing Node interface and AbstractNode class to achieve isolation.
They now support get/setChildren(), rather than CompositeTag.
Various scanners that were directly accessing the childTags node list were affected.
The get/setParent is now a generic Node rather than a CompositeTag.
The visitor accept() signature was changed to Object to avoid dragging in visitors code.
This was *not* changed on classes derived from Tag, although it could be.
ChainedException now uses/returns a Vector.
Removed the cruft from lexer nodes where possible.
Index: CompositeTagScannerTest.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/scannersTests/CompositeTagScannerTest.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** CompositeTagScannerTest.java 11 Aug 2003 00:18:32 -0000 1.32
--- CompositeTagScannerTest.java 23 Aug 2003 17:14:45 -0000 1.33
***************
*** 508,512 ****
Node firstChild = customTag.childAt(0);
assertType("firstChild",StringNode.class,firstChild);
! CompositeTag parent = firstChild.getParent();
assertNotNull("first child parent should not be null",parent);
assertSame("parent and custom tag should be the same",customTag,parent);
--- 508,512 ----
Node firstChild = customTag.childAt(0);
assertType("firstChild",StringNode.class,firstChild);
! Node parent = firstChild.getParent();
assertNotNull("first child parent should not be null",parent);
assertSame("parent and custom tag should be the same",customTag,parent);
|