use of net.sf.latexdraw.model.api.shape.Text in project latexdraw by arnobl.
the class TestTextParsing method testBug7220752.
@Test
public void testBug7220752() {
// https://bugs.launchpad.net/latexdraw/+bug/722075
parser("\\textcolor{blue}{xyz}");
assertEquals(1, parsedShapes.size());
final Text text = getShapeAt(0);
assertEquals("xyz", text.getText());
assertEquals(DviPsColors.BLUE, text.getLineColour());
}
use of net.sf.latexdraw.model.api.shape.Text in project latexdraw by arnobl.
the class TestTextParsing method testBracket.
@Test
public void testBracket() {
parser("{( )}");
final Text txt = getShapeAt(0);
assertEquals("( )", txt.getText());
}
Aggregations