use of org.eclipse.mylyn.wikitext.html.internal.SpanStrategies 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());
}
use of org.eclipse.mylyn.wikitext.html.internal.SpanStrategies in project mylyn.docs by eclipse.
the class SpanStrategiesTest method createNonEmpty.
@Test
public void createNonEmpty() {
SpanStrategies strategies = new SpanStrategies(Sets.newHashSet(SpanType.BOLD, SpanType.CODE), Collections.<SpanHtmlElementStrategy>emptyList());
assertSupported(strategies, SpanType.BOLD);
assertSupported(strategies, SpanType.CODE);
for (SpanType spanType : SpanType.values()) {
assertNotNull(strategies.getStrategy(spanType, new Attributes()));
}
}
use of org.eclipse.mylyn.wikitext.html.internal.SpanStrategies in project mylyn.docs by eclipse.
the class SpanStrategiesTest method createEmpty.
@Test
public void createEmpty() {
SpanStrategies strategies = new SpanStrategies(Sets.<SpanType>newHashSet(), Collections.<SpanHtmlElementStrategy>emptyList());
assertNotNull(strategies.getStrategy(SpanType.BOLD, new Attributes()));
}
Aggregations