[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit/parsing ParserPropertiesTest.java,1.1,1.
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2006-03-28 00:52:18
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/parsing In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11573/test/com/meterware/httpunit/parsing Modified Files: ParserPropertiesTest.java Log Message: Created custom DOM Index: ParserPropertiesTest.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/parsing/ParserPropertiesTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ParserPropertiesTest.java 24 Dec 2002 17:17:05 -0000 1.1 +++ ParserPropertiesTest.java 28 Mar 2006 00:52:15 -0000 1.2 @@ -45,8 +45,8 @@ public static TestSuite suite() { TestSuite ts = new TestSuite(); - boolean isJTidy = parserClassHasSubstring( "Tidy" ); - if (!isJTidy) ts.addTest( new ParserPropertiesTest( "testKeepCase" ) ); + boolean supportsKeepCase = HTMLParserFactory.getHTMLParser().supportsPreserveTagCase(); + if (supportsKeepCase) ts.addTest( new ParserPropertiesTest( "testKeepCase" ) ); return ts; } @@ -57,11 +57,6 @@ } - private static boolean parserClassHasSubstring( final String parserCode ) { - return HTMLParserFactory.getHTMLParser().getClass().getName().indexOf( parserCode ) >= 0; - } - - public ParserPropertiesTest( String name ) { super( name ); } |