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