< prev index next >

test/java/awt/datatransfer/DragImage/MultiResolutionDragImageTest.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.


  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 sun.awt.image.MultiResolutionToolkitImage;
  25 
  26 import javax.swing.*;
  27 import java.awt.*;
  28 import java.awt.image.BufferedImage;
  29 
  30 import static java.awt.event.InputEvent.BUTTON1_DOWN_MASK;
  31 
  32 /**
  33  * @test

  34  * @bug 8076106
  35  * @author Hendrik Schreiber
  36  * @summary [macosx] Drag image of TransferHandler does not honor
  37  * MultiResolutionImage
  38  * @modules java.desktop/sun.awt.image
  39  * @run main MultiResolutionDragImageTest TEST_DRAG
  40  */
  41 public class MultiResolutionDragImageTest {
  42 
  43     private static final Color COLOR_1X = Color.BLUE;
  44     private static final Color COLOR_2X = Color.RED;
  45     private static JFrame frame;
  46     private static JTextField field;
  47     private static Point p;
  48 
  49     public static void main(String[] args) throws Exception {
  50 
  51         final String test = args[0];
  52 
  53         switch (test) {




  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 sun.awt.image.MultiResolutionToolkitImage;
  25 
  26 import javax.swing.*;
  27 import java.awt.*;
  28 import java.awt.image.BufferedImage;
  29 
  30 import static java.awt.event.InputEvent.BUTTON1_DOWN_MASK;
  31 
  32 /**
  33  * @test
  34  * @key headful
  35  * @bug 8076106
  36  * @author Hendrik Schreiber
  37  * @summary [macosx] Drag image of TransferHandler does not honor
  38  * MultiResolutionImage
  39  * @modules java.desktop/sun.awt.image
  40  * @run main MultiResolutionDragImageTest TEST_DRAG
  41  */
  42 public class MultiResolutionDragImageTest {
  43 
  44     private static final Color COLOR_1X = Color.BLUE;
  45     private static final Color COLOR_2X = Color.RED;
  46     private static JFrame frame;
  47     private static JTextField field;
  48     private static Point p;
  49 
  50     public static void main(String[] args) throws Exception {
  51 
  52         final String test = args[0];
  53 
  54         switch (test) {


< prev index next >