public class ImageTagTest extends ParserTestCase
构造器和说明 |
---|
ImageTagTest(java.lang.String name) |
限定符和类型 | 方法和说明 |
---|---|
ImageTag |
extractLinkImage(LinkTag link)
See bug #753003 IMG within A missed when followed by MAP
Not reproducible.
|
void |
testDirectRelativeLinks() |
void |
testDynamicRelativeImageScan() |
void |
testEmptyStringElement() |
void |
testExtractImageLocnInvertedCommasBug()
This is the reproduction of a bug which causes a null pointer exception
|
void |
testImageTag()
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 |
testImageTagBug()
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 |
testImageTageBug2()
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 |
testImageTagOnMultipleLines()
This is the reproduction of a bug reported
by Annette Doyle
|
void |
testImageTagsFromYahoo()
Test case to reproduce bug reported by Annette
|
void |
testImageTagsFromYahooWithAllScannersRegistered()
Test case to reproduce bug reported by Annette
|
void |
testImageTagSingleQuoteBug()
This bug occurs when there is a null pointer exception thrown while scanning a tag using LinkScanner.
|
void |
testImageWithNewLineChars() |
void |
testImageWithSpaces()
Test image url which contains spaces in it.
|
void |
testMapFollowImg()
Not reproducible.
|
void |
testMissingEqualTo()
Based on a page submitted by Claude Duguay, the image tag has IMG SRC"somefile.jpg" - a missing equal
to sign
|
void |
testNullImageBug()
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 |
testPlaceHolderImageScan()
This test has been improved to check for params
in the image tag, based on requirement by Annette Doyle.
|
void |
testRelativeImageScan() |
void |
testRelativeImageScan2() |
void |
testRelativeImageScan3() |
void |
testToHTML() |
assertNodeCount, assertSameType, assertStringEquals, assertSuperType, assertTagEquals, assertType, assertXmlEquals, failWithMessage, getParser, main, parseAndAssertNodeCount, parseNodes, removeEscapeCharacters, setParser, testFake
assertEquals, 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, toString
public void testImageTag() throws ParserException
ParserException
- ParserExceptionpublic void testImageTagBug() throws ParserException
ParserException
- ParserExceptionpublic void testImageTageBug2() throws ParserException
ParserException
- ParserExceptionpublic void testImageTagSingleQuoteBug() throws ParserException
ParserException
- ParserExceptionpublic void testNullImageBug() throws ParserException
ParserException
- ParserExceptionpublic void testToHTML() throws ParserException
ParserException
public ImageTag extractLinkImage(LinkTag link)
link
- LinkTagpublic void testMapFollowImg() throws ParserException
ParserException
- ParserExceptionpublic void testEmptyStringElement() throws ParserException
ParserException
public void testDynamicRelativeImageScan() throws ParserException
ParserException
public void testExtractImageLocnInvertedCommasBug() throws ParserException
ParserException
- ParserExceptionpublic void testPlaceHolderImageScan() throws ParserException
ParserException
- ParserExceptionpublic void testRelativeImageScan() throws ParserException
ParserException
public void testRelativeImageScan2() throws ParserException
ParserException
public void testRelativeImageScan3() throws ParserException
ParserException
public void testImageWithSpaces() throws ParserException
ParserException
- ParserExceptionpublic void testImageWithNewLineChars() throws ParserException
ParserException
public void testImageTagsFromYahoo() throws ParserException
ParserException
- ParserExceptionpublic void testImageTagsFromYahooWithAllScannersRegistered() throws ParserException
ParserException
- ParserExceptionpublic void testImageTagOnMultipleLines() throws ParserException
ParserException
- ParserExceptionpublic void testDirectRelativeLinks() throws ParserException
ParserException
public void testMissingEqualTo() throws ParserException
ParserException
- ParserException