Bug 176674 Errors/Failures found in JUnit test of org.eclipse.birt.report.engine.emitter.html.tests
Errors/Failures found in JUnit test of org.eclipse.birt.report.engine.emitter.html.tests in daily build 20070308. The build runs from HEAD version. Please see the attachment for details.
engine/org.eclipse.birt.report.engine.emitter.html.tests/test/org/eclipse/birt/report/engine/emitter/html/MetadataEmitterTest.java
String identityString ) throws EngineException, IOException
	{
		String prefix = "<td[^<>]*>[^<>]*<img src=\"iv/images/collapsexpand.gif\"[^<>]*>[^<>]*</td>[^<>]*<td[^<>]*>[^<>]*<div[^<>]*>[^<>]*<div[^<>]*>";
		Pattern pattern = Pattern.compile( prefix + identityString );
		if( !pattern.matcher( content ).find( ) )
		{
			fail( "Group icon \"" + identityString + "\" is not displayed." );
		}
	}
	private void checkDisplyGroupIcon( String designFile,
			boolean displayFilterIcon, boolean isRenderTask )
			throws EngineException, IOException
	{
		HTMLRenderOption options = new HTMLRenderOption( );
		options.setDisplayGroupIcon( displayFilterIcon );
		String content = getRenderResult( designFile, isRenderTask, options ).content;
		content = content.replaceAll( "\n", "\"\n\"+\\\\n" );
		String regex = "<table[^<>]*>[^<>]*<tr[^<>]*>[^<>]*<td[^<>]*>[^<>]*<img[^<>]* src=\"iv/images/collapsexpand.gif\"[^<>]*>";
		assertString( displayFilterIcon, content, regex );
		String imageRegex = " src=\"iv/images/collapsexpand.gif\"";
		assertString( displayFilterIcon, content, imageRegex );
	}
	private void assertString( boolean displayFilterIcon, String content,
			String regex )
	{
		Matcher matcher = Pattern.compile( regex ).matcher( content );
		assertEquals( displayFilterIcon, matcher.find( ) );
	}
	private void checkAllTask( String designFile,
			String[][] bookmarksWithMetadata,