jdk/test/java/awt/Mixing/MixingInHwPanel.java
changeset 18121 f2eb5e324296
parent 5506 202f599c92aa
child 32427 c22b7e41adf3
equal deleted inserted replaced
18120:6018dc8ee296 18121:f2eb5e324296
     1 /*
     1 /*
     2  * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25   @test %W% %E%
    25   @test
    26   @bug 6829858
    26   @bug 6829858
    27   @summary Mixing should work inside heavyweight containers
    27   @summary Mixing should work inside heavyweight containers
    28   @author anthony.petrov@sun.com: area=awt.mixing
    28   @author anthony.petrov@sun.com: area=awt.mixing
    29   @library ../regtesthelpers
    29   @library ../regtesthelpers
    30   @build Util
    30   @build Util
   102 
   102 
   103         Util.waitForIdle(robot);
   103         Util.waitForIdle(robot);
   104 
   104 
   105         // And click the part of the button that has been previously hidden
   105         // And click the part of the button that has been previously hidden
   106         Point bLoc = button.getLocationOnScreen();
   106         Point bLoc = button.getLocationOnScreen();
   107         robot.mouseMove(bLoc.x + button.getWidth() - 6, bLoc.y + button.getHeight() / 2);
   107         robot.mouseMove(bLoc.x + button.getWidth() - 15, bLoc.y + button.getHeight() / 2);
   108 
   108 
   109         Util.waitForIdle(robot);
   109         Util.waitForIdle(robot);
   110 
   110 
   111         robot.mousePress(InputEvent.BUTTON1_MASK);
   111         robot.mousePress(InputEvent.BUTTON1_MASK);
   112         robot.mouseRelease(InputEvent.BUTTON1_MASK);
   112         robot.mouseRelease(InputEvent.BUTTON1_MASK);