use of org.eclipse.mylyn.wikitext.html.internal.SubstitutionWithoutCssSpanStrategy in project mylyn.docs by eclipse.
the class SpanStrategiesTest method spanWithTextDecorationLinethroughToDeleted.
@Test
public void spanWithTextDecorationLinethroughToDeleted() {
SpanStrategies strategies = new SpanStrategies(Sets.newHashSet(SpanType.DELETED), Collections.<SpanHtmlElementStrategy>emptyList());
SpanStrategy strategy = strategies.getStrategy(SpanType.SPAN, new Attributes(null, null, "text-decoration: line-through;", null));
assertTrue(strategy instanceof SubstitutionWithoutCssSpanStrategy);
assertEquals(SpanType.DELETED, ((SubstitutionWithoutCssSpanStrategy) strategy).getType());
}
Aggregations