Search in sources :

Example 21 with Text

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());
}
Also used : Text(net.sf.latexdraw.model.api.shape.Text) Test(org.junit.jupiter.api.Test)

Example 22 with Text

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());
}
Also used : Text(net.sf.latexdraw.model.api.shape.Text) Test(org.junit.jupiter.api.Test)

Example 23 with Text

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());
}
Also used : Text(net.sf.latexdraw.model.api.shape.Text) Test(org.junit.jupiter.api.Test)

Example 24 with Text

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());
}
Also used : Text(net.sf.latexdraw.model.api.shape.Text) Test(org.junit.jupiter.api.Test)

Example 25 with Text

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());
}
Also used : Text(net.sf.latexdraw.model.api.shape.Text) Test(org.junit.jupiter.api.Test)

Aggregations

Text (net.sf.latexdraw.model.api.shape.Text)67 Test (org.junit.jupiter.api.Test)53 Test (org.junit.Test)10 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)10 HelperTest (net.sf.latexdraw.HelperTest)6 Rectangle (net.sf.latexdraw.model.api.shape.Rectangle)2 ExecutionException (java.util.concurrent.ExecutionException)1 Point2D (javafx.geometry.Point2D)1 Axes (net.sf.latexdraw.model.api.shape.Axes)1 BezierCurve (net.sf.latexdraw.model.api.shape.BezierCurve)1 Circle (net.sf.latexdraw.model.api.shape.Circle)1 CircleArc (net.sf.latexdraw.model.api.shape.CircleArc)1 Dot (net.sf.latexdraw.model.api.shape.Dot)1 Ellipse (net.sf.latexdraw.model.api.shape.Ellipse)1 Freehand (net.sf.latexdraw.model.api.shape.Freehand)1 Grid (net.sf.latexdraw.model.api.shape.Grid)1 Plot (net.sf.latexdraw.model.api.shape.Plot)1 Polygon (net.sf.latexdraw.model.api.shape.Polygon)1 Polyline (net.sf.latexdraw.model.api.shape.Polyline)1 Rhombus (net.sf.latexdraw.model.api.shape.Rhombus)1