7109977: [macosx] MixingInHwPanel.java test fails on Mac trying to click in the reserved corner
authorkshefov
Thu, 06 Jun 2013 17:06:22 +0400
changeset 18121 f2eb5e324296
parent 18120 6018dc8ee296
child 18122 6b948cce3b5b
7109977: [macosx] MixingInHwPanel.java test fails on Mac trying to click in the reserved corner Reviewed-by: serb, anthony
jdk/test/java/awt/Mixing/MixingInHwPanel.java
--- a/jdk/test/java/awt/Mixing/MixingInHwPanel.java	Thu Jun 06 17:02:05 2013 +0400
+++ b/jdk/test/java/awt/Mixing/MixingInHwPanel.java	Thu Jun 06 17:06:22 2013 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,7 @@
  */
 
 /*
-  @test %W% %E%
+  @test
   @bug 6829858
   @summary Mixing should work inside heavyweight containers
   @author anthony.petrov@sun.com: area=awt.mixing
@@ -104,7 +104,7 @@
 
         // And click the part of the button that has been previously hidden
         Point bLoc = button.getLocationOnScreen();
-        robot.mouseMove(bLoc.x + button.getWidth() - 6, bLoc.y + button.getHeight() / 2);
+        robot.mouseMove(bLoc.x + button.getWidth() - 15, bLoc.y + button.getHeight() / 2);
 
         Util.waitForIdle(robot);