use of net.sf.latexdraw.model.api.shape.Text in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepsdiaboxstar.
@Test
public void testParsepsdiaboxstar() {
parser("\\psdiabox*[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, parsedShapes.size());
final Text text = getShapeAt(0);
assertEquals("\\psdiabox*[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 testParsepsovalbox.
@Test
public void testParsepsovalbox() {
parser("\\psovalbox[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, parsedShapes.size());
final Text text = getShapeAt(0);
assertEquals("\\psovalbox[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 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 testParsepsframeboxstar.
@Test
public void testParsepsframeboxstar() {
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 testParsepsshadowboxstar.
@Test
public void testParsepsshadowboxstar() {
parser("\\psshadowbox*[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, parsedShapes.size());
final Text text = getShapeAt(0);
assertEquals("\\psshadowbox*[doubleline=true]{\\psframe(0,1)}", text.getText());
}
Aggregations