modules/graphics/src/test/java/test/javafx/stage/PopupTest.java

Print this page
rev 9250 : 8134762: Refactor Javafx graphics module tests for clear separation of tests
Reviewed-by:

*** 21,37 **** * 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.stage; ! import com.sun.javafx.pgstub.StubPopupStage; ! import com.sun.javafx.pgstub.StubStage; ! import com.sun.javafx.pgstub.StubToolkit; ! import com.sun.javafx.pgstub.StubToolkit.ScreenConfiguration; ! import com.sun.javafx.test.MouseEventGenerator; import com.sun.javafx.tk.Toolkit; import javafx.concurrent.Task; import javafx.event.Event; import javafx.event.EventHandler; import javafx.geometry.BoundingBox; --- 21,37 ---- * 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.stage; ! import test.com.sun.javafx.pgstub.StubPopupStage; ! import test.com.sun.javafx.pgstub.StubStage; ! import test.com.sun.javafx.pgstub.StubToolkit; ! import test.com.sun.javafx.pgstub.StubToolkit.ScreenConfiguration; ! import test.com.sun.javafx.test.MouseEventGenerator; import com.sun.javafx.tk.Toolkit; import javafx.concurrent.Task; import javafx.event.Event; import javafx.event.EventHandler; import javafx.geometry.BoundingBox;
*** 51,60 **** --- 51,66 ---- import org.junit.Ignore; import org.junit.Test; import java.util.concurrent.ExecutionException; import java.util.concurrent.atomic.AtomicBoolean; + import javafx.scene.ParentShim; + import javafx.stage.Popup; + import javafx.stage.PopupWindow; + import javafx.stage.Screen; + import javafx.stage.Stage; + import javafx.stage.Window; import static org.junit.Assert.*; public class PopupTest {
*** 135,145 **** public PopupRoot() { geomBoundsRect = new Rectangle(0, 0, 100, 100); layoutBoundsWidth = 100; layoutBoundsHeight = 100; ! getChildren().add(geomBoundsRect); } public void setGeomBounds(final double x, final double y, final double width, final double height) { --- 141,151 ---- public PopupRoot() { geomBoundsRect = new Rectangle(0, 0, 100, 100); layoutBoundsWidth = 100; layoutBoundsHeight = 100; ! ParentShim.getChildren(this).add(geomBoundsRect); } public void setGeomBounds(final double x, final double y, final double width, final double height) {