package javafx.scene.text; import javafx.scene.Node; import javafx.beans.binding.DoubleBinding; import junit.framework.Assert; import org.junit.Test; public final class TestCase { private static class TestBinding extends DoubleBinding { private int computeValueCounter; protected double computeValue() { ++computeValueCounter; return 0.5; } public int getComputeValueCount() { return computeValueCounter; } } @Test public void boundsInLocalShouldNotRequireTextTransform() { final Node node = new Text(1.0, 2.0, "The Text"); final TestBinding testBinding = new TestBinding(); node.scaleXProperty().bind(testBinding); testBinding.invalidate(); final int oldCount = testBinding.getComputeValueCount(); node.getBoundsInLocal(); Assert.assertEquals(oldCount, testBinding.getComputeValueCount()); } }