view test/java/awt/im/4490692/bug4490692.html @ 12677:a4299d47bd00

8134984: Text files should end in exactly one newline Summary: automated fixup of newlines at end-of-file via the usual perl one-liner Reviewed-by: chegar, sherman
author martin
date Wed, 02 Sep 2015 14:11:50 -0700
parents 8b1f1c2a400f
children
line wrap: on
line source
<!--
 Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

 This code is free software; you can redistribute it and/or modify it
 under the terms of the GNU General Public License version 2 only, as
 published by the Free Software Foundation.

 This code is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 version 2 for more details (a copy is included in the LICENSE file that
 accompanied this code).

 You should have received a copy of the GNU General Public License version
 2 along with this work; if not, write to the Free Software Foundation,
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 or visit www.oracle.com if you need additional information or have any
 questions.
-->

<html>
<!--  
  @test
  @bug 4490692
  @author Naoto Sato
  @ignore The fix for this problem was backed out for 5057184.  Remove this "ignore" tag when it is fixed again.
  @run applet/manual=yesno bug4490692.html
-->
  <head>
    <title>Test for KEY_PRESS event for accented characters</title>
  </head>

  <body>
      <h1>Test for KEY_PRESS event for accented characters: Bug id 4490692</h1>

This test is for unix platforms only. Press OK if you are not
testing on those platforms.

Before the test, you need to modify the keyboard mapping for X by issueing
the following command:

xmodmap -e 'keycode 60 = aacute'  (this is for Solaris Sparc keyboard)
xmodmap -e 'keycode 23 = aacute'  (this is for Linux PC keyboard)

This command lets you type 'a with acute' character when you press 'Tab' keytop. <b>Please
do not fail to restore the original key mapping by doing the following after the test</b>

xmodmap -e 'keycode 60 = Tab'  (this is for Solaris Sparc keyboard)
xmodmap -e 'keycode 23 = Tab'  (this is for Linux PC keyboard)

Confirm the following two behaviors:

    "KEYPRESS received for aacute" is displayed when you press 'Tab' keytop.
    On Solaris Sparc keyboard, The key sequence ("Compose", "a", "'") generates a-acute character in en_US locale

<APPLET CODE="bug4490692.class" WIDTH=0 HEIGHT=0></APPLET>
</body>
</html>