jdk/test/java/awt/Modal/ToBack/ToBackModal3Test.java
author avstepan
Wed, 19 Nov 2014 14:12:59 +0400
changeset 28069 907a72cb0feb
child 40128 e635645d2a8a
permissions -rw-r--r--
8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6 Reviewed-by: pchelko
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
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
 * @test
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    27
 * @bug 8054143
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    28
 * @summary Check whether a modal dialog having a hidden Frame
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    29
 *          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
    30
 *          after calling toBack for the dialog.
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    31
 *
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    32
 * @library ../helpers ../../../../lib/testlibrary/
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    33
 * @build ExtendedRobot
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    34
 * @build Flag
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    35
 * @build TestDialog
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    36
 * @build TestFrame
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    37
 * @run main ToBackModal3Test
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    38
 */
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
public class ToBackModal3Test {
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    41
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    42
    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
    43
        (new ToBackFDFTest(
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    44
            true, ToBackFDFTest.DialogOwner.HIDDEN_FRAME)).doTest();
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    45
    }
907a72cb0feb 8054143: move awt automated tests from AWT_Modality to OpenJDK repository - part 6
avstepan
parents:
diff changeset
    46
}