< prev index next >

test/java/awt/Choice/DragMouseOutAndRelease/DragMouseOutAndRelease.java

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


   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  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   @test

  25   @bug 6322625
  26   @summary REG:Choice does not trigger MouseReleased when dragging and releasing the mouse outside choice, XAWT
  27   @author andrei.dmitriev area=awt.choice
  28   @run main DragMouseOutAndRelease
  29 */
  30 
  31 import java.awt.*;
  32 import java.awt.event.*;
  33 
  34 public class DragMouseOutAndRelease
  35 {
  36     static Frame frame = new Frame("Test Frame");
  37     static Choice choice1 = new Choice();
  38     static Robot robot;
  39     static Point pt;
  40     static volatile boolean mousePressed = false;
  41     static volatile boolean mouseReleased = false;
  42 
  43     private static void init()
  44     {




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  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   @test
  25   @key headful
  26   @bug 6322625
  27   @summary REG:Choice does not trigger MouseReleased when dragging and releasing the mouse outside choice, XAWT
  28   @author andrei.dmitriev area=awt.choice
  29   @run main DragMouseOutAndRelease
  30 */
  31 
  32 import java.awt.*;
  33 import java.awt.event.*;
  34 
  35 public class DragMouseOutAndRelease
  36 {
  37     static Frame frame = new Frame("Test Frame");
  38     static Choice choice1 = new Choice();
  39     static Robot robot;
  40     static Point pt;
  41     static volatile boolean mousePressed = false;
  42     static volatile boolean mouseReleased = false;
  43 
  44     private static void init()
  45     {


< prev index next >