# HG changeset patch # User serb # Date 1561588453 25200 # Node ID af678f2593e2f10a02d156676c15320d0e9f01b6 # Parent d0c2e34bae88c96eb4aec9d44d02460b028bedc7 8134672: [TEST_BUG] Some tests should check isDisplayChangeSupported Reviewed-by: prr diff -r d0c2e34bae88 -r af678f2593e2 test/jdk/java/awt/GraphicsDevice/IncorrectDisplayModeExitFullscreen.java --- a/test/jdk/java/awt/GraphicsDevice/IncorrectDisplayModeExitFullscreen.java Tue Jun 25 14:27:31 2019 -0700 +++ b/test/jdk/java/awt/GraphicsDevice/IncorrectDisplayModeExitFullscreen.java Wed Jun 26 15:34:13 2019 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2016, 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 @@ -46,6 +46,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");