modules/graphics/src/test/java/test/javafx/scene/Node_hasMirroring_Test.java
Print this page
rev 9250 : 8134762: Refactor Javafx graphics module tests for clear separation of tests
Reviewed-by:
*** 21,35 ****
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! package javafx.scene;
! import com.sun.javafx.test.NodeOrientationTestBase;
import java.util.Arrays;
import java.util.Collection;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
--- 21,38 ----
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! package test.javafx.scene;
! import test.com.sun.javafx.test.NodeOrientationTestBase;
import java.util.Arrays;
import java.util.Collection;
+ import javafx.scene.Node;
+ import javafx.scene.NodeShim;
+ import javafx.scene.Scene;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
*** 145,155 ****
return map(false);
}
@Override
public char map(final Node node) {
! return map(node.hasMirroring());
}
private char map(final boolean hasMirroring) {
return hasMirroring ? 'M' : '.';
}
--- 148,158 ----
return map(false);
}
@Override
public char map(final Node node) {
! return map(NodeShim.hasMirroring(node));
}
private char map(final boolean hasMirroring) {
return hasMirroring ? 'M' : '.';
}