United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7124562 : [macosx] RobotTest0001 & RobotTest0002 are not functional in JCK-runtime-7 interactive

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Closed
Updated Date:
2012-10-09
Project Name:
JDK
Resolved Date:
2012-02-28
Component:
client-libs
OS:
solaris,os_x
Sub-Component:
java.awt
CPU:
x86,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7,8
Fixed Versions:
7u4 (b11)

Related Reports

Sub Tasks

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
                                     
2012-01-25
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>
                                     
2011-12-23



Hardware and Software, Engineered to Work Together