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/parser/LabelItemParserTest.java
openDesign( semanticCheckFileName );
		}
		catch ( DesignFileException e )
		{
			List list = e.getErrorList( );
			ErrorDetail detail = (ErrorDetail) list.get( 0 );
			assertEquals( detail.getErrorCode( ),
					NameException.DESIGN_EXCEPTION_DUPLICATE );
		}
	}
	/**
	 * Returns a lable handle by reading a label in design file.
	 * 
	 * @return a label handle.
	 * @throws Exception
	 *             if opening design file failed.
	 */
	private LabelHandle getLabel( ) throws Exception
	{
		openDesign( fileName );
		MasterPageHandle masterPageHandle = (MasterPageHandle) designHandle
				.getMasterPages( ).get( 0 ); 
		assertEquals( 2, masterPageHandle.getSlot( 0 ).getCount( ) );
		Iterator it = masterPageHandle.getSlot( 0 ).iterator( );
		assertEquals( "label1", ( (LabelHandle) it.next( ) ).getName( ) ); 
		LabelHandle labelHandle = (LabelHandle) it.next( );
		assertEquals( "label2", labelHandle.getName( ) ); 
		return labelHandle;
	}
}