Bug 179888 The x-tab in library can not be used in report design when a x-tab exist in that report design[1102]
Description: The x-tab in library can not be used in report design when a x-tab exist in that report design[1102] Build number: 2.2.0.v20070329-0630 Steps to reproduce: 1, New a cube and x-tab in library 2, New a cube and x-tab in report 3, Using the x-tab from library in report Expected result: The x-tab can be used from library Actual result: No effact after dragging the x-tab from library explorer Error log:
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/extension/PeerExtensionTest.java
PropertyHandle propHandle = extendedItem
				.getPropertyHandle( HEADER_PROP );
		assertTrue( extendedItem.getPropertyDefn( HEADER_PROP ).canContain(
				MetaDataDictionary.getInstance( ).getElement(
						ReportDesignConstants.LABEL_ITEM ) ) );
		assertFalse( propHandle.canContain( ReportDesignConstants.LABEL_ITEM ) );
		
		propHandle = extendedItem.getPropertyHandle( DETAIL_PROP );
		TableHandle table = (TableHandle) propHandle.get( 0 );
		assertEquals( "testTable", table.getName( ) ); 
		
		
		SlotHandle slot = table.getDetail( ).get( 0 ).getSlot( 0 ).get( 0 )
				.getSlot( 0 );
		contentExtendedItem = (ExtendedItemHandle) slot.get( 0 );
		assertEquals( "detailBox", contentExtendedItem.getName( ) ); 
		
		propHandle = extendedItem.getPropertyHandle( FOOTER_PROP );
		GridHandle grid = (GridHandle) propHandle.get( 0 );
		assertEquals( "footerGrid", grid.getName( ) ); 
		openDesign( FILE_NAME_4 );
		extendedItem = (ExtendedItemHandle) designHandle
				.findElement( "testTable" ); 
		assertNotNull( extendedItem );
		assertNull( extendedItem.getReportItem( ) );
		assertEquals( TESTING_TABLE_NAME, extendedItem.getExtensionName( ) );
		assertNotNull( extendedItem.getDefn( ) );
		ExtensionPropertyDefn propDefn = (ExtensionPropertyDefn) extendedItem
				.getPropertyDefn( "customComments" ); 
		assertFalse( propDefn.hasOwnModel( ) );