FileDialogTKModal2Test.java revision 15235:fe58d505fffd
1139826Simp/*
253541Sshin * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
353541Sshin * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
453541Sshin *
553541Sshin * This code is free software; you can redistribute it and/or modify it
653541Sshin * under the terms of the GNU General Public License version 2 only, as
753541Sshin * published by the Free Software Foundation.
853541Sshin *
953541Sshin * This code is distributed in the hope that it will be useful, but WITHOUT
1053541Sshin * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1153541Sshin * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1253541Sshin * version 2 for more details (a copy is included in the LICENSE file that
1353541Sshin * accompanied this code).
1453541Sshin *
1553541Sshin * You should have received a copy of the GNU General Public License version
1653541Sshin * 2 along with this work; if not, write to the Free Software Foundation,
1753541Sshin * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1853541Sshin *
1953541Sshin * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2053541Sshin * or visit www.oracle.com if you need additional information or have any
2153541Sshin * questions.
2253541Sshin */
2353541Sshin
2453541Sshinimport java.awt.Dialog;
2553541Sshin
2653541Sshin/*
2753541Sshin * @test
28174510Sobrien * @key headful
29174510Sobrien * @bug 8054359 8055752
3053541Sshin *
3153541Sshin * @summary Check whether FileDialog blocks a toolkit modal Dialog
32139826Simp *          created with a null Dialog constructor. Also check if other
3353541Sshin *          windows are blocked by the FileDialog too.
3453541Sshin *
3553541Sshin * @library ../helpers ../../../../lib/testlibrary/
3653541Sshin * @build ExtendedRobot
3753541Sshin * @build Flag
3853541Sshin * @build TestDialog
3953541Sshin * @build TestFrame
4053541Sshin * @build TestWindow
4153541Sshin * @run main FileDialogTKModal2Test
4253541Sshin */
4353541Sshin
4453541Sshinpublic class FileDialogTKModal2Test {
4553541Sshin
4653541Sshin    public static void main(String[] args) throws Exception {
4753541Sshin        (new FileDialogFWDTest(Dialog.ModalityType.TOOLKIT_MODAL,
4853541Sshin            FileDialogFWDTest.DialogOwner.NULL_DIALOG)).doTest();
4953541Sshin    }
5053541Sshin}
5153541Sshin