InvisibleOwner.java revision 4883
4883N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 4883N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4883N/A * This code is free software; you can redistribute it and/or modify it 4883N/A * under the terms of the GNU General Public License version 2 only, as 4883N/A * published by the Free Software Foundation. 4883N/A * This code is distributed in the hope that it will be useful, but WITHOUT 4883N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4883N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4883N/A * version 2 for more details (a copy is included in the LICENSE file that 4883N/A * You should have received a copy of the GNU General Public License version 4883N/A * 2 along with this work; if not, write to the Free Software Foundation, 4883N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4883N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4883N/A * or visit www.oracle.com if you need additional information or have any 4883N/A @summary An invisible owner frame should never become visible 4883N/A @author anthony.petrov@oracle.com: area=awt.toplevel 4883N/A @library ../../regtesthelpers 4883N/A // A background frame to compare a pixel color against 4883N/A // An owner frame that should stay invisible 4883N/A // Clicking the owned window shouldn't make its owner visible 4883N/A // Assume the location and size are applied to the frame as expected. 4883N/A // This should work fine on the Mac. We can't call getLocationOnScreen() 4883N/A // since from Java perspective the frame is invisible anyway. 4883N/A // 1. Check the color at the center of the owner frame