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

JCK interactive: api/javax_swing/interactive/JFileChooserTests.html fails

XMLWordPrintable

    • beta
    • x86
    • linux, windows_98, windows_nt, windows_2000
    • Verified



      Name: dkC103137 Date: 12/14/2000


      The JCK test api/javax_swing/interactive/JFileChooserTests.html testcase
      JFileChooserTest0007 fails on Linux as well as on Windows platforms under
      both Client and Server Hotspot VMs.

      The JDK version is:
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b44)
      Java HotSpot(TM) Client VM (build 1.4beta-B44, mixed mode)

      The testcase checks setApproveButtonToolTipText() method of JFileChooser.
      The main testcase frame contains three buttons to open Open File Dialog,
      Save File Dialog, Custom Dialogs and the text field to enter new tooltip
      text for approve action buttons of the dialogs. After entering some text
      in the text field the tooltip of Open Dialog frame is not changed until
      you open either Save Dialog or Custom Dialog.

      The script below runs the test on Linux. You may need to set JCK and JAVA_HOME.
      ---------------------------------------------------------------------------------
      #!/bin/sh
      SWITCH="$@"
      JAVA_HOME=/usr/local/java/jdk1.4/linux-i386
      JCK=/net/orthello/home2/JCK-13
      CLASSPATH=$JCK/classes:$JCK/javatest.jar
      export CLASSPATH
      executeClass="javasoft.sqe.tests.api.javax.swing.interactive.JFileChooser.JFileChooserTests -TestCaseID JFileChooserTest0007"

      $JAVA_HOME/bin/java ${SWITCH} -version
      $JAVA_HOME/bin/java ${SWITCH} -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy ${executeClass}
      RESULT="$?"
      if [ $RESULT = 95 ]; then
       echo Test passed
      elif [ $RESULT = 97 ]; then
       echo Test failed
      else
       echo Result is $RESULT
      fi
      ----------------------------------------------------------------------------------

      ======================================================================

            leifs Leif Samuelsson (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: