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
assertEquals( "pdf, 10 people", hideHandle.getExpression( ) ); 
		
		hideHandle = (HideRuleHandle) rules.next( );
		assertNotNull( hideHandle );
		assertEquals( DesignChoiceConstants.FORMAT_TYPE_ALL, hideHandle
				.getFormat( ) );
		assertEquals( "excel, 10 people", hideHandle.getExpression( ) ); 
	}
	/**
	 * Test parser and properties of table element.
	 * 
	 * @throws Exception
	 * 
	 */
	public void testParser( ) throws Exception
	{
		openDesign( fileName );
		save();
		TableHandle table = (TableHandle) designHandle.findElement( "My table" ); 
		assertNotNull( table );
		
		assertEquals( "birt.js.myTableHandler", table 
				.getEventHandlerClass( ) );
		
		assertEquals( "create on the table", table.getOnCreate( ) ); 
		assertEquals( "render on the table", table.getOnRender( ) ); 
		assertEquals( "prepare on the table", table.getOnPrepare( ) ); 
		assertTrue( table.repeatHeader( ) );
		assertEquals( "bluehero", table.getCaption( ) ); 
		assertEquals( "blue he", table.getCaptionKey( ) );