Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests
In directory sc8-pr-cvs1:/tmp/cvs-serv12038/org/htmlparser/tests/tagTests
Modified Files:
LinkTagTest.java
Log Message:
Fixed bug #738504 MailLink != HTTPLink.
Added a testcase in LinkTagTest.
Index: LinkTagTest.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests/LinkTagTest.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** LinkTagTest.java 12 May 2003 01:37:49 -0000 1.19
--- LinkTagTest.java 18 May 2003 14:31:18 -0000 1.20
***************
*** 354,358 ****
);
assertTrue("This is a https link",linkTag2.isHTTPLikeLink());
! }
}
--- 354,375 ----
);
assertTrue("This is a https link",linkTag2.isHTTPLikeLink());
+ }
! /**
! * Bug #738504 MailLink != HTTPLink
! */
! public void testMailToIsNotAHTTPLink () throws ParserException
! {
! LinkTag link;
!
! createParser ("<A HREF='mailto:der...@us...'>Derrick</A>","http://sourceforge.net");
! // Register the link scanner
! parser.addScanner (new LinkScanner ("-l"));
!
! parseAndAssertNodeCount (1);
! assertTrue ("Node should be a HTMLLinkTag", node[0] instanceof LinkTag);
! link = (LinkTag)node[0];
! assertTrue ("bug #738504 MailLink != HTTPLink", !link.isHTTPLink ());
! assertTrue ("bug #738504 MailLink != HTTPSLink", !link.isHTTPSLink ());
! }
}
|