public class TagTest extends ParserTestCase
| 构造器和说明 |
|---|
TagTest(java.lang.String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
testAttributesReconstruction() |
void |
testBodyTagBug1()
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 |
testBrokenTag()
Bug report by Cedric Rosa, causing null pointer exceptions when encountering a broken tag,
and if this has no further lines to parse
|
void |
testEmptyTag()
Ignore empty tags.
|
void |
testEmptyTag2()
Ignore empty tags.
|
void |
testEmptyTag3()
Ignore empty tags.
|
void |
testEmptyTag4()
Ignore empty tags.
|
void |
testEmptyTag5()
Ignore empty tags.
|
void |
testEmptyTag6()
Ignore empty tags.
|
void |
testEmptyTagParseParameter()
Test parseParameter method
Created by Kaarle Kaila (09 Jan 2003)
This test just wants the text in the element
|
void |
testHTMLOutputOfDifficultLinksWithRegisterScanners()
See bug #741026 registerScanners() mangles output HTML badly.
|
void |
testIgnoreState() |
void |
testIncorrectInvertedCommas() |
void |
testIncorrectInvertedCommas2() |
void |
testIncorrectInvertedCommas3() |
void |
testLargeTagBug()
The following should be identified as a tag :
<MYTAG abcd\n"+ "efgh\n"+ "ijkl\n"+ "mnop> Creation date: (6/17/2001 5:27:42 PM) |
void |
testNestedTags()
Bug reported by Gordon Deudney 2002-03-15
Nested JSP Tags were not working
|
void |
testParameterChange()
See bug #740411 setParsed() has no effect on output.
|
void |
testParseParameter3()
Test parseParameter method
Created by Kaarle Kaila (august 2001)
the tag name is here G
|
void |
testParseParameterA()
Test parseParameter method
Created by Kaarle Kaila (august 2001)
the tag name is here A (and should be eaten up by linkScanner)
|
void |
testParseParameterG()
Test parseParameter method
Created by Kaarle Kaila (august 2001)
the tag name is here G
|
void |
testParseParameterSpace()
Test parseParameter method
Created by Kaarle Kaila (august 2002)
the tag name is here A (and should be eaten up by linkScanner)
Tests elements where = sign is surrounded by spaces
|
void |
testSetText()
See bug #726913 toHtml() method incomplete
|
void |
testStrictParsing()
Reproduction of a bug reported by Annette Doyle
This is actually a pretty good example of dirty html - we are in a fix
here, bcos the font tag (the first one) has an erroneous inverted comma.
|
void |
testStyleSheetTag() |
void |
testTabText()
From oyoaha
|
void |
testTagInsideTag() |
void |
testToHTML() |
void |
testWithoutParseParameter()
Test parseParameter method
Created by Kaarle Kaila (22 Oct 2001)
This test just wants the text in the element
|
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 testBodyTagBug1()
throws ParserException
ParserException - ParserExceptionpublic void testLargeTagBug()
throws ParserException
ParserException - ParserExceptionpublic void testNestedTags()
throws ParserException
ParserException - ParserExceptionpublic void testParseParameter3()
throws ParserException
ParserException - ParserExceptionpublic void testParseParameterA()
throws ParserException
ParserException - ParserExceptionpublic void testParseParameterG()
throws ParserException
ParserException - ParserExceptionpublic void testParseParameterSpace()
throws ParserException
ParserException - ParserExceptionpublic void testStrictParsing()
throws ParserException
ParserException - ParserExceptionpublic void testToHTML()
throws ParserException
ParserExceptionpublic void testWithoutParseParameter()
throws ParserException
ParserException - ParserExceptionpublic void testEmptyTagParseParameter()
throws ParserException
ParserException - ParserExceptionpublic void testStyleSheetTag()
throws ParserException
ParserExceptionpublic void testBrokenTag()
throws ParserException
ParserException - ParserExceptionpublic void testTagInsideTag()
throws ParserException
ParserExceptionpublic void testIncorrectInvertedCommas()
throws ParserException
ParserExceptionpublic void testIncorrectInvertedCommas2()
throws ParserException
ParserExceptionpublic void testIncorrectInvertedCommas3()
throws ParserException
ParserExceptionpublic void testEmptyTag()
throws ParserException
ParserException - ParserExceptionpublic void testEmptyTag2()
throws ParserException
ParserException - ParserExceptionpublic void testEmptyTag3()
throws ParserException
ParserException - ParserExceptionpublic void testEmptyTag4()
throws ParserException
ParserException - ParserExceptionpublic void testEmptyTag5()
throws ParserException
ParserException - ParserExceptionpublic void testEmptyTag6()
throws ParserException
ParserException - ParserExceptionpublic void testAttributesReconstruction()
throws ParserException
ParserExceptionpublic void testIgnoreState()
throws ParserException
ParserExceptionpublic void testSetText()
throws ParserException
ParserException - ParserExceptionpublic void testTabText()
throws ParserException
ParserException - ParserExceptionpublic void testHTMLOutputOfDifficultLinksWithRegisterScanners()
throws ParserException
ParserException - ParserExceptionpublic void testParameterChange()
throws ParserException
ParserException - ParserException