2362N/A * Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved. 430N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 430N/A * This code is free software; you can redistribute it and/or modify it 430N/A * under the terms of the GNU General Public License version 2 only, as 430N/A * published by the Free Software Foundation. 430N/A * This code is distributed in the hope that it will be useful, but WITHOUT 430N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 430N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 430N/A * version 2 for more details (a copy is included in the LICENSE file that 430N/A * accompanied this code). 430N/A * You should have received a copy of the GNU General Public License version 430N/A * 2 along with this work; if not, write to the Free Software Foundation, 430N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 430N/A * @summary verify that isFullScreenSupported and getFullScreenWindow work 430N/A * correctly with and without a SecurityManager. Note that the test may fail 430N/A * on older Gnome versions (see bug 6500686). 430N/A // Don't start the test until the window is visible 430N/A " at coordinates (" + x +
", " + y +
")");
430N/A // Check that all four corners and middle pixel match the window's 430N/A throw new Error(
"Some pixel colors not correct; FS window may not" +
430N/A " have been displayed correctly");
430N/A // None of these should throw an exception 430N/A // Give the system time to set the FS window and display it 430N/A // See if FS window got displayed correctly 430N/A // Give the system time to set the FS window and display it 430N/A throw new Error(
"Failure: should not get an exception when " +
430N/A "calling isFSSupported or setFSWindow");
430N/A // Give the system time to set the FS window and display it 430N/A // Do not exit the main thread until the test is finished