Bug 172273 Grid insert to masterpage dosen't display propertily [05]
Build Number: 2.2.0.v20070131-1050 Description: As the screenshot, insert a grid (3*3) in the master page.It can't be display propertily. Step to reproduce: 1. new a report and switch to masterpage 2. insert a grid (3*3) Actual result: Please refer to the screenshot, it's abnormal.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ElementFactoryTest.java
public void testMakeUniqueName( ) throws ContentException, NameException
	{
		assertFalse( designHandle.needsSave( ) );
		ElementFactory factory = new ElementFactory( design );
		TableHandle tableHandle1 = factory.newTableItem( "Table1", 2 ); 
		designHandle.getBody( ).add( tableHandle1 );
		TableHandle tableHandle2 = factory.newTableItem( "Table1", 2 ); 
		assertEquals( "Table11", tableHandle2.getName( ) ); 
		TableHandle tableHandle3 = factory.newTableItem( null );
		assertNull( tableHandle3.getName( ) );
	}
	/**
	 * New extended item from library.
	 * 
	 * @throws Exception
	 */
	public void testNewExtendedItemFrom( ) throws Exception
	{
		new PeerExtensionLoader( ).load( );
		openDesign( "ElementFactoryTest_2.xml" );
		LibraryHandle libraryHandle = designHandle
				.getLibrary( "ElementFactoryLibTest" );
		ExtendedItemHandle extendedItem = (ExtendedItemHandle) libraryHandle
				.getElementByID( 77 );
		DesignElementHandle handle = designHandle.getElementFactory( )
				.newElementFrom( extendedItem, "NewMatrix" );
		assertNotNull( handle );
		assertEquals( "NewMatrix", handle.getName( ) );
	}
}