[Htmlparser-cvs] htmlparser/src/org/htmlparser/tests/tagTests ScriptTagTest.java,1.37,1.38
Brought to you by:
derrickoswald
From: <der...@us...> - 2003-11-01 21:55:49
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests In directory sc8-pr-cvs1:/tmp/cvs-serv2656/tests/tagTests Modified Files: ScriptTagTest.java Log Message: Create nodes by cloning from a list of prototypes in the Parser (NodeFactory). So now, the startTag() is the CompositeTag, and the CompositeTagScanner just adds children. This is an intermediate code drop on the way to integrating the scanners with the tags; the scanners no longer create the tags (but they still create the prototypical ones). Index: ScriptTagTest.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests/ScriptTagTest.java,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** ScriptTagTest.java 1 Nov 2003 01:36:57 -0000 1.37 --- ScriptTagTest.java 1 Nov 2003 21:55:44 -0000 1.38 *************** *** 67,71 **** ScriptTag scriptTag = (ScriptTag)node[0]; assertEquals("Script Tag Begin",0,scriptTag.getStartPosition ()); ! assertEquals("Script Tag End",28,scriptTag.getEndPosition ()); assertEquals("Script Tag Code","Script Code",scriptTag.getScriptCode()); } --- 67,71 ---- ScriptTag scriptTag = (ScriptTag)node[0]; assertEquals("Script Tag Begin",0,scriptTag.getStartPosition ()); ! assertEquals("Script Tag End",28,scriptTag.getEndTag ().getEndPosition ()); assertEquals("Script Tag Code","Script Code",scriptTag.getScriptCode()); } |