Now that we have the first draft of the RendererTests class, we should continue heading in the right direction and add more tests. We'll likely need to refactor the existing tests to use a more robust architecture.
Missing tests we want to add:
RenderOptions.defaultLanguage when the default language is overridden
RenderOptions.safe with image elements
RenderOptions.sourcePos on all elements that use it (all block elements?)
All element types CeylonHtmlRenderer can produce, since they're not tested by SpecTests
It could also be nice to have the test input be an AST, so we can skip going through the Parser.
Now that we have the first draft of the
RendererTests
class, we should continue heading in the right direction and add more tests. We'll likely need to refactor the existing tests to use a more robust architecture.Missing tests we want to add:
RenderOptions.defaultLanguage
when the default language is overriddenRenderOptions.safe
with image elementsRenderOptions.sourcePos
on all elements that use it (all block elements?)CeylonHtmlRenderer
can produce, since they're not tested bySpecTests
It could also be nice to have the test input be an AST, so we can skip going through the
Parser
.