Search in sources :

Example 1 with UnsupportedSpanStrategy

use of org.eclipse.mylyn.wikitext.html.internal.UnsupportedSpanStrategy in project mylyn.docs by eclipse.

the class SpanStrategiesTest method spanWithUnrecognizedCssToUnsupported.

@Test
public void spanWithUnrecognizedCssToUnsupported() {
    SpanStrategies strategies = new SpanStrategies(Sets.newHashSet(SpanType.BOLD), Collections.<SpanHtmlElementStrategy>emptyList());
    assertTrue(strategies.getStrategy(SpanType.SPAN, new Attributes(null, null, "font-weight:unknown", null)) instanceof UnsupportedSpanStrategy);
}
Also used : Attributes(org.eclipse.mylyn.wikitext.parser.Attributes) SpanStrategies(org.eclipse.mylyn.wikitext.html.internal.SpanStrategies) UnsupportedSpanStrategy(org.eclipse.mylyn.wikitext.html.internal.UnsupportedSpanStrategy) Test(org.junit.Test)

Aggregations

SpanStrategies (org.eclipse.mylyn.wikitext.html.internal.SpanStrategies)1 UnsupportedSpanStrategy (org.eclipse.mylyn.wikitext.html.internal.UnsupportedSpanStrategy)1 Attributes (org.eclipse.mylyn.wikitext.parser.Attributes)1 Test (org.junit.Test)1