use of org.eclipse.mylyn.wikitext.html.internal.SpanStrategy in project mylyn.docs by eclipse.
the class FontElementStrategyTest method assertHtmlFromSpanWithCss.
void assertHtmlFromSpanWithCss(String expectedHtml, String spanCssStyle) {
StringWriter out = new StringWriter();
HtmlDocumentBuilder builder = new HtmlDocumentBuilder(out);
SpanStrategy spanStrategy = strategy.spanStrategy();
spanStrategy.beginSpan(builder, SpanType.SPAN, new Attributes(null, null, spanCssStyle, null));
builder.characters("test");
spanStrategy.endSpan(builder);
assertEquals(expectedHtml, out.toString());
}
Aggregations