public class LinkTagTest extends ParserTestCase
| 构造器和说明 |
|---|
LinkTagTest(java.lang.String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
_testLinkWithJSP()
Bug report by Cory Seefurth
|
void |
testAccessKey() |
void |
testBadImageInLinkBug() |
void |
testBaseRefLink() |
void |
testBrokenLink()
Test suggested by Cedric Rosa
A really bad link tag sends parser into infinite loop
|
void |
testCharacterReferenceInLink()
See bug #982175 False Positives on ® entity
|
void |
testErroneousLinkBug() |
void |
testErroneousLinkBugFromYahoo()
Test case based on a report by Raghavender Srimantula, of the parser giving out of memory exceptions.
|
void |
testErroneousLinkBugFromYahoo2()
Test case based on a report by Raghavender Srimantula, of the parser giving out of memory exceptions.
|
void |
testExtractLinkInvertedCommasBug2()
This is the reproduction of a bug which produces multiple text copies.
|
void |
testFreshMeatBug()
A bug in the freshmeat page - really bad html
tag - <A>Revision<\a>
Reported by Mazlan Mat
Note: Actually, this is completely legal HTML - Derrick
|
void |
testFTPLink() |
void |
testIrcIsNotAHTTPLink()
Bug #784767 irc://server/channel urls are HTTPLike?
|
void |
testJavascriptLink() |
void |
testLinkContainsEqualTo()
This is an attempt to reproduce bug 677874
reported by James Moliere.
|
void |
testLinkDataContents() |
void |
testLinkNodeBug()
The bug being reproduced is this :
<BODY aLink=#ff0000 bgColor=#ffffff link=#0000cc onload=setfocus() text=#000000 vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified. |
void |
testLinkNodeBug2()
The bug being reproduced is this :
<BODY aLink=#ff0000 bgColor=#ffffff link=#0000cc onload=setfocus() text=#000000 vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified. |
void |
testLinkNodeBug3()
The bug being reproduced is this :
When a url ends with a slash, and the link begins with a slash,the parser puts two slashes This bug was submitted by Roget Kjensrud Creation date: (6/17/2001 4:01:06 PM) |
void |
testLinkNodeBug4()
The bug being reproduced is this :
Simple url without index.html, doesent get appended to link This bug was submitted by Roget Kjensrud Creation date: (6/17/2001 4:01:06 PM) |
void |
testLinkNodeBug5() |
void |
testLinkNodeBugNullPointerException()
This bug occurs when there is a null pointer exception thrown while scanning a tag using LinkScanner.
|
void |
testLinkNodeMailtoBug()
This bug occurs when there is a null pointer exception thrown while scanning a tag using LinkScanner.
|
void |
testLinkNodeSingleQuoteBug()
This bug occurs when there is a null pointer exception thrown while scanning a tag using LinkScanner.
|
void |
testLinkSpacesBug()
Bug pointed out by Sam Joseph (sam@neurogrid.net)
Links with spaces in them will get their spaces absorbed
|
void |
testLinkTag()
The bug being reproduced is this :
<BODY aLink=#ff0000 bgColor=#ffffff link=#0000cc onload=setfocus() text=#000000 vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified. |
void |
testLinkTagBug()
The bug being reproduced is this :
<BODY aLink=#ff0000 bgColor=#ffffff link=#0000cc onload=setfocus() text=#000000 vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified. |
void |
testMailToIsNotAHTTPLink()
Test mail link.
|
void |
testMailtoLink() |
void |
testMultipleLineBug()
Bug reported by Raj Sharma,5-Apr-2002, upon parsing
http://www.samachar.com, the entire page could not be picked up.
|
void |
testNotFTPLink() |
void |
testNotJavascriptLink() |
void |
testNotMailtoLink() |
void |
testNullTagBug()
The bug being reproduced is this :
<A HREF=>Something<A> vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified. |
void |
testPlainText()
See bug #813838 links not parsed correctly
|
void |
testQueryLink()
This is a reproduction of bug 617228, reported by
Stephen J.
|
void |
testRelativeLinkNotHTMLBug() |
void |
testRelativeLinkScan() |
void |
testRelativeLinkScan2() |
void |
testRelativeLinkScan3() |
void |
testRelativeTypeHttpLink() |
void |
testScan()
Test scan with data which is of diff nodes type
|
void |
testTagSymbolsInLinkText() |
void |
testToHTML() |
void |
testToPlainTextString() |
void |
testTypeFtp() |
void |
testTypeHttpLikeLink() |
void |
testTypeHttpLink() |
void |
testTypeHttps() |
void |
testTypeJavaScript() |
void |
testTypeNonHttp() |
assertNodeCount, assertSameType, assertStringEquals, assertSuperType, assertTagEquals, assertType, assertXmlEquals, failWithMessage, getParser, main, parseAndAssertNodeCount, parseNodes, removeEscapeCharacters, setParser, testFakeassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toStringpublic void testLinkNodeBug()
throws ParserException
ParserException - ParserExceptionpublic void testLinkNodeBug2()
throws ParserException
ParserException - ParserExceptionpublic void testLinkNodeBug3()
throws ParserException
ParserException - ParserExceptionpublic void testLinkNodeBug4()
throws ParserException
ParserException - ParserExceptionpublic void testLinkNodeBug5()
throws ParserException
ParserExceptionpublic void testLinkNodeBugNullPointerException()
throws ParserException
ParserException - ParserExceptionpublic void testLinkNodeMailtoBug()
throws ParserException
ParserException - ParserExceptionpublic void testLinkNodeSingleQuoteBug()
throws ParserException
ParserException - ParserExceptionpublic void testLinkTag()
throws ParserException
ParserException - ParserExceptionpublic void testLinkTagBug()
throws ParserException
ParserException - ParserExceptionpublic void testNullTagBug()
throws ParserException
ParserException - ParserExceptionpublic void testToPlainTextString()
throws ParserException
ParserExceptionpublic void testToHTML()
throws ParserException
ParserExceptionpublic void testTypeHttps()
throws ParserException
ParserExceptionpublic void testTypeFtp()
throws ParserException
ParserExceptionpublic void testTypeJavaScript()
throws ParserException
ParserExceptionpublic void testTypeHttpLink()
throws ParserException
ParserExceptionpublic void testRelativeTypeHttpLink()
throws ParserException
ParserExceptionpublic void testTypeNonHttp()
throws ParserException
ParserExceptionpublic void testTypeHttpLikeLink()
throws ParserException
ParserExceptionpublic void testMailToIsNotAHTTPLink()
throws ParserException
ParserException - ParserExceptionpublic void testIrcIsNotAHTTPLink()
throws ParserException
ParserException - ParserExceptionpublic void testAccessKey()
throws ParserException
ParserExceptionpublic void testErroneousLinkBug()
throws ParserException
ParserExceptionpublic void testErroneousLinkBugFromYahoo2()
throws ParserException
ParserException - ParserExceptionpublic void testErroneousLinkBugFromYahoo()
throws ParserException
ParserException - ParserExceptionpublic void testExtractLinkInvertedCommasBug2()
throws ParserException
ParserException - ParserExceptionpublic void testLinkSpacesBug()
throws ParserException
ParserException - ParserExceptionpublic void testMultipleLineBug()
throws ParserException
ParserException - ParserExceptionpublic void testRelativeLinkScan()
throws ParserException
ParserExceptionpublic void testRelativeLinkScan2()
throws ParserException
ParserExceptionpublic void testRelativeLinkScan3()
throws ParserException
ParserExceptionpublic void testScan()
throws ParserException
ParserException - ParserExceptionpublic void testFreshMeatBug()
throws ParserException
ParserException - ParserExceptionpublic void testBrokenLink()
throws ParserException
ParserException - ParserExceptionpublic void testLinkDataContents()
throws ParserException
ParserExceptionpublic void testBaseRefLink()
throws ParserException
ParserExceptionpublic void testQueryLink()
throws ParserException
ParserException - ParserExceptionpublic void testNotMailtoLink()
throws ParserException
ParserExceptionpublic void testMailtoLink()
throws ParserException
ParserExceptionpublic void testJavascriptLink()
throws ParserException
ParserExceptionpublic void testNotJavascriptLink()
throws ParserException
ParserExceptionpublic void testFTPLink()
throws ParserException
ParserExceptionpublic void testNotFTPLink()
throws ParserException
ParserExceptionpublic void testRelativeLinkNotHTMLBug()
throws ParserException
ParserExceptionpublic void testBadImageInLinkBug()
throws ParserException
ParserExceptionpublic void testLinkContainsEqualTo()
throws java.lang.Exception
java.lang.Exception - Exceptionpublic void _testLinkWithJSP()
throws java.lang.Exception
java.lang.Exception - Exceptionpublic void testTagSymbolsInLinkText()
throws java.lang.Exception
java.lang.Exceptionpublic void testPlainText()
throws java.lang.Exception
java.lang.Exception - Exceptionpublic void testCharacterReferenceInLink()
throws java.lang.Exception
java.lang.Exception - Exception