author | jboes |
Fri, 08 Nov 2019 11:15:16 +0000 | |
changeset 59029 | 3786a0962570 |
parent 52739 | 7199c4da1a6f |
permissions | -rw-r--r-- |
26025
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
1 |
/* |
51840 | 2 |
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved. |
26025
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
4 |
* |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
8 |
* |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
13 |
* accompanied this code). |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
14 |
* |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
18 |
* |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
21 |
* questions. |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
22 |
*/ |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
23 |
|
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
24 |
import java.awt.Dialog; |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
25 |
|
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
26 |
/* |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
27 |
* @test |
40128
e635645d2a8a
8160974: [TESTBUG] Mark more headful tests with @key headful.
goetz
parents:
26025
diff
changeset
|
28 |
* @key headful |
26025
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
29 |
* @bug 8052012 |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
30 |
* @summary Check whether an application modal Dialog created with hidden Frame |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
31 |
* constructor stays on top of the windows it blocks. |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
32 |
* |
52739 | 33 |
* @library ../helpers /lib/client/ |
51840 | 34 |
* @library /test/lib |
26025
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
35 |
* @build ExtendedRobot |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
36 |
* @build Flag |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
37 |
* @build TestDialog |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
38 |
* @build TestFrame |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
39 |
* @run main OnTopAppModal3Test |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
40 |
*/ |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
41 |
|
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
42 |
public class OnTopAppModal3Test { |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
43 |
|
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
44 |
public static void main(String[] args) throws Exception { |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
45 |
(new OnTopFDFTest( |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
46 |
Dialog.ModalityType.APPLICATION_MODAL, |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
47 |
OnTopFDFTest.DialogOwner.HIDDEN_FRAME)).doTest(); |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
48 |
} |
7b31d014cae6
8052012: move awt automated tests from AWT_Modality to OpenJDK repository - part 5
avstepan
parents:
diff
changeset
|
49 |
} |