[Htmlparser-cvs] htmlparser/src/org/htmlparser/tests/temporaryFailures AttributeParserTest.java,1.7,
Brought to you by:
derrickoswald
|
From: <der...@us...> - 2003-08-15 20:55:17
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/temporaryFailures
In directory sc8-pr-cvs1:/tmp/cvs-serv3543/tests/temporaryFailures
Modified Files:
AttributeParserTest.java
Log Message:
Case maintaining toHtml() output for tag attributes.
With these changes, the output of toHtml() now reflects the upper/lower case values
of the input for the contents of tags, i.e. attribute names maintain their original case.
They're still out of order from how they are parsed, but this is a first step.
Rather than adjust all the test cases right now, the ParserTestCase assertSameString()
method now checks a global flag to see if case matters when comparing strings.
As of this drop it ignores case when comparing HTML output. This will soon change.
Index: AttributeParserTest.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/temporaryFailures/AttributeParserTest.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** AttributeParserTest.java 11 Aug 2003 00:18:33 -0000 1.7
--- AttributeParserTest.java 15 Aug 2003 20:51:48 -0000 1.8
***************
*** 58,62 ****
public void getParameterTableFor(String tagContents) {
tag = new Tag(new TagData(0,0,tagContents,""));
! table = parser.parseAttributes(tag);
}
--- 58,62 ----
public void getParameterTableFor(String tagContents) {
tag = new Tag(new TagData(0,0,tagContents,""));
! table = parser.parseAttributes(tag.getText ());
}
|