test/jdk/java/awt/Focus/ToFrontFocusTest/ToFrontFocus.html
author prr
Wed, 27 Feb 2019 14:30:08 -0800
changeset 54230 d9d9655bb077
parent 47216 71c04702a3d5
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21596
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
     1
<!--
39056
d99e63b6d962 8159690: [TESTBUG] Mark headful tests with @key headful.
goetz
parents: 23010
diff changeset
     2
 Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
21596
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
     3
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
     4
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
     5
 This code is free software; you can redistribute it and/or modify it
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
     6
 under the terms of the GNU General Public License version 2 only, as
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
     7
 published by the Free Software Foundation.
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
     8
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
     9
 This code is distributed in the hope that it will be useful, but WITHOUT
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    10
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    11
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    12
 version 2 for more details (a copy is included in the LICENSE file that
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    13
 accompanied this code).
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    14
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    15
 You should have received a copy of the GNU General Public License version
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    16
 2 along with this work; if not, write to the Free Software Foundation,
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    17
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    18
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    19
 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    20
 or visit www.oracle.com if you need additional information or have any
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    21
 questions.
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    22
-->
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 2
diff changeset
    23
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
<html>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
<!--  
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
  @test
39056
d99e63b6d962 8159690: [TESTBUG] Mark headful tests with @key headful.
goetz
parents: 23010
diff changeset
    27
  @key headful
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
  @bug 4092033 4529626
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
  @summary Tests that toFront makes window focused unless it is non-focusable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
  @author  area=awt.focus
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
  @library ../../regtesthelpers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
  @build Util
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
  @run applet ToFrontFocus.html
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
  -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
<head>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
<title>  </title>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
</head>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
<body>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
<h1>ToFrontFocus<br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
4092033 : (P4/S5) - window.toFront() method is now also setting focus
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
4529626 : (P4/S2) - REGRESSION:In solaris and Linux ,toFront() is not making frame as the Focused.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
</h1>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
<p> This is an AUTOMATIC test, simply wait for completion </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
<APPLET CODE="ToFrontFocus.class" WIDTH=200 HEIGHT=200></APPLET>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
</body>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
</html>