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

REGRESSION: JCK1.4a-runtime api/javax_swing/interactive/JScrollBarTests.html#JSc

    • tiger
    • generic
    • generic
    • Verified



      Name: iaR10016 Date: 05/19/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b06
                        (the test passes with JDK1.4.2-b26, JDK1.4.1)
      JCK : JCK1.4a-runtime
      Platform[s] : all
      switch/Mode : default
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Falling test : api/javax_swing/interactive/JScrollBarTests.html#JScrollBar [JScrollBarTest0008, JScrollBarTest0009]

      JCK1.4a-runtime api/javax_swing/interactive/JScrollBarTests.html#JScrollBar test fails with JDK1.5.0-b06.
      JScrollBar behaves incorrectly if it's minimum value is less then zero.

      Test source location:
      =====================
      /java/re/jck/1.4a/archive/fcs/binaries/JCK-runtime-14a/tests/api/javax_swing/interactive/JScrollBarTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b23/jck14a/linux/turbo_single_gnome_client_incgc_linux-4/workDir/api-interactive/javax_swing/interactive/JScrollBarTests_JScrollBar.jtr

      How to reproduce:
      =================
      1. Run the script below (you may need to change it's JCK and JDK variables)
      2. Set "Minimum value" to some negative value ("-1", for example).
      3. Move JScrollBar knob left. JScrollBar Value becomes 0.
      4. Click mouse in JScrollBar to move one block right. It is expected that value will set to 10 (Block increment value),
          but really it becomes 90 (Maximum - Extent).

      --- script start ---
      #!/bin/bash
      JCK="/java/re/jck/1.4a/archive/fcs/binaries/JCK-runtime-14a"
      JDK="/net/jdk/export/disk8/local.java/jdk1.5/linux-i386"
      export CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
      $JDK/bin/java javasoft.sqe.tests.api.javax.swing.interactive.JScrollBar.JScrollBarTests -TestCaseID JScrollBarTest0008
      --- script end ---

      The same failure is also observed in JScrollBarTest0009 testcase: setting Maximum to -1 also sets Minimum value to -1
      (it is OK in accordance with Specification). So, setting Maximum value to some positive value now leads to the
      same results as in the testcase JScrollBarTest0008.

      Specific machine info:
      ======================
      Hostname: linux-22
      OS: Windows 2000 Pro

      Hostname: linux-19
      OS: RedHat Linux 7.3

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

            apikalev Andrey Pikalev
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: