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

JCK1.4a-runtime api/javax_swing/interactive/JScrollBarTests.html#JScrollBar

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description



      Name: iaR10016 Date: 05/19/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b06, 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 [JScrollBarTest0012, JScrollBarTest0013]

      JCK1.4a-runtime api/javax_swing/interactive/JScrollBarTests.html#JScrollBar test fails with JDK1.4.2-b23,
      JDK1.5.0-b06, JDK1.4.1,
      JScrollBar behaves incorrectly if "Block increment"/"Unit Increment" value is "-2147483648" (minimal integer value).
      Please, note that JScrollBar behaves incorrectly with minimal integer Block/Unit increment values only, it works fine
      with "-2147483647", for example.

      It seems like the bug 4842792 was not fully integrated.

      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 "Unit increment" (testcase JScrollBarTest0012) or "Block increment" (testcase JScrollBarTest0013) to
          -2147483648 (min integer number).
          "Unit increment"/"Block increment" value becomes -2147483648, "Extent" and "Value" remain the same. It is OK.
      3. For the testcase JScrollBarTest0012 clicking JScrollBar Up/Down arrow should change Value to 0 (JScrollBar
          Minimum value) or 90 (Maximum - Extent value) correspondingly, but really it changes Value to 0 in both
          these cases.
      4. For the testcase JScrollBarTest0013 when the user click mouse in JScrollBar to move block right or left,
          Value should be changed to 0 (JScrollBar Minimum value) or 90 (Maximum - Extent value) correspondingly,
          but really it changes value to 0 in both these cases.

      --- 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 JScrollBarTest0012 JScrollBarTest0013
      --- script end ---

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

      Hostname: linux-19
      OS: RedHat Linux 7.3

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: