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
assertEquals( 2, gridHandle1.getColumns( ).getCount( ) );
		assertEquals( 3, gridHandle1.getRows( ).getCount( ) );
		for ( int i = 0; i < 2; i++ )
		{
			ColumnHandle colHandle = (ColumnHandle) gridHandle1.getColumns( )
					.get( i );
			assertEquals( gridHandle1, colHandle.getContainer( ) );
		}
		for ( int i = 0; i < 3; i++ )
		{
			RowHandle rowHandle = (RowHandle) gridHandle1.getRows( ).get( i );
			assertEquals( 2, rowHandle.getCells( ).getCount( ) );
			assertEquals( gridHandle1, rowHandle.getContainer( ) );
			for ( int j = 0; j < 2; j++ )
			{
				CellHandle cell = (CellHandle) rowHandle.getCells( ).get( j );
				assertEquals( rowHandle, cell.getContainer( ) );
			}
		}
		GridHandle gridHandle2 = factory.newGridItem( "Grid1", -1, -1 ); 
		assertEquals( 0, gridHandle2.getColumns( ).getCount( ) );
		assertEquals( 0, gridHandle2.getRows( ).getCount( ) );
	}
	/**
	 * Case: 1. create an element with a duplicated name. 2. check whether a new
	 * name is generated for the new element.
	 * 
	 * @throws ContentException
	 * @throws NameException
	 */