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

Two JCK1.4a api/java/awt/interactive tests fail

XMLWordPrintable

    • b04
    • x86, sparc, itanium
    • linux, solaris_8, solaris_9, windows_98, windows_nt, windows_2000
    • Not verified

        Name: iaR10016 Date: 12/05/2002


        Filed By : J2SE-SQA [###@###.###
        JDK : JDK1.4.2-b08, JDK1.4.0, JDK1.4.1
        JCK : JCK1.4a-runtime
        Platform[s] : Windows 98, RedHat Linux 7.3, Solaris Sparc, Solaris intel
        switch/Mode : default
        JCK test owner : http://javaweb.eng/jck/usr/owners.jto
        Falling test[s]:
                api/java_awt/interactive/FlowLayoutTests.html#FlowLayoutTests [FlowLayoutTest0002]
                api/java_awt/interactive/CardLayoutTests.html#CardLayoutTests [CardLayoutTest0003]

        Two JCK1.4a-runtime tests fail on JDK1.4.0, JDK1.4.1, JDK1.4.2.

        SetVgap(int) and setHgap(int) methods for FlowLayout and CardLayout do not work as expected
        if their integer parameters are big enough.

        Please do the following to see the failure:

        1. Run api/java_awt/interactive/FlowLayoutTests.html#FlowLayoutTests [FlowLayoutTest0002]
        testcase. Set "setHgap" parameter to 10 000 and click "setHgap" button. All the tested components
        are visible in the tested frame. Their location is OK now. Maximize and then minimize test
        window. There are no components in the tested frame. It is also inpossible to click "Yes"/"No"
        buttons or change "setHgap"/"setVgap" parameters now.
        Please, note that if you set Hgap to 100 000, test window behaves correctly.
        Testcase api/java_awt/interactive/CardLayoutTests.html#CardLayoutTests [CardLayoutTest0003]
        fails with the same way but with another parameters (for example, try to set Hgap to 100 000 and
        maximize/minimize tested window for this test: "Yes"/"No" buttons will disappear).

        2. In both tests setting Hgap or Vgap to 2147483647 (max integer number) has the same visible
        effect as setting these parameters to 0.

        Test source location:
        =====================
        /java/re/jck/1.4a/promoted/fcs/binaries/JCK-runtime-14a/tests/api/java_awt/interactive/FlowLayoutTests.java
        /java/re/jck/1.4a/promoted/fcs/binaries/JCK-runtime-14a/tests/api/java_awt/interactive/CardLayoutTests.java

        jtr file location:
        ==================
        /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b08/jck14a/win32/win98_client_XUseParallelGC_linux-17/workDir/api-interactive/java_awt/interactive/FlowLayoutTests_FlowLayoutTests.jtr
        /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b08/jck14a/win32/win98_client_XUseParallelGC_linux-17/workDir/api-interactive/java_awt/interactive/CardLayoutTests_CardLayoutTests.jtr

        How to reproduce:
        =================
        Run the following script (you may need to change its variables)

        --- script start ---
        #!/bin/bash
        JCK="/java/re/jck/1.4a/promoted/fcs/binaries/JCK-runtime-14a"
        JDK="/net/jdk/export/disk8/local.java/jdk1.4/linux-i386"
        export CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
        $JDK/bin/java javasoft.sqe.tests.api.java.awt.interactive.FlowLayoutTests -TestCaseID FlowLayoutTest0002
        $JDK/bin/java javasoft.sqe.tests.api.java.awt.interactive.CardLayoutTests -TestCaseID CardLayoutTest0003
        --- script end ---

        Specific machine info:
        ======================
        Hostname: linux-17
        OS: Windows 98

        Hostname: linux-19
        OS: RedHat Linux 7.3 (GNOME)

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

              dav Andrei Dmitriev (Inactive)
              irasunw Ira Ira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: