modules/graphics/src/test/java/test/javafx/stage/PopupTest.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -23,10 +23,11 @@
* questions.
*/
package test.javafx.stage;
+import com.sun.javafx.scene.SceneHelper;
import com.sun.javafx.stage.WindowHelper;
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;
@@ -381,11 +382,11 @@
Rectangle rect = new Rectangle(20, 20, 50, 50);
p1.getContent().add(rect);
assertFalse(done);
final MouseEventGenerator generator = new MouseEventGenerator();
- scene.impl_processMouseEvent(
+ SceneHelper.processMouseEvent(scene,
generator.generateMouseEvent(
MouseEvent.MOUSE_PRESSED, 0, 0));
// test whether runnable ran
assertTrue(done);