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
public void testDisplayGroupIconWithGroupKey( ) throws EngineException, IOException
	{
		String designFile = "org/eclipse/birt/report/engine/emitter/html/displayGroupIcon_Test1.xml";
		
		HTMLRenderOption options = new HTMLRenderOption( );
		options.setDisplayGroupIcon( true );
		String[] iconKeys = {"group key1 in data item",
				"group key2 in grid without query", "group key3 in data item",
				"group key4 with same expression"};
		String content = getRenderResult( designFile, false, options ).content;
		checkAllGroupIconDisplayed( options, content, iconKeys );
		content = getRenderResult( designFile, true, options ).content;
		checkAllGroupIconDisplayed( options, content, iconKeys );
	}
	/**
	 * 
	 * @throws EngineException
	 * @throws IOException
	 */
	public void testDefaultGroupIconPlace( ) throws EngineException, IOException
	{
		
		String designFile = "org/eclipse/birt/report/engine/emitter/html/displayGroupIcon_Test3.xml";
		HTMLRenderOption options = new HTMLRenderOption( );
		options.setDisplayGroupIcon( true );
		String content = getRenderResult( designFile, true, options ).content;
		content = content.replaceAll( "\n", "\"\n\"+\\\\n" );
		String regex = "<table[^<>]*>[^<>]*<tr[^<>]*>[^<>]*<td[^<>]*>[^<>]*<img[^<>]* src=\"iv/images/collapsexpand.gif\"[^<>]*>"
			+ "[^<>]*</td[^<>]*>[^<>]*<td[^<>]*>[^<>]*<div[^<>]*>[^<>]*<div[^<>]*>[^<>]*GroupHead";
		Matcher matcher = Pattern.compile( regex ).matcher( content );