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/parser/TableItemParseTest.java
SlotHandle cells = row.getCells( );
		assertNotNull( cells );
		assertEquals( 1, cells.getCount( ) );
		CellHandle cell = (CellHandle) cells.get( 0 );
		
		cell.setEventHandlerClass( "birt.js.newNewHandler" ); 
		cell.setOnCreate( null );
		cell.setOnPrepare( "new prepare on cell" ); 
		cell.setOnRender( "new render on cell" ); 
		save();
		assertTrue( compareFile( goldenFileName) );
	}
	/**
	 * Test semantic check.
	 * 
	 * @throws Exception
	 * 
	 */
	public void testSemanticCheck( ) throws Exception
	{
		openDesign( semanticCheckFileName );
		List errors = design.getErrorList( );
		int i = 0;
		assertEquals( 8, errors.size( ) );
		ErrorDetail error = ( (ErrorDetail) errors.get( i++ ) );
		assertEquals( "First table", error.getElement( ).getName( ) ); 
		assertEquals(
				SemanticError.DESIGN_EXCEPTION_INCONSITENT_TABLE_COL_COUNT,
				error.getErrorCode( ) );
		error = ( (ErrorDetail) errors.get( i++ ) );