Bug 140620 Chart scripting errors are ignored
Write a chart with an invalid script, the execution simply ignores the script. This makes it difficult to debug scripting. The error message is also not precise and needs improvements.
engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLReportEmitter.java
.FINE, "[HTMLReportEmitter] Start text" ); 
		Resize if the text generated by TemplateDesign
		resizeTemplateElement( text);
		StringBuffer styleBuffer = new StringBuffer( );
		DimensionType x = text.getX( );
		DimensionType y = text.getY( );
		DimensionType w = text.getW( );
		DimensionType height = text.getHeight( );
		String textValue = text.getText( );
		textValue == null || textValue == "" ) 
		{
			textValue = " "; 
		}
		
		int display;
		 If the item is multi-line, we should check if it can be inline-block
		 textValue != null && textValue.indexOf( '\n' ) >= 0 )
		{
			display = checkElementType( x, y, w, height, mergedStyle,
					styleBuffer );
		}
		else
		{
			display = checkElementType( x, y, mergedStyle, styleBuffer );
		}
		 action
		String tagName;
		 handleAction( text.getHyperlinkAction( ) ) )
		{
			tagName = HTMLTags.TAG_A;
			setDisplayProperty( display, DISPLAY_BLOCK | DISPLAY_INLINE_BLOCK,
					styleBuffer );
			lder.checkHyperlinkTextDecoration( mergedStyle,
					styleBuffer );
		}
		else
		{
			tagName = openTagByType( display, DISPLAY_FLAG_ALL );
			setDisplayProperty( display, DISPLAY_INLINE_BLOCK, styleBuffer );
		}
		setStyleName( text.getStyleClass( ) );
		
		setB( tagName, text.getB( ) );
		
		 If text is get from a label or template, add it to active id list, and output type & iid to html
		setActiveIDTypeIID( text );
		
		 title
		ttribute( HTMLTags.ATTR_TITLE, text.getHelpText( ) ); 
		 check 'can-shrink' property
		handleShrink( display, mergedStyle, height, w, styleBuffer );
		handleStyle( text, styleBuffer, false );
		
		String verticalAlign = mergedStyle.getVerticalAlign( );
		 !"baseline".equals( verticalAlign ) && height != null )
		{
			 i
			writer.openTag( HTMLTags.TAG_TABLE );
			ttribute( HTMLTags.ATTR_STYLE, " w:100%; height:100%;" );
			writer.openTag( HTMLTags.TAG_TR );
			writer.openTag( HTMLTags.TAG_TD );
			StringBuffer textStyleBuffer = new StringBuffer( );
			textStyleBuffer.append( " vertical-align:" );
			textSty