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
}
		catch ( PropertyValueException e )
		{
			assertEquals(
					PropertyValueException.DESIGN_EXCEPTION_ITEM_NOT_FOUND, e
							.getErrorCode( ) );
		}
	}
	/**
	 * Tests css style sheet.
	 * 
	 * @throws Exception
	 */
	public void testCssStyleSheet( ) throws Exception
	{
		openDesign( "BlankReportDesign.xml" ); 
		assertTrue( designHandle.canAddCssStyleSheet( getResource(
				"input/base.css" ).getFile( ) ) );
		assertTrue( designHandle.canAddCssStyleSheet( "base.css" ) );
		
		CssStyleSheetHandle sheetHandle = designHandle
				.openCssStyleSheet( getResource( "input/base.css" ).getFile( ) );
		assertNull( sheetHandle.getContainerHandle( ));
		designHandle.addCss( sheetHandle );
		assertFalse( designHandle.canAddCssStyleSheet( getResource(
				"input/base.css" ).getFile( ) ) );
		assertFalse( designHandle.canAddCssStyleSheet( sheetHandle ) );
		
		assertNotNull( sheetHandle.getContainerHandle( ) );