Bug 180089 BIRT model - TOC predefined styles
In ROM we need to support predefined styles for TOC too. This will allow user to easily create a TOC style, by creating one of two styles. Suggestion i have is - TOC ( Applies to all TOC nodes ) - TOC-level1 ( If defined applies to first level toc nodes ) - TOC-level2 ........... - TOC-level5
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/SessionHandleTest.java
assertEquals( "body", error.getTagName( ) ); 
			error = (ErrorDetail) e.getErrorList( ).get( 1 );
			error = (ErrorDetail) e.getErrorList( ).get( 2 );
		}
	}
	/**
	 * Open the design file with semantic error.
	 * 
	 * @throws Exception
	 *             if any exception
	 */
	public void testOpenWithSemanticError( ) throws Exception
	{
		designHandle = null;
		designHandle = session.openDesign( getResource(
				INPUT_FOLDER + semanticErrorFileName ).toString( ) );
		assertEquals( 3, designHandle.getModule( ).getErrorList( ).size( ) );
		ErrorDetail error = (ErrorDetail) designHandle.getModule( )
				.getErrorList( ).get( 0 );
		assertEquals( DesignFileException.DESIGN_EXCEPTION_SEMANTIC_ERROR,
				error.getType( ) );
		assertEquals( SemanticError.DESIGN_EXCEPTION_MISSING_MASTER_PAGE, error
				.getErrorCode( ) );
		assertEquals( "ReportDesign", error.getElement( ).getElementName( ) ); 
		assertEquals( null, error.getElement( ).getName( ) );
		error = (ErrorDetail) designHandle.getErrorList( ).get( 1 );
		assertEquals(
				DesignParserException.DESIGN_EXCEPTION_UNDEFINED_PROPERTY,
				error.getErrorCode( ) );
		error = (ErrorDetail) designHandle.getErrorList( ).get( 2 );