Bug 191410 [Regression] Can not new a report from predefined dual column chart & listing template [00]
Description: Can not new a report from predefined dual column chart & listing template. Build number: 2.2.0.v20070607-0630 Steps to reproduce: 1. New a report from predefined dual column chart & listing template. Expected result: The report can be created. Actual result: XML Source page shows up after click finish. Error log: N/A
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/parser/TemplateElementParserTest.java
assertEquals( label.getElement( ), designHandle.findElement( label
				.getName( ) ) );
		assertNull( designHandle.findElement( templateLabel.getName( ) ) );
		assertNull( templateLabel.getContainer( ) );
		assertEquals( "templateLabelParam", label.getElement( ) 
				.getTemplateParameterElement( design ).getName( ) );
	}
	/**
	 * Tests a report item or data set based on template definition to be
	 * reverted to a template element.
	 * 
	 * @throws Exception
	 */
	public void testRevertToTemplate( ) throws Exception
	{
		openDesign( "TemplateElementParserTest_3.xml" ); 
		assertNotNull( designHandle );
		
		LabelHandle label = (LabelHandle) designHandle.findElement( "label" ); 
		assertNotNull( label );
		assertEquals( "templateLabelParam", label.getElement( ) 
				.getTemplateParameterElement( design ).getName( ) );
		ScriptDataSetHandle dataSet = (ScriptDataSetHandle) designHandle
				.findDataSet( "dataSet" ); 
		assertNotNull( dataSet );
		assertEquals(
				"templateDataSetParam", dataSet.getElement( ).getTemplateParameterElement( design ).getName( ) ); 
		
		TemplateElementHandle templateHandle = null;
		templateHandle = label.revertToTemplate( "templateLabel" );