JDK-7124562 : [macosx] RobotTest0001 & RobotTest0002 are not functional in JCK-runtime-7 interactive
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x,solaris
  • CPU: generic,x86
  • Submitted: 2011-12-23
  • Updated: 2012-10-09
  • Resolved: 2012-02-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u4 b11Fixed
Description
http://java.net/jira/browse/MACOSX_PORT-488 submitted 2011/09/30 by Ludmila Shikhvarg
api/java_awt/interactive/RobotTests_RobotTests are failed in JCK-runtime-7 interactive with jdk7 Build b209.
RobotTest0001
----------------
Description:
Please use the "Start getPixelColor" button to verify that the cursor automatically moves from the red circle to the green, blue and ends up on the gray.  Also verify that the white area below each circle changes color
to that of the circle above it.
Actual results:
getPixelColor is not functional.
RobotTest0002
-------------
Description:
Please use the "Start createScreenCapture" button to verify that a snapshot of your screen is taken anddisplayed in the panel below.
Please don't exceed your screen resolution of 1920x1080.
Please verify that the screen snapshot does not include the mouse cursor.
Actual results:
createScreenCapture is not functional

Comments
SUGGESTED FIX http://hg.openjdk.java.net/jdk7u/jdk7u-osx/jdk/rev/28fb85f284a4
25-01-2012

EVALUATION Author: Leonid Romanov Date: 06/Oct/11 02:26 PM As for RobotTest0002, it looks like screenshot image is getting overwritten by black background: removing setForeground()/setBackground() calls from the test code fixes it for me. Author: Sergey Bylokhov Date: 16/Dec/11 01:11 PM Painting issues in RobotTest0001 and RobotTest0002 were fixed: <span class=&quot;nobr&quot;><a href=&quot;http://hg.openjdk.java.net/macosx-port/macosx-port/jdk/rev/019dd2b87168&quot;>http://hg.openjdk.java.net/macosx-port/macosx-port/jdk/rev/019dd2b87168<sup><im g class=&quot;rendericon&quot; src=&quot;/jira/images/icons/linkext7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/></sup></a></span> RobotTest0002 now passed, RobotTest0001 still doesn't work, under investigation Author: Sergey Bylokhov Date: 21/Dec/11 04:33 PM There is 2 issues: 1. Labels which should contain result color is invisible, because have incorrect size Suggested fix: <span class=&quot;nobr&quot;><a href=&quot;http://cr.openjdk.java.net/~serb/488/webrev.00/&quot;>http://cr.openjdk.java.net/~serb/488/webrev.00/<sup><img class=&quot;rendericon&quot; src=& quot;/jira/images/icons/linkext7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/></sup></a></span> 2. Label.setBackground() has no effect, because repaint of the label does not happen. It will be fixed as part of <span class=&quot;nobr&quot;><a href=&quot;http://java.net/jira/browse/MACOSX_PORT-608&quot;>http://java.net/jira/browse/MACOSX_PORT-608<sup><img class=&quot;rendericon &quot; src=&quot;/jira/images/icons/linkext7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/></sup></a></span>
23-12-2011