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
GridHandle gridHandle = designHandle.getElementFactory( ).newGridItem(
				"grid", 1, 1 ); 
		assertNotNull( gridHandle );
		CellHandle cellHandle = gridHandle.getCell( 1, 1 );
		assertNotNull( cellHandle );
		labelHandle = designHandle.getElementFactory( ).newLabel( "cellLabel" ); 
		assertNotNull( labelHandle );
		cellHandle.getContent( ).add( labelHandle );
		designHandle.getBody( ).add( gridHandle );
		MyListener listener = new MyListener( );
		cellHandle.addListener( listener );
		assertEquals( cellHandle, labelHandle.getContainer( ) );
		
		
		
		
		templateLabel = (TemplateReportItemHandle) labelHandle
				.createTemplateElement( labelHandle.getName( ) );
		assertEquals( templateLabel, designHandle.findElement( labelHandle
				.getName( ) ) );
		assertNotNull( templateLabel );
		assertEquals( NotificationEvent.TEMPLATE_TRANSFORM_EVENT,
				listener.event.getEventType( ) );
		assertEquals( cellHandle, listener.focus );
		TemplateTransformEvent ttEvent = (TemplateTransformEvent) listener.event;
		assertEquals( labelHandle.getElement( ), ttEvent.getFrom( ) );
		assertEquals( templateLabel.getElement( ), ttEvent.getTo( ) );
		assertEquals( Cell.CONTENT_SLOT, ttEvent.getSlot( ) );
		assertEquals( cellHandle.getElement( ), ttEvent.getTarget( ) );