< prev index next >

test/java/awt/FullScreen/AltTabCrashTest/AltTabCrashTest.java

Print this page




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  @test
  26  @bug 6275887 6429971 6459792
  27  @summary Test that we don't crash when alt+tabbing in and out of
  28          fullscreen app
  29  @author Dmitri.Trembovetski@sun.com: area=FullScreen
  30  @run main/othervm/timeout=100  AltTabCrashTest -auto -changedm
  31  @run main/othervm/timeout=100 -Dsun.java2d.d3d=True AltTabCrashTest -auto -changedm
  32  @run main/othervm/timeout=100 -Dsun.java2d.d3d=True AltTabCrashTest -auto -usebs -changedm
  33  @run main/othervm/timeout=100 -Dsun.java2d.opengl=True AltTabCrashTest -auto

  34 */
  35 
  36 import java.awt.AWTException;
  37 import java.awt.Color;
  38 import java.awt.DisplayMode;
  39 import java.awt.Frame;
  40 import java.awt.Graphics;
  41 import java.awt.Graphics2D;
  42 import java.awt.GraphicsDevice;
  43 import java.awt.GraphicsEnvironment;
  44 import java.awt.Image;
  45 import java.awt.RenderingHints;
  46 import java.awt.Robot;
  47 import java.awt.event.KeyAdapter;
  48 import java.awt.event.KeyEvent;
  49 import java.awt.event.MouseAdapter;
  50 import java.awt.event.MouseEvent;
  51 import java.awt.image.BufferStrategy;
  52 import java.awt.image.BufferedImage;
  53 import java.awt.image.VolatileImage;




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  @test
  26  @bug 6275887 6429971 6459792
  27  @summary Test that we don't crash when alt+tabbing in and out of
  28          fullscreen app
  29  @author Dmitri.Trembovetski@sun.com: area=FullScreen
  30  @run main/othervm/timeout=100  AltTabCrashTest -auto -changedm
  31  @run main/othervm/timeout=100 -Dsun.java2d.d3d=True AltTabCrashTest -auto -changedm
  32  @run main/othervm/timeout=100 -Dsun.java2d.d3d=True AltTabCrashTest -auto -usebs -changedm
  33  @run main/othervm/timeout=100 -Dsun.java2d.opengl=True AltTabCrashTest -auto
  34  @key randomness
  35 */
  36 
  37 import java.awt.AWTException;
  38 import java.awt.Color;
  39 import java.awt.DisplayMode;
  40 import java.awt.Frame;
  41 import java.awt.Graphics;
  42 import java.awt.Graphics2D;
  43 import java.awt.GraphicsDevice;
  44 import java.awt.GraphicsEnvironment;
  45 import java.awt.Image;
  46 import java.awt.RenderingHints;
  47 import java.awt.Robot;
  48 import java.awt.event.KeyAdapter;
  49 import java.awt.event.KeyEvent;
  50 import java.awt.event.MouseAdapter;
  51 import java.awt.event.MouseEvent;
  52 import java.awt.image.BufferStrategy;
  53 import java.awt.image.BufferedImage;
  54 import java.awt.image.VolatileImage;


< prev index next >