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
ScriptDataSetHandle defaultDataSet = (ScriptDataSetHandle) templateDataSetParam
				.getDefaultElement( );
		assertNotNull( defaultDataSet );
		assertEquals( "firstDataSet", defaultDataSet.getName( ) ); 
		assertEquals( "myDataSource", defaultDataSet.getDataSource( ).getName( ) ); 
		assertEquals( "open script", defaultDataSet.getOpen( ) ); 
		assertEquals( "close script", defaultDataSet.getClose( ) ); 
		
		
		
		assertFalse( defaultLabel == designHandle.findElement( defaultLabel
				.getName( ) ) );
		assertNotNull( designHandle.findElement( defaultLabel.getName( ) ) );
		assertFalse( defaultDataSet == designHandle.findDataSet( defaultDataSet
				.getName( ) ) );
		assertNotNull( designHandle.findDataSet( defaultDataSet.getName( ) ) );
		
		
		
		TemplateDataSetHandle templateDataSet = designHandle
				.findTemplateDataSet( "templateDataSet" ); 
		assertNotNull( templateDataSet );
		TemplateReportItemHandle templateLabel = (TemplateReportItemHandle) designHandle
				.findElement( "templateLabel" ); 
		assertNotNull( templateLabel );
		assertEquals( templateDataSet.getElement( ), design.getNameHelper( ).getNameSpace(
				ReportDesign.DATA_SET_NAME_SPACE ).getElement(
				"templateDataSet" ) ); 
		assertEquals( templateLabel.getElement( ), design.getNameHelper( ).getNameSpace(
				ReportDesign.ELEMENT_NAME_SPACE ).getElement( "templateLabel" ) );