Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4392080

JCK interactive: jck13a test api/java_awt/interactive/RobotTests.html fail

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.3.1
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      ladybird
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Backports

        Description



        The following JCK13a testcases fail under build 1.3.1beta-b08 in RedHat 6.2:
        api/java_awt/interactive/RobotTests.html#RobotTests0001
        api/java_awt/interactive/RobotTests.html#RobotTests0002

        Bug Description:
        1) The getPixelColor() method of Robot class returns wrong color value
           of the pixel. It does not return red and green values.
        2) The createScreenCapture() method returns wrong screen capture.
           It returns only blue part, but red and green does not.

        To reproduce the bug, run script below
        You may need to set JCK and JAVA_HOME.
        -------------------------------------------------------------------------------------
        #!/bin/sh
        SWITCH=${@}
        JAVA_HOME=/usr/local/java/jdk1.3.1/linux-i386
        JCK=/net/jtgb4u4c.eng/export/sail16/JCK/jck13afcs/JCK-runtime-13fcs

        CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
        export CLASSPATH
        executeClass=javasoft.sqe.tests.api.java.awt.interactive.RobotTests

        $JAVA_HOME/bin/java ${SWITCH} -version
        $JAVA_HOME/bin/java ${SWITCH} -client -Xfuture ${executeClass} -platform.robotAvailable true -TestCaseID ALL
        RESULT="$?"
        if [ $RESULT = 95 ]; then
         echo Test passed
        elif [ $RESULT = 97 ]; then
         echo Test failed
        else
         echo Result is $RESULT
        fi
        -------------------------------------------------------------------------------------

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bchristi Brent Christian
                  Reporter:
                  irasunw Ira Ira (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: