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
( (ErrorDetail) list.get( 0 ) ).getErrorCode( ) );
		list = myListener.errorList;
		assertEquals( 1, list.size( ) );
		assertEquals( SemanticError.DESIGN_EXCEPTION_MISSING_DATA_SET,
				( (ErrorDetail) list.get( 0 ) ).getErrorCode( ) );
		designHandle.removeValidationListener( myListener );
	}
	/**
	 * Test isValid() and hasValidationError().
	 * 
	 * @throws DesignFileException
	 */
	public void testValidAndHasValidationError( ) throws DesignFileException
	{
		openDesign( "DesignElementHandleTest_1.xml" ); 
		assertEquals( 1, designHandle.getErrorList( ).size( ) );
		OdaDataSourceHandle dataSourceHandle = (OdaDataSourceHandle) designHandle
				.findDataSource( "myDataSource" ); 
		assertNotNull( dataSourceHandle );
		List list = dataSourceHandle.semanticCheck( );
		assertEquals( 0, list.size( ) );
		assertTrue( dataSourceHandle.isValid( ) );
		assertFalse( dataSourceHandle.hasSemanticError( ) );
		dataSourceHandle.setValid( false );
		assertFalse( dataSourceHandle.isValid( ) );
		assertFalse( dataSourceHandle.hasSemanticError( ) );
		
		DesignElementHandle myTable = designHandle.findElement( "myTable" ); 
		designHandle.checkReport( );
		assertTrue( myTable.isValid( ) );