Bug 176450 Support link to CSS Feature(Model Part)
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/parser/ReportDesignParseTest.java
/**
	 * Tests open a design file will reading the line number.
	 * 
	 * @throws DesignFileException
	 * 
	 * @throws Exception
	 */
	public void testParseReadingLineNumber( ) throws DesignFileException
	{
		openDesign( "LineNumberParseTest.xml" ); 
		TableHandle table = (TableHandle) designHandle.findElement( "table1" );
		assertEquals( 373, designHandle.getLineNo( table ) );
		CellHandle cell = (CellHandle) designHandle.getElementByID( 45 );
		assertEquals( 395, designHandle.getLineNo( cell ) );
		ExtendedItemHandle chart = (ExtendedItemHandle) designHandle
				.getElementByID( 34023 );
		assertEquals( 400, designHandle.getLineNo( chart ) );
		
		EmbeddedImageHandle image = (EmbeddedImageHandle) designHandle
				.getAllImages( ).get( 0 );
		assertEquals( 407, designHandle.getLineNo( image ) );
		
		LibraryHandle library = (LibraryHandle) designHandle.getLibraries( )
				.get( 0 );
		assertEquals( 8, designHandle.getLineNo( library ) );
		
		ThemeHandle theme = designHandle.getTheme( );
		assertEquals( 6, designHandle.getLineNo( theme ) );
	}
}