< prev index next >

test/java/awt/MouseInfo/JContainerMousePositionTest.java

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

This is a backport of fe58d505fffd from jdk9. 228/596 hunks apply without
modifications. 16 hunks required manual rework. The remainder were for files
not present in jdk8u.


   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 /*
  25   @test

  26   @summary unit test for a new method in Container class: getMousePosition(boolean)
  27   @author dav@sparc.spb.su: area=
  28   @bug 4009555
  29   @run main JContainerMousePositionTest
  30 */
  31 
  32 import javax.swing.*;
  33 import java.awt.*;
  34 import java.util.concurrent.atomic.AtomicReference;
  35 
  36 // this test looks at mouse pointer when it
  37 // 1 over component
  38 // 2 over Container, but not over one of its child Components.
  39 // out of bounds of Container
  40 // two values of paramater allowChildren are considered.
  41 
  42 public class JContainerMousePositionTest {
  43     //Declare things used in the test, like buttons and labels here
  44     private static JButton jButton1;
  45     private static JButton jButton4;




   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 /*
  25   @test
  26   @key headful
  27   @summary unit test for a new method in Container class: getMousePosition(boolean)
  28   @author dav@sparc.spb.su: area=
  29   @bug 4009555
  30   @run main JContainerMousePositionTest
  31 */
  32 
  33 import javax.swing.*;
  34 import java.awt.*;
  35 import java.util.concurrent.atomic.AtomicReference;
  36 
  37 // this test looks at mouse pointer when it
  38 // 1 over component
  39 // 2 over Container, but not over one of its child Components.
  40 // out of bounds of Container
  41 // two values of paramater allowChildren are considered.
  42 
  43 public class JContainerMousePositionTest {
  44     //Declare things used in the test, like buttons and labels here
  45     private static JButton jButton1;
  46     private static JButton jButton4;


< prev index next >