jdk/test/java/awt/im/4490692/bug4490692.html
author weijun
Thu, 08 Sep 2011 09:04:28 +0800
changeset 10435 e9df9d264894
parent 2 90ce3da70b43
child 21596 0e3a39f29dbc
permissions -rw-r--r--
7087428: move client tests out of jdk_misc Reviewed-by: alanb, ohair
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<html>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
<!--  
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
  @test
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
  @bug 4490692
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
  @author Naoto Sato
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
  @ignore The fix for this problem was backed out for 5057184.  Remove this "ignore" tag when it is fixed again.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
  @run applet/manual=yesno bug4490692.html
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
-->
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
  <head>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
    <title>Test for KEY_PRESS event for accented characters</title>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
  </head>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
  <body>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
      <h1>Test for KEY_PRESS event for accented characters: Bug id 4490692</h1>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
This test is for unix platforms only. Press OK if you are not
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
testing on those platforms.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
Before the test, you need to modify the keyboard mapping for X by issueing
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
the following command:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
xmodmap -e 'keycode 60 = aacute'  (this is for Solaris Sparc keyboard)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
xmodmap -e 'keycode 23 = aacute'  (this is for Linux PC keyboard)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
This command lets you type 'a with acute' character when you press 'Tab' keytop. <b>Please
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
do not fail to restore the original key mapping by doing the following after the test</b>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
xmodmap -e 'keycode 60 = Tab'  (this is for Solaris Sparc keyboard)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
xmodmap -e 'keycode 23 = Tab'  (this is for Linux PC keyboard)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
Confirm the following two behaviors:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
    "KEYPRESS received for aacute" is displayed when you press 'Tab' keytop.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
    On Solaris Sparc keyboard, The key sequence ("Compose", "a", "'") generates a-acute character in en_US locale
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
<APPLET CODE="bug4490692.class" WIDTH=0 HEIGHT=0></APPLET>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
</body>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
</html>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40