Bug 164070 Support widows/orphans properties on text item
Support widows/orphans properties on block text item(label, text, data etc), About the definition of widows/orphans, please refer to CSS spec.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/DesignElementHandleTest.java
* @throws SemanticException
	 */
	public void testContainment( ) throws SemanticException
	{
		createDesign( );
		CommandStack stack = designHandle.getCommandStack( );
		ElementFactory factory = designHandle.getElementFactory( );
		
		FreeFormHandle section1 = factory.newFreeForm( null );
		SlotHandle slot = designHandle.getBody( );
		assertEquals( slot.getCount( ), 0 );
		designHandle.getBody( ).add( section1 );
		assertEquals( section1, slot.get( 0 ) );
		NameSpace ns = design.getNameSpace( ReportDesign.ELEMENT_NAME_SPACE );
		assertEquals( 0, ns.getCount( ) );
		assertEquals( design, section1.getContainer( ) );
		
		stack.undo( );
		assertEquals( 0, slot.getCount( ) );
		assertNull( section1.getContainer( ) );
		stack.redo( );
		assertEquals( 1, slot.getCount( ) );
		assertEquals( section1, slot.get( 0 ) );
		assertEquals( design, section1.getContainer( ) );
		
		FreeFormHandle section2 = factory.newFreeForm( "Section2" );
		designHandle.getBody( ).add( section2 );
		assertEquals( 2, slot.getCount( ) );
		assertEquals( 1, ns.getCount( ) );
		assertEquals( section2, designHandle.findElement( "Section2" ) );