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