< prev index next >
modules/graphics/src/test/java/test/javafx/scene/shape/PathTest.java
Print this page
@@ -28,19 +28,21 @@
import com.sun.javafx.geom.Path2D;
import com.sun.javafx.geom.PathIterator;
import com.sun.javafx.sg.prism.NGPath;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
+import javafx.beans.property.BooleanProperty;
import javafx.scene.Group;
import test.javafx.scene.NodeTest;
import javafx.scene.Scene;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import javafx.scene.shape.FillRule;
import javafx.scene.shape.LineTo;
+import javafx.scene.shape.VLineTo;
import javafx.scene.shape.MoveTo;
import javafx.scene.shape.Path;
import javafx.scene.shape.PathElement;
import static org.junit.Assert.*;
@@ -144,6 +146,13 @@
@Test public void toStringShouldReturnNonEmptyString() {
String s = new Path().toString();
assertNotNull(s);
assertFalse(s.isEmpty());
}
+
+ @Test public void testPathElementIsAbsoluteAfterAbsoluteProperty() {
+ PathElement element = new VLineTo();
+ assertTrue(element.isAbsolute());
+ assertTrue(element.absoluteProperty().getValue());
+ assertTrue(element.isAbsolute());
+ }
}
< prev index next >