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

JCK1.4, interactive:api/javax_swing/interactive/JMenuItemTests.html#JMenuItem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
      x86, sparc
    • OS:
      generic, linux, windows_2000

      Description



      Name: asR10013 Date: 09/06/2001


      JDK : JDK1.4.0-beta-b78
      JCK : JCK1.4-b09, JCK1.3a
      Platform[s] : RedHat Linux 7.1, Windows 2000
      switch/Mode : -client -Xmixed -Xfuture
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Failing Test : api/javax_swing/interactive/JMenuItemTests.html#JMenuItem [JMenuItemTest0003]

      The test verifies menemonic behavior of JMenuItem(String, int) constructor.
      However, menu items does not response to mnemonic keys when menu overlaps test's frame.


      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/b78/jck14/linux/redhat7.1_smp_gnome_plugin_ns6.1_linux-24/workDir/api-interactive/javax_swing/interactive/JMenuItemTests_JMenuItem.jtr

      How to reproduce:
      ====================
      1. Run the following script (probably, you 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, then press 1.
      4. Press Esc to close menu.

      You will see that menu response to the keyboard (Esc key) hovewer it does not response to the mnemonic keys (1).


      --------Script START---------------------
      #!/bin/sh
      JAVA_HOME=/net/jdk/export/disk8/local.java/jdk1.4/linux-i386
      JCK=/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14
      export CLASSPATH="$JCK/classes:$JCK/javatest.jar"
      executeClass="javasoft.sqe.tests.api.javax.swing.interactive.JMenuItem.JMenuItemTests -TestCaseID JMenuItemTest0003 -TestDirURL file:///$JCK/tests/api/javax_swing/interactive/JMenuItemTests.html#JMenuItem"
      $JAVA_HOME/bin/java -Xfuture ${executeClass}
      ---------Script END----------------------

      Test output:
      =============
      JMenuItemTest0003: Failed. JMenuItem setMnemonic() does not behave as expected.
      STATUS:Failed.tests: 1; failed: 1; first test case failure: JMenuItemTest0003

      Specific Machine Info:
      =====================
      Hostname: linux-24
      OS: RedHat Linux 7.1

      Hostname: Linux-22
      OS: Windows 2000 Professional

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              alssunw Als Als (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: