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

JCK1.4/1.3a, interactive:api/javax_swing/interactive/JMenuItemTests.html fails

XMLWordPrintable

    • hopper
    • x86, sparc
    • generic, linux
    • Verified

      The testcase JMenuItemTest0003 verifies menemonic behavior of JMenuItem(String, int) constructor.

      However, menu items does not response to mnemonic keys when menu overlaps test's frame,
      and mouse pointer is placed over any item in the menu.

      JDK : jdk1.4.0-b88, JDK 1.4.1-b10
      JCK : JCK1.4-b14
      Platform[s] : RedHat Linux 6.2, Caldera 2.4, RedHat Linux 7.1, sparc sol7/8/9
      switch/Mode : -client -Xmixed
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Failing Test : api/javax_swing/interactive/JMenuItemTests.html#JMenuItem [JMenuItemTest0003]

      Test source location:
      =====================
      /net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_swing/interactive/JMenuItemTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.eng/export/sail15/results/merlin/b88/jck13a/linux/caldera_single_kde_client_linux-7/workDir/api-interactive/javax_swing/interactive/JMenuItemTests_JMenuItem.jtr

      How to reproduce:
      =================
      1. Run the following script (you may need to change JCK and JAVA_HOME paths)
      2. Shrink test frame to make menu to ovrlap the frame when menu is opened
      3. Press Alt+m to open menu
      4. Place mouse pointer over any of menu's items
      5. Press 1
      6. Press Esc.

      You will see that menu does not respond to keyboard.

      --------Script START---------------------
      #!/bin/sh

      JCK=/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14
      export JCK
      CLASSPATH="${JCK}/classes:${JCK}/javatest.jar"
      export CLASSPATH
      JAVA_HOME=/net/jdk/export/disk8/local.java/jdk1.4/linux-i386
      export JAVA_HOME

      $JAVA_HOME/bin/java -showversion -Xfuture javasoft.sqe.tests.api.javax.swing.interactive.JMenuItem.JMenuItemTests -TestCaseID JMenuItemTest0003 -TestDirURL file:///$JCK/tests/api/javax_swing/interactive/JMenuItemTests.html#JMenuItem

      --------Script END----------------------

      Test output:
      ============
      JMenuItemTest0003: Failed. JMenuItem setMnemonic() does not behave as expected.

      Specific Machine Info:
      ======================
      Hostname: linux-12
      OS: Redhat 6.2/KDE

      Hostname: linux-7
      OS: Caldera 2.4/KDE

      Hostname: jtg-linux13
      OS: RedHat 7.1/Gnome

      ==========================================================================
      This bug appears in hopper b10 on sparc machines, too.
      I followed the "how to reproduce" procedure as described above and reproduced the bug in hooper. It fails when mouse is set to "point-to-focus" and passes with "click-to-focus" setting of mouse.

      Specific Machine Info:
      SunOS jtg-s118 5.7 Generic_106541-20 sun4u sparc SUNW,Ultra-2
      SunOS jtg-s120 5.8 Generic sun4u sparc SUNW,Ultra-60
      SunOS jtg-s113 5.9 s81_56 sun4u sparc SUNW,Ultra-2

      ###@###.### 2002-05-06
      ==========================================================================

            dmikhalksunw Denis Mikhalkin (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: