OnTopModal5Test.java revision 15235:fe58d505fffd
143412Snewton/* 243412Snewton * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved. 343412Snewton * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 443412Snewton * 552333Snewton * This code is free software; you can redistribute it and/or modify it 6209581Skib * under the terms of the GNU General Public License version 2 only, as 743412Snewton * published by the Free Software Foundation. 843412Snewton * 943412Snewton * This code is distributed in the hope that it will be useful, but WITHOUT 1043412Snewton * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1143412Snewton * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1243412Snewton * version 2 for more details (a copy is included in the LICENSE file that 1365302Sobrien * accompanied this code). 1465302Sobrien * 1565302Sobrien * You should have received a copy of the GNU General Public License version 1665302Sobrien * 2 along with this work; if not, write to the Free Software Foundation, 1743412Snewton * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1860290Sbde * 1960290Sbde * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2043412Snewton * or visit www.oracle.com if you need additional information or have any 2143412Snewton * questions. 22209581Skib */ 23225618Skmacy 24225618Skmacyimport java.awt.Dialog; 25225618Skmacy 26225618Skmacy/* 27209581Skib * @test 28225618Skmacy * @key headful 29209581Skib * @bug 8052012 30209581Skib * @summary Check whether a modal Dialog created with visible Frame 31225618Skmacy * constructor stays on top of the windows it blocks. 32225618Skmacy * 33209581Skib * @library ../helpers ../../../../lib/testlibrary/ 34225618Skmacy * @build ExtendedRobot 35209581Skib * @build Flag 36209581Skib * @build TestDialog 37225618Skmacy * @build TestFrame 38225618Skmacy * @run main OnTopModal5Test 39209581Skib */ 40209581Skib 41225618Skmacypublic class OnTopModal5Test { 42225618Skmacy 43209581Skib public static void main(String[] args) throws Exception { 44209581Skib (new OnTopFDFTest( 45225618Skmacy OnTopFDFTest.DialogOwner.FRAME)).doTest(); 46225618Skmacy } 47209581Skib} 48209581Skib