[Htmlparser-cvs] htmlparser/src/org/htmlparser/tests/parserHelperTests RemarkNodeParserTest.java,1.4
Brought to you by:
derrickoswald
From: <der...@us...> - 2004-01-02 05:01:32
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/parserHelperTests In directory sc8-pr-cvs1:/tmp/cvs-serv27740/parserHelperTests Modified Files: RemarkNodeParserTest.java Log Message: Added testcases but was unable to reproduce the following bugs in the version 1.4 codebase: 839264 toHtml() parse error in Javascripts with "form" keyword 833592 DOCTYPE element is not parsed correctly 826764 ParserException occurs only when using setInputHTML() instea 825820 Words conjoined 825645 <input> not getting parsed inside table 813838 links not parsed correctly and #851882 zero length alt tag causes bug in ImageScanner #832530 empty attribute causes parser to fail #805598 attribute src in tag img sometimes not correctly parsed (these 3 are all the same bug, duplicates of the following): #753012 IMG SRC not parsed v1.3 & v1.4 #755929 Empty string attr. value causes attr parsing to be stopped #778781 SRC-attribute suppression in IMG-tags Also reviewed these test cases, again, with none reproducible in 1.4: #788746 parser crashes on comments like <!-- foobar --!> #772700 Jsp Tags are not parsed correctly when in quoted attributes. Index: RemarkNodeParserTest.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/parserHelperTests/RemarkNodeParserTest.java,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** RemarkNodeParserTest.java 8 Dec 2003 01:31:54 -0000 1.42 --- RemarkNodeParserTest.java 2 Jan 2004 05:01:28 -0000 1.43 *************** *** 366,369 **** --- 366,370 ---- /** * Test a comment ending with !--. + * See bug #788746 parser crashes on comments like <!-- foobar --!> */ public void testExclamationComment () *************** *** 383,386 **** --- 384,389 ---- parser.setNodeFactory (new PrototypicalNodeFactory (true)); parseAndAssertNodeCount (18); + assertTrue("Node should be a RemarkNode but was " + node[12], node[12] instanceof RemarkNode); + assertStringEquals ("remark text", "<!-- foobar --!>", node[12].toHtml ()); } |