use of org.eclipse.mylyn.wikitext.parser.Attributes in project mylyn.docs by eclipse.
the class HtmlDocumentBuilderTest method blockPreformatted.
@Test
public void blockPreformatted() {
builder.beginBlock(BlockType.PREFORMATTED, new Attributes());
builder.characters("test");
builder.endBlock();
assertEquals("<pre>test</pre>", out.toString());
}
use of org.eclipse.mylyn.wikitext.parser.Attributes in project mylyn.docs by eclipse.
the class MultiplexingDocumentBuilderTest method beginSpan.
@Test
public void beginSpan() {
multiplexer.beginSpan(SpanType.DELETED, new Attributes());
assertEvents(new BeginSpanEvent(SpanType.DELETED, new Attributes()));
}
use of org.eclipse.mylyn.wikitext.parser.Attributes in project mylyn.docs by eclipse.
the class BeginSpanEventTest method equals.
@Test
public void equals() {
assertEquality(new BeginSpanEvent(SpanType.CODE, new Attributes()), new BeginSpanEvent(SpanType.CODE, new Attributes()));
assertInequality(new BeginSpanEvent(SpanType.CODE, new Attributes()), new BeginSpanEvent(SpanType.BOLD, new Attributes()));
}
use of org.eclipse.mylyn.wikitext.parser.Attributes in project mylyn.docs by eclipse.
the class ImageEventTest method equals.
@Test
public void equals() {
assertEquality(new ImageEvent(new Attributes(), "http://example.com/img.png"), new ImageEvent(new Attributes(), "http://example.com/img.png"));
assertInequality(new ImageEvent(new Attributes(), "http://example.com/img.png"), new ImageEvent(new Attributes(), "http://example.com/img2.png"));
}
use of org.eclipse.mylyn.wikitext.parser.Attributes in project mylyn.docs by eclipse.
the class TextileDocumentBuilderTest method testParagraph_MultipleNewlinesInParagraph.
public void testParagraph_MultipleNewlinesInParagraph() throws Exception {
for (String newline : PLATFORM_NEWLINES) {
setUp();
builder.beginDocument();
builder.beginBlock(BlockType.PARAGRAPH, new Attributes());
builder.characters("text" + newline + newline + "more text");
builder.endBlock();
builder.endDocument();
String markup = out.toString();
assertEquals("text more text\n\n", markup);
}
}
Aggregations