Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests
In directory sc8-pr-cvs1:/tmp/cvs-serv16662/tests/tagTests
Modified Files:
EndTagTest.java ScriptTagTest.java
Log Message:
Remove deprecated method calls:
elementBegin()->getStartPosition()
elementEnd()->getEndPosition()
Index: EndTagTest.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests/EndTagTest.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** EndTagTest.java 26 Oct 2003 19:46:27 -0000 1.33
--- EndTagTest.java 1 Nov 2003 01:36:57 -0000 1.34
***************
*** 66,71 ****
Tag endTag = (Tag)node[2];
assertTrue("Node should be an end Tag",endTag.isEndTag ());
! assertEquals("endtag element begin",pos,endTag.elementBegin());
! assertEquals("endtag element end",pos+9,endTag.elementEnd());
}
}
--- 66,71 ----
Tag endTag = (Tag)node[2];
assertTrue("Node should be an end Tag",endTag.isEndTag ());
! assertEquals("endtag element begin",pos,endTag.getStartPosition ());
! assertEquals("endtag element end",pos+9,endTag.getEndPosition ());
}
}
Index: ScriptTagTest.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests/ScriptTagTest.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** ScriptTagTest.java 26 Oct 2003 19:46:27 -0000 1.36
--- ScriptTagTest.java 1 Nov 2003 01:36:57 -0000 1.37
***************
*** 66,71 ****
assertTrue("Node should be a script tag",node[0] instanceof ScriptTag);
ScriptTag scriptTag = (ScriptTag)node[0];
! assertEquals("Script Tag Begin",0,scriptTag.elementBegin());
! assertEquals("Script Tag End",28,scriptTag.elementEnd());
assertEquals("Script Tag Code","Script Code",scriptTag.getScriptCode());
}
--- 66,71 ----
assertTrue("Node should be a script tag",node[0] instanceof ScriptTag);
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());
}
|