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
rowHandle = (RowHandle) tableHandle1.getDetail( ).get( 0 );
		assertEquals( 2, rowHandle.getCells( ).getCount( ) );
		assertEquals( tableHandle1, rowHandle.getContainer( ) );
		TableHandle tableHandle2 = factory.newTableItem( "Table2", 3, 4, 5, 6 ); 
		assertEquals( "Table2", tableHandle2.getName( ) ); 
		assertEquals( 3, tableHandle2.getColumns( ).getCount( ) );
		assertEquals( 4, tableHandle2.getHeader( ).getCount( ) );
		assertEquals( 5, tableHandle2.getDetail( ).getCount( ) );
		assertEquals( 6, tableHandle2.getFooter( ).getCount( ) );
		
		
		for ( int i = 0; i < 4; i++ )
		{
			rowHandle = (RowHandle) tableHandle2.getHeader( ).get( i );
			assertEquals( 3, rowHandle.getCells( ).getCount( ) );
			for ( int j = 0; j < 2; j++ )
			{
				assertEquals( rowHandle, rowHandle.getCells( ).get( j )
						.getContainer( ) );
			}
		}
		
		for ( int i = 0; i < 5; i++ )
		{
			rowHandle = (RowHandle) tableHandle2.getDetail( ).get( i );
			assertEquals( 3, rowHandle.getCells( ).getCount( ) );
			for ( int j = 0; j < 2; j++ )
			{
				assertEquals( rowHandle, rowHandle.getCells( ).get( j )
						.getContainer( ) );