com.github.searls.jasmine.runner
Class AbstractSpecRunnerHtmlGenerator

java.lang.Object
  extended by com.github.searls.jasmine.runner.AbstractSpecRunnerHtmlGenerator
Direct Known Subclasses:
DefaultSpecRunnerHtmlGenerator, RequireJsSpecRunnerHtmlGenerator

public abstract class AbstractSpecRunnerHtmlGenerator
extends Object


Field Summary
protected static String REPORTER_ATTR_NAME
           
protected static String SOURCES_TEMPLATE_ATTR_NAME
           
 
Constructor Summary
protected AbstractSpecRunnerHtmlGenerator(HtmlGeneratorConfiguration configuration)
           
 
Method Summary
protected  void applyCssToTemplate(List<String> styles, org.antlr.stringtemplate.StringTemplate template)
           
protected  void applyScriptTagsToTemplate(String sourcesTemplateAttrName, Set<String> scripts, org.antlr.stringtemplate.StringTemplate template)
           
 HtmlGeneratorConfiguration getConfiguration()
           
protected abstract  String getDefaultHtmlTemplatePath()
           
protected  void includeJavaScriptDependencies(List<String> dependencies, org.antlr.stringtemplate.StringTemplate template)
           
protected  org.antlr.stringtemplate.StringTemplate resolveHtmlTemplate()
           
protected  void setEncoding(HtmlGeneratorConfiguration htmlGeneratorConfiguration, org.antlr.stringtemplate.StringTemplate template)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCES_TEMPLATE_ATTR_NAME

protected static final String SOURCES_TEMPLATE_ATTR_NAME
See Also:
Constant Field Values

REPORTER_ATTR_NAME

protected static final String REPORTER_ATTR_NAME
See Also:
Constant Field Values
Constructor Detail

AbstractSpecRunnerHtmlGenerator

protected AbstractSpecRunnerHtmlGenerator(HtmlGeneratorConfiguration configuration)
Method Detail

setEncoding

protected void setEncoding(HtmlGeneratorConfiguration htmlGeneratorConfiguration,
                           org.antlr.stringtemplate.StringTemplate template)

resolveHtmlTemplate

protected org.antlr.stringtemplate.StringTemplate resolveHtmlTemplate()
                                                               throws IOException
Throws:
IOException

includeJavaScriptDependencies

protected void includeJavaScriptDependencies(List<String> dependencies,
                                             org.antlr.stringtemplate.StringTemplate template)
                                      throws IOException
Throws:
IOException

applyCssToTemplate

protected void applyCssToTemplate(List<String> styles,
                                  org.antlr.stringtemplate.StringTemplate template)
                           throws IOException
Throws:
IOException

getConfiguration

public HtmlGeneratorConfiguration getConfiguration()

getDefaultHtmlTemplatePath

protected abstract String getDefaultHtmlTemplatePath()

applyScriptTagsToTemplate

protected void applyScriptTagsToTemplate(String sourcesTemplateAttrName,
                                         Set<String> scripts,
                                         org.antlr.stringtemplate.StringTemplate template)
                                  throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.