Bug 199537 Fail to display data in Web viewer[0002]
Description: Fail to display data in Web viewer Build number:2.2.1.v200708101407 Steps to reproduce: 1. Preview attached report in Web Viewer. Expected result: Display data. Actual result: No data. Error log:n/a
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/writer/DocumentUtilTest.java
serializeDocument( );
		
		
		DesignElement localizedStyle = design.getNameHelper( ).getNameSpace(
				IReportDesignModel.STYLE_SLOT ).getElement( "table-footer" ); 
		assertNotNull( localizedStyle );
		assertTrue( compareFile( "DocumentUtilTest_external_selectors_golden.xml" ) ); 
	}
	/**
	 * @throws Exception
	 */
	public void testCubeAndCrosstable( ) throws Exception
	{
		openDesign( DESIGN_WITH_CUBE_EXTENDS );
		serializeDocument( );
		assertTrue( compareFile( "DocumentUtilTest_extends_cube_golden.xml" ) ); 
	}
	/**
	 * In the getPropertyFromElement() call of the
	 * ReportDesignSerializer.localizePropertyValues(), the module should be
	 * element.getRoot() instead of targetDesign. Otherwise, some elements
	 * cannot be resolved. It could caused preview failure.
	 * 
	 * @throws Exception
	 */
	public void testCubeAndCrosstable1( ) throws Exception
	{
		openDesign( DESIGN_WITH_TESTING_TABLE_EXTENDS );
		serializeDocument( );
		assertTrue( compareFile( "DocumentUtilTest_extends_testingtable_golden.xml" ) );