< prev index next >

test/javax/swing/ToolTipManager/7123767/bug7123767.java

Print this page
rev 17561 : 8185500: [TESTBUG] Add keywords headful/printer in java/awt and javax tests.
Summary: Add new keyword 'printer'. Some minor test fixes to show headless exception. Add some @requires windows.


   4  *
   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 /*
  25  * @test
  26  * @bug      7123767
  27  *
  28  * @summary  Check if a tooltip location in Multi-Monitor
  29  *           configurations is correct.
  30  *           If the configurations number per device exceeds 5,
  31  *           then some 5 random configurations will be checked.
  32  *           Please Use -Dseed=X to set the random generator seed
  33  *           (if necessary).
  34  *
  35  * @author   Vladislav Karnaukhov
  36  *
  37  * @key      headful
  38  * @key      randomness
  39  *
  40  * @modules  java.desktop/sun.awt
  41  * @library  /test/lib
  42  *
  43  * @run      main/timeout=300 bug7123767
  44  */
  45 
  46 import javax.swing.*;
  47 import javax.swing.plaf.metal.MetalLookAndFeel;
  48 import java.awt.*;
  49 import java.awt.event.MouseEvent;
  50 import java.lang.reflect.InvocationTargetException;
  51 
  52 import java.util.List;
  53 import java.util.ArrayList;
  54 import java.util.Collections;
  55 import java.util.Random;
  56 
  57 import jdk.test.lib.RandomFactory;
  58 




   4  *
   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 /**
  25  * @test
  26  * @bug      7123767
  27  *
  28  * @summary  Check if a tooltip location in Multi-Monitor
  29  *           configurations is correct.
  30  *           If the configurations number per device exceeds 5,
  31  *           then some 5 random configurations will be checked.
  32  *           Please Use -Dseed=X to set the random generator seed
  33  *           (if necessary).
  34  *
  35  * @author   Vladislav Karnaukhov
  36  *
  37  * @key      headful randomness

  38  *
  39  * @modules  java.desktop/sun.awt
  40  * @library  /test/lib
  41  *
  42  * @run      main/timeout=300 bug7123767
  43  */
  44 
  45 import javax.swing.*;
  46 import javax.swing.plaf.metal.MetalLookAndFeel;
  47 import java.awt.*;
  48 import java.awt.event.MouseEvent;
  49 import java.lang.reflect.InvocationTargetException;
  50 
  51 import java.util.List;
  52 import java.util.ArrayList;
  53 import java.util.Collections;
  54 import java.util.Random;
  55 
  56 import jdk.test.lib.RandomFactory;
  57 


< prev index next >