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/ReportDesignHandleTest.java
*/
	private void assertEqualsOnWindows( String expected, String actual )
	{
		if ( isWindowsPlatform( ) )
			assertEquals( expected, actual );
	}
	/**
	 * Tests the getReportItemsBasedonTempalates method.
	 * 
	 * This method is supposed to return report items which holds a template
	 * definition, that is, report item in body slot and page slot. Notice,
	 * nested template items is excluded.
	 * 
	 * @throws DesignFileException
	 * 
	 */
	public void testGetReportItemsBasedonTempalates( )
			throws DesignFileException
	{
		openDesign( "ReportDesignHandleTest3.xml" ); 
		List result = designHandle.getReportItemsBasedonTempalates( );
		assertEquals( 6, result.size( ) );
		assertEquals(
				"template table 1", ( (DesignElementHandle) result.get( 0 ) ).getName( ) ); 
		assertEquals(
				"template inner table", ( (DesignElementHandle) result.get( 1 ) ).getName( ) ); 
		assertEquals(
				"inner label", ( (DesignElementHandle) result.get( 2 ) ).getName( ) ); 
		assertEquals(
				"tamplate label 2", ( (DesignElementHandle) result.get( 3 ) ).getName( ) );