< prev index next >

test/java/awt/Mouse/GetMousePositionTest/GetMousePositionWithOverlay.java

Print this page
rev 14989 : 8160974: [TESTBUG] Mark more headful tests with @key headful.


  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import test.java.awt.regtesthelpers.Util;
  25 
  26 import javax.swing.*;
  27 import java.awt.*;
  28 import java.util.concurrent.atomic.AtomicReference;
  29 
  30 /**
  31  * @test

  32  * @bug 8012026
  33  * @summary Component.getMousePosition() does not work in an applet on MacOS
  34  * @author Petr Pchelko
  35  * @library ../../regtesthelpers
  36  * @build Util
  37  * @compile GetMousePositionWithOverlay.java
  38  * @run main/othervm GetMousePositionWithOverlay
  39  */
  40 
  41 public class GetMousePositionWithOverlay {
  42 
  43     static Frame backFrame;
  44     static Frame frontFrame;
  45 
  46     public static void main(String[] args) throws Throwable {
  47         try {
  48             SwingUtilities.invokeAndWait(new Runnable() {
  49                 @Override
  50                 public void run() {
  51                     constructTestUI();




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import test.java.awt.regtesthelpers.Util;
  25 
  26 import javax.swing.*;
  27 import java.awt.*;
  28 import java.util.concurrent.atomic.AtomicReference;
  29 
  30 /**
  31  * @test
  32  * @key headful
  33  * @bug 8012026
  34  * @summary Component.getMousePosition() does not work in an applet on MacOS
  35  * @author Petr Pchelko
  36  * @library ../../regtesthelpers
  37  * @build Util
  38  * @compile GetMousePositionWithOverlay.java
  39  * @run main/othervm GetMousePositionWithOverlay
  40  */
  41 
  42 public class GetMousePositionWithOverlay {
  43 
  44     static Frame backFrame;
  45     static Frame frontFrame;
  46 
  47     public static void main(String[] args) throws Throwable {
  48         try {
  49             SwingUtilities.invokeAndWait(new Runnable() {
  50                 @Override
  51                 public void run() {
  52                     constructTestUI();


< prev index next >