use of net.sf.latexdraw.model.api.shape.Text in project latexdraw by arnobl.
the class TestTextParsing method testBug911816.
@Test
public void testBug911816() {
// https://bugs.launchpad.net/latexdraw/+bug/911816
parser("\\psframebox{$E=mc^2$}");
assertEquals(1, parsedShapes.size());
final Text text = getShapeAt(0);
assertEquals("\\psframebox{$E=mc^2$}", text.getText());
}
use of net.sf.latexdraw.model.api.shape.Text in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepsframebox.
@Test
public void testParsepsframebox() {
parser("\\psframebox[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, parsedShapes.size());
final Text text = getShapeAt(0);
assertEquals("\\psframebox[doubleline=true]{\\psframe(0,1)}", text.getText());
}
use of net.sf.latexdraw.model.api.shape.Text in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepstriboxstar.
@Test
public void testParsepstriboxstar() {
parser("\\pstribox*[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, parsedShapes.size());
final Text text = getShapeAt(0);
assertEquals("\\pstribox*[doubleline=true]{\\psframe(0,1)}", text.getText());
}
use of net.sf.latexdraw.model.api.shape.Text in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepscircleboxstar.
@Test
public void testParsepscircleboxstar() {
parser("\\pscirclebox*[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, parsedShapes.size());
final Text text = getShapeAt(0);
assertEquals("\\pscirclebox*[doubleline=true]{\\psframe(0,1)}", text.getText());
}
use of net.sf.latexdraw.model.api.shape.Text in project latexdraw by arnobl.
the class TestText method testConstructorsOK1.
@Test
public void testConstructorsOK1() {
final Text txt = ShapeFactory.INST.createText();
assertNotNull(txt.getText());
assertFalse(txt.getText().isEmpty());
}
Aggregations