use of net.sf.latexdraw.models.interfaces.shape.IText in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepsdblframeboxstar.
@Test
public void testParsepsdblframeboxstar() {
parser("\\psdblframebox*{\\psframe(0,1)}");
assertEquals(1, listener.getShapes().size());
final IText text = getShapeAt(0);
assertEquals("\\psdblframebox*{\\psframe(0,1)}", text.getText());
}
use of net.sf.latexdraw.models.interfaces.shape.IText in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepsovalbox.
@Test
public void testParsepsovalbox() {
parser("\\psovalbox[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, listener.getShapes().size());
final IText text = getShapeAt(0);
assertEquals("\\psovalbox[doubleline=true]{\\psframe(0,1)}", text.getText());
}
use of net.sf.latexdraw.models.interfaces.shape.IText 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, listener.getShapes().size());
final IText text = getShapeAt(0);
assertEquals("\\psframebox{$E=mc^2$}", text.getText());
}
use of net.sf.latexdraw.models.interfaces.shape.IText in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepstriboxstar.
@Test
public void testParsepstriboxstar() {
parser("\\pstribox*[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, listener.getShapes().size());
final IText text = getShapeAt(0);
assertEquals("\\pstribox*[doubleline=true]{\\psframe(0,1)}", text.getText());
}
use of net.sf.latexdraw.models.interfaces.shape.IText in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepsovalboxstar.
@Test
public void testParsepsovalboxstar() {
parser("\\psovalbox*[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, listener.getShapes().size());
final IText text = getShapeAt(0);
assertEquals("\\psovalbox*[doubleline=true]{\\psframe(0,1)}", text.getText());
}
Aggregations