changeset 14431:b36d9a22240e

8134672: [TEST_BUG] Some tests should check isDisplayChangeSupported Reviewed-by: prr
author serb
date Wed, 26 Jun 2019 15:34:13 -0700
parents 898937a8f83f
children 627f9ae06250
files test/java/awt/GraphicsDevice/IncorrectDisplayModeExitFullscreen.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/awt/GraphicsDevice/IncorrectDisplayModeExitFullscreen.java	Tue Apr 27 18:25:21 2021 +0200
+++ b/test/java/awt/GraphicsDevice/IncorrectDisplayModeExitFullscreen.java	Wed Jun 26 15:34:13 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -45,6 +45,7 @@
                 GraphicsEnvironment.getLocalGraphicsEnvironment()
                                    .getScreenDevices();
         if (devices.length < 2 || devices[0].getDisplayModes().length < 2
+                || !devices[0].isDisplayChangeSupported()
                 || !devices[0].isFullScreenSupported()
                 || !devices[1].isFullScreenSupported()) {
             System.err.println("Testcase is not applicable");