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
TemplateReportItemHandle templateGrid = (TemplateReportItemHandle) gridHandle
				.createTemplateElement( "templateGrid" ); 
		assertNotNull( templateGrid );
	}
	/**
	 * Tests the destroying the useless TemplateParameterDefinition when calling
	 * semanticCheck of report design.
	 * 
	 * @throws Exception
	 * 
	 */
	public void testDestroyTemplateParameterDefinition( ) throws Exception
	{
		designHandle = ( new DesignEngine( new DesignConfig( ) ) )
				.newSessionHandle( (ULocale) null ).createDesign( );
		LabelHandle labelHandle = designHandle.getElementFactory( ).newLabel(
				"label" ); 
		assertNotNull( labelHandle );
		ContainerSlot templateParams = designHandle.getElement( ).getSlot(
				ReportDesign.TEMPLATE_PARAMETER_DEFINITION_SLOT );
		assertEquals( 0, templateParams.getCount( ) );
		designHandle.getBody( ).add( labelHandle );
		TemplateElementHandle templateLabel = labelHandle
				.createTemplateElement( "templateLabel" ); 
		assertNotNull( templateLabel );
		assertEquals( designHandle, templateLabel.getRoot( ) );
		assertEquals( 1, templateParams.getCount( ) );
		templateLabel.drop( );
		designHandle.checkReport( );