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
assertEquals( 0, extDefn.getSlotCount( ) );
		
		PropertyDefn slotPropertyDefn = (PropertyDefn) extDefn
				.getProperty( HEADER_PROP );
		assertEquals( IPropertyType.ELEMENT_TYPE, slotPropertyDefn
				.getTypeCode( ) );
		assertEquals(
				"Element.TestingBox.slot.header", slotPropertyDefn.getDisplayNameID( ) ); 
		assertEquals( "defaultHeader", slotPropertyDefn.getDisplayName( ) ); 
		assertFalse( slotPropertyDefn.isList( ) );
		List allowedElements = slotPropertyDefn.getAllowedElements( false );
		assertEquals( 3, allowedElements.size( ) );
		assertTrue( allowedElements.contains( dd
				.getElement( ReportDesignConstants.LABEL_ITEM ) ) );
		assertTrue( allowedElements.contains( dd
				.getElement( ReportDesignConstants.GRID_ITEM ) ) );
		assertTrue( allowedElements.contains( dd.getElement( "TestingMatrix" ) ) ); 
		
		slotPropertyDefn = (PropertyDefn) extDefn.getProperty( DETAIL_PROP );
		assertEquals(
				"Element.TestingBox.slot.detail", slotPropertyDefn.getDisplayNameID( ) ); 
		assertEquals( "defaultDetail", slotPropertyDefn.getDisplayName( ) ); 
		assertTrue( slotPropertyDefn.isList( ) );
		assertEquals( 4, slotPropertyDefn.getAllowedElements( false ).size( ) );
		assertTrue( slotPropertyDefn.getAllowedElements( ).size( ) > 4 );
		
		slotPropertyDefn = (PropertyDefn) extDefn.getProperty( FOOTER_PROP );
		assertEquals( "footer", slotPropertyDefn.getName( ) ); 
		assertEquals(
				"Element.TestingBox.slot.footer", slotPropertyDefn.getDisplayNameID( ) );