mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-18 06:15:16 +00:00
8006087: [TEST_BUG] The BACKSPACE key doesn't work and after pressing 'cancel' and 'DONE' button, the case pass automatically
Reviewed-by: alexsch, serb
This commit is contained in:
parent
d52e73dc35
commit
fee5a04c7b
@ -1,6 +1,38 @@
|
||||
<html>
|
||||
<!--
|
||||
Copyright (c) 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.
|
||||
-->
|
||||
|
||||
<!--
|
||||
@test
|
||||
@bug 4150029 8006087
|
||||
@summary BackSpace keyboard button does not lead to parent directory
|
||||
@author Oleg Mokhovikov
|
||||
@run applet/manual=done bug4150029.html
|
||||
-->
|
||||
|
||||
<body>
|
||||
<applet code="bug4150029.class" width=200 height=200></applet>
|
||||
Follow the instructions below.
|
||||
1.Go into 'subDir' folder.
|
||||
2.Press BACKSPACE key.
|
||||
3.Push OPEN button.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2010, 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
|
||||
@ -21,11 +21,10 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 4150029
|
||||
@summary BackSpace keyboard button does not lead to parent directory
|
||||
@author Oleg Mokhovikov
|
||||
@run applet/manual=done bug4150029.html
|
||||
/*
|
||||
bug 4150029 8006087
|
||||
summary BackSpace keyboard button does not lead to parent directory
|
||||
author Oleg Mokhovikov
|
||||
*/
|
||||
|
||||
import javax.swing.*;
|
||||
@ -36,6 +35,14 @@ public class bug4150029 extends JApplet {
|
||||
private boolean res;
|
||||
|
||||
public void init() {
|
||||
if (sun.awt.OSInfo.getOSType() == sun.awt.OSInfo.OSType.MACOSX) {
|
||||
try {
|
||||
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
String tmpDir = System.getProperty("java.io.tmpdir");
|
||||
|
||||
if (tmpDir.length() == 0) {//'java.io.tmpdir' isn't guaranteed to be defined
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user