OpenJDK / jdk10 / jdk10 / jdk
changeset 17565:b762aafa34e3
8185500: [TESTBUG] Add keywords headful/printer in java/awt and javax tests.
Summary: Add new keyword 'printer'. Some minor test fixes to show headless exception. Add some @requires windows.
Reviewed-by: serb, mbaesken
line wrap: on
line diff
--- a/test/TEST.ROOT Fri Aug 11 15:44:44 2017 -0700 +++ b/test/TEST.ROOT Fri Jul 28 14:06:28 2017 +0200 @@ -10,9 +10,11 @@ # randomness tests. # # A "headful" test requires a graphical environment to meaningfully -# run. Tests that are not headful are "headless." +# run. Tests that are not headful are "headless". +# A test flagged with key "printer" requires a printer to succeed, else +# throws a PrinterException or the like. -keys=2d dnd i18n intermittent randomness headful +keys=2d dnd headful i18n intermittent printer randomness # Tests that must run in othervm mode othervm.dirs=java/awt java/beans javax/accessibility javax/imageio javax/sound javax/print javax/management com/sun/awt sun/awt sun/java2d sun/pisces javax/xml/jaxp/testng/validation java/lang/ProcessHandle
--- a/test/com/apple/eawt/DefaultMenuBar/DefaultMenuBarTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/com/apple/eawt/DefaultMenuBar/DefaultMenuBarTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8007267 * @summary [macosx] com.apple.eawt.Application.setDefaultMenuBar is not working * @requires (os.family == "mac")
--- a/test/com/apple/laf/ScreenMenu/ScreenMenuMemoryLeakTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/com/apple/laf/ScreenMenu/ScreenMenuMemoryLeakTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -20,13 +20,16 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -/* + +/** * @test + * @key headful * @bug 8158325 * @summary Memory leak in com.apple.laf.ScreenMenu: removed JMenuItems are still referenced * @requires (os.family == "mac") * @run main/timeout=300/othervm -Xmx16m ScreenMenuMemoryLeakTest */ + import java.awt.EventQueue; import java.lang.ref.WeakReference; import java.lang.reflect.InvocationTargetException;
--- a/test/java/awt/Choice/ChoiceHiDpi/ChoiceTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Choice/ChoiceHiDpi/ChoiceTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8144594 * @summary HiDPI: awt.Choice looks improperly (Win 8) * @run main ChoiceTest
--- a/test/java/awt/Desktop/DesktopGtkLoadTest/DesktopGtkLoadTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Desktop/DesktopGtkLoadTest/DesktopGtkLoadTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,7 +21,9 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 8157827 * @summary AWT_Desktop/Automated/Exceptions/BasicTest loads incorrect GTK * version when jdk.gtk.version=3
--- a/test/java/awt/Dialog/CloseDialog/CloseDialogTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Dialog/CloseDialog/CloseDialogTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -30,11 +30,13 @@ /** * @test + * @key headful * @bug 8043705 * @summary Can't exit color chooser dialog when running as an applet * @modules java.desktop/sun.awt * @run main CloseDialogTest */ + public class CloseDialogTest { private static volatile Frame frame;
--- a/test/java/awt/Dialog/NestedDialogs/Modal/NestedModalDialogTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Dialog/NestedDialogs/Modal/NestedModalDialogTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2017, 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 @@ -21,17 +21,19 @@ * questions. */ - /* - @test 8155740 - @summary See <rdar://problem/3429130>: Events: actionPerformed() method not - called when it is button is clicked (system load related) - @summary com.apple.junit.java.awt.Frame - @library ../../../regtesthelpers - @build VisibilityValidator - @build Util - @build Waypoint - @run main NestedModalDialogTest +/** + * @test 8155740 + * @key headful + * @summary See <rdar://problem/3429130>: Events: actionPerformed() method not + * called when it is button is clicked (system load related) + * @summary com.apple.junit.java.awt.Frame + * @library ../../../regtesthelpers + * @build VisibilityValidator + * @build Util + * @build Waypoint + * @run main NestedModalDialogTest */ + ////////////////////////////////////////////////////////////////////////////// // NestedModalDialogTest.java // The test launches a parent frame. From this parent frame it launches a modal
--- a/test/java/awt/Dialog/NestedDialogs/Modeless/NestedModelessDialogTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Dialog/NestedDialogs/Modeless/NestedModelessDialogTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2017, 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 @@ -21,17 +21,19 @@ * questions. */ - /* - @test 8155740 - @summary See <rdar://problem/3429130>: Events: actionPerformed() method not - called when it is button is clicked (system load related) - @summary com.apple.junit.java.awt.Frame - @library ../../../regtesthelpers - @build VisibilityValidator - @build Util - @build Waypoint - @run main NestedModelessDialogTest +/** + * @test 8155740 + * @key headful + * @summary See <rdar://problem/3429130>: Events: actionPerformed() method not + * called when it is button is clicked (system load related) + * @summary com.apple.junit.java.awt.Frame + * @library ../../../regtesthelpers + * @build VisibilityValidator + * @build Util + * @build Waypoint + * @run main NestedModelessDialogTest -Xlog:exception */ + ///////////////////////////////////////////////////////////////////////////// // NestedModelessDialogTest.java // The test launches a parent frame. From this parent frame it launches a modal
--- a/test/java/awt/EmbeddedFrame/DisplayChangedTest/DisplayChangedTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/EmbeddedFrame/DisplayChangedTest/DisplayChangedTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -21,24 +21,20 @@ * questions. */ -/* - @test - @bug 4980592 8171363 - @summary switching user in XP causes an NPE in - sun.awt.windows.WWindowPeer.displayChanged - @requires (os.family == "windows") - @modules java.desktop/java.awt.peer - @modules java.desktop/sun.awt.windows:open - @modules java.desktop/sun.awt - @author son@sparc.spb.su: area=embedded - @run main DisplayChangedTest +/** + * @test + * @key headful + * @bug 4980592 8171363 + * @summary switching user in XP causes an NPE in + * sun.awt.windows.WWindowPeer.displayChanged + * @requires (os.family == "windows") + * @modules java.desktop/java.awt.peer + * @modules java.desktop/sun.awt.windows:open + * @modules java.desktop/sun.awt + * @author son@sparc.spb.su: area=embedded + * @run main DisplayChangedTest */ -/** - * DisplayChangedTest.java - * - * summary: switching user in XP causes an NPE in - * sun.awt.windows.WWindowPeer.displayChanged - */ + import java.awt.Frame; import java.awt.Dialog; import java.awt.TextArea;
--- a/test/java/awt/EmbeddedFrame/EmbeddedFrameGrabTest/EmbeddedFrameGrabTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/EmbeddedFrame/EmbeddedFrameGrabTest/EmbeddedFrameGrabTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -21,22 +21,19 @@ * questions. */ -/* - @test - @bug 6345003 8171363 - @summary grab problems with EmbeddedFrame - @requires (os.family == "windows") - @modules java.desktop/java.awt.peer - @modules java.desktop/sun.awt - @modules java.desktop/sun.awt.windows:open - @author Oleg.Semenov@sun.com area=EmbeddedFrame - @run main EmbeddedFrameGrabTest +/** + * @test + * @key headful + * @bug 6345003 8171363 + * @summary grab problems with EmbeddedFrame + * @requires (os.family == "windows") + * @modules java.desktop/java.awt.peer + * @modules java.desktop/sun.awt + * @modules java.desktop/sun.awt.windows:open + * @author Oleg.Semenov@sun.com area=EmbeddedFrame + * @run main EmbeddedFrameGrabTest */ -/** - * EmbeddedFrameGrabTest.java - * - * summary: grab problems with EmbeddedFrame - */ + import java.awt.Frame; import java.awt.peer.FramePeer; import javax.swing.JComboBox;
--- a/test/java/awt/EventDispatchThread/LoopRobustness/LoopRobustness.html Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/EventDispatchThread/LoopRobustness/LoopRobustness.html Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ <!-- - Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved. + Copyright (c) 1998, 2017, 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 @@ -23,6 +23,7 @@ <HTML> <!-- @test + @key headful @bug 4023283 @summary Checks that an Error which propogate up to the EventDispatch loop does not crash AWT.
--- a/test/java/awt/EventQueue/6980209/bug6980209.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/EventQueue/6980209/bug6980209.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -21,11 +21,13 @@ * questions. */ -/* @test - @bug 6980209 - @summary Make tracking SecondaryLoop.enter/exit methods easier - @author Semyon Sadetsky - */ +/** + * @test + * @key headful + * @bug 6980209 + * @summary Make tracking SecondaryLoop.enter/exit methods easier + * @author Semyon Sadetsky + */ import javax.swing.*; import java.awt.*;
--- a/test/java/awt/FileDialog/FileDialogIconTest/FileDialogIconTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/FileDialog/FileDialogIconTest/FileDialogIconTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,7 +21,9 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 8157163 8159132 * @summary AWT FileDialog does not inherit icon image from parent Frame * @requires os.family=="windows" @@ -68,8 +70,8 @@ "owning window. Wrong color: " + color); } } finally { - dialog.dispose(); - frame.dispose(); + if (dialog != null) { dialog.dispose(); } + if (frame != null) { frame.dispose(); } } }
--- a/test/java/awt/Focus/FocusEmbeddedFrameTest/FocusEmbeddedFrameTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Focus/FocusEmbeddedFrameTest/FocusEmbeddedFrameTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -21,20 +21,21 @@ * questions. */ -/* - @test - @bug 6516675 - @summary Tests that EmbeddedFrame can be focused. - @author anton.tarasov: area=awt-focus - @requires (os.family == "windows") - @modules java.desktop/java.awt.peer - java.desktop/sun.awt - java.desktop/sun.awt.windows - @library /java/awt/patchlib ../../regtesthelpers - @build java.desktop/java.awt.Helper - @build Util UtilInternal - @run main FocusEmbeddedFrameTest -*/ +/** + * @test + * @key headful + * @bug 6516675 + * @summary Tests that EmbeddedFrame can be focused. + * @author anton.tarasov: area=awt-focus + * @requires (os.family == "windows") + * @modules java.desktop/java.awt.peer + * java.desktop/sun.awt + * java.desktop/sun.awt.windows + * @library /java/awt/patchlib ../../regtesthelpers + * @build java.desktop/java.awt.Helper + * @build Util UtilInternal + * @run main FocusEmbeddedFrameTest + */ import java.awt.*; import java.awt.event.*;
--- a/test/java/awt/Focus/FocusTraversalPolicy/ButtonGroupLayoutTraversal/ButtonGroupLayoutTraversalTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Focus/FocusTraversalPolicy/ButtonGroupLayoutTraversal/ButtonGroupLayoutTraversalTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,13 +21,15 @@ * questions. */ - /* - @test - @bug 8154043 8172509 - @summary Fields not reachable anymore by tab-key, because of new tabbing - behaviour of radio button groups. - @run main ButtonGroupLayoutTraversalTest +/** + * @test + * @key headful + * @bug 8154043 8172509 + * @summary Fields not reachable anymore by tab-key, because of new tabbing + * behaviour of radio button groups. + * @run main ButtonGroupLayoutTraversalTest */ + import java.awt.BorderLayout; import java.awt.Color; import java.awt.GridLayout;
--- a/test/java/awt/Focus/RequestFocusByCause/RequestFocusByCauseTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Focus/RequestFocusByCause/RequestFocusByCauseTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,13 +21,14 @@ * questions. */ -/* - @test - @bug 8154434 - @summary Open the request focus methods of the java.awt.Component which accept - FocusEvent.Cause - @run main RequestFocusByCauseTest -*/ +/** + * @test + * @key headful + * @bug 8154434 + * @summary Open the request focus methods of the java.awt.Component which accept + * FocusEvent.Cause + * @run main RequestFocusByCauseTest + */ import java.awt.*; import java.awt.event.FocusEvent; @@ -148,4 +149,5 @@ frame.dispose(); } } -} \ No newline at end of file +} +
--- a/test/java/awt/FontClass/HelvLtOblTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/FontClass/HelvLtOblTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8064833 * @summary Test correct font is obtained via famil+style * @run main HelvLtOblTest
--- a/test/java/awt/FontClass/SurrogateTest/SuppCharTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/FontClass/SurrogateTest/SuppCharTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8015556 * @summary Surrogate pairs do not render properly on MacOS X. */
--- a/test/java/awt/Frame/8158918/SetExtendedState.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Frame/8158918/SetExtendedState.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,12 +21,14 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8158918 * @summary setExtendedState(1) for maximized Frame results in state==7 * @run main SetExtendedState */ + import java.awt.Frame; public class SetExtendedState {
--- a/test/java/awt/Frame/DecoratedFrameInsets/DecoratedFrameInsetsTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Frame/DecoratedFrameInsets/DecoratedFrameInsetsTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8165619 * @summary Frame is not repainted if created in state=MAXIMIZED_BOTH on Unity * @run main DecoratedFrameInsetsTest
--- a/test/java/awt/Frame/ExceptionOnSetExtendedStateTest/ExceptionOnSetExtendedStateTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Frame/ExceptionOnSetExtendedStateTest/ExceptionOnSetExtendedStateTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -21,12 +21,14 @@ * questions. */ -/* @test - @bug 8032078 - @summary Frame.setExtendedState throws RuntimeException, if - windowState=ICONIFIED|MAXIMIZED_BOTH, on OS X - @author Anton Litvinov -*/ +/** + * @test + * @key headful + * @bug 8032078 + * @summary Frame.setExtendedState throws RuntimeException, if + * windowState=ICONIFIED|MAXIMIZED_BOTH, on OS X + * @author Anton Litvinov + */ import java.awt.*;
--- a/test/java/awt/Frame/MaximizedByPlatform/MaximizedByPlatform.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Frame/MaximizedByPlatform/MaximizedByPlatform.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -21,7 +21,9 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 8026143 * @summary [macosx] Maximized state could be inconsistent between peer and frame * @author Petr Pchelko @@ -70,7 +72,7 @@ throw new RuntimeException("Maximized state was not set for frame in setBounds"); } } finally { - frame.dispose(); + if (frame != null) frame.dispose(); } @@ -87,7 +89,7 @@ throw new RuntimeException("Maximized state was not set for frame in setVisible"); } } finally { - frame.dispose(); + if (frame != null) frame.dispose(); } }
--- a/test/java/awt/Frame/NormalToIconified/NormalToIconifiedTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Frame/NormalToIconified/NormalToIconifiedTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8171949 * @summary Tests that bitwise mask is set and state listener is notified during state transition. * @author Dmitry Markov
--- a/test/java/awt/Frame/SetMaximizedBounds/MaximizedMovedWindow.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Frame/SetMaximizedBounds/MaximizedMovedWindow.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -22,14 +22,16 @@ */ import java.awt.*; -/* +/** * @test + * @key headful * @bug 8065739 * @summary Moved window is maximazed to new screen * @author Alexandr Scherbatiy * * @run main MaximizedMovedWindow */ + public class MaximizedMovedWindow { public static void main(String[] args) throws Exception {
--- a/test/java/awt/Frame/SetMaximizedBounds/SetMaximizedBounds.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Frame/SetMaximizedBounds/SetMaximizedBounds.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2017, 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 @@ -22,8 +22,10 @@ */ import java.awt.*; -/* + +/** * @test + * @key headful * @bug 8065739 8131339 * @summary When Frame.setExtendedState(Frame.MAXIMIZED_BOTH) * is called for a Frame after been called setMaximizedBounds() with
--- a/test/java/awt/Frame/WindowDragTest/WindowDragTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Frame/WindowDragTest/WindowDragTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2017, 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 @@ -21,15 +21,16 @@ * questions. */ -/* - @test - @bug 7128738 7161759 - @summary dragged dialog freezes system on dispose - @author Oleg Pekhovskiy: area=awt.toplevel - @library ../../regtesthelpers - @build Util - @run main WindowDragTest -*/ +/** + * @test + * @key headful + * @bug 7128738 7161759 + * @summary dragged dialog freezes system on dispose + * @author Oleg Pekhovskiy: area=awt.toplevel + * @library ../../regtesthelpers + * @build Util + * @run main WindowDragTest + */ import java.awt.Frame; import java.awt.event.InputEvent;
--- a/test/java/awt/FullScreen/CurrentDisplayModeTest/CurrentDisplayModeTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/FullScreen/CurrentDisplayModeTest/CurrentDisplayModeTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -23,6 +23,7 @@ /** * @test + * @key headful * @bug 8022810 * @summary Device.getDisplayMode() doesn't report refresh rate on Linux in case * of dual screen
--- a/test/java/awt/GraphicsDevice/DisplayModes/CompareToXrandrTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/GraphicsDevice/DisplayModes/CompareToXrandrTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -23,6 +23,7 @@ /** * @test + * @key headful * @bug 8022810 * @summary Cannot list all the available display modes on Ubuntu linux in case * of two screen devices
--- a/test/java/awt/KeyboardFocusmanager/DefaultPolicyChange/DefaultPolicyChange_Swing.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/KeyboardFocusmanager/DefaultPolicyChange/DefaultPolicyChange_Swing.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2017, 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 @@ -21,13 +21,14 @@ * questions. */ -/* - @test - @bug 6741526 8004693 - @summary KeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy) affects created components - @author Andrei Dmitriev : area=awt-focus - @run main DefaultPolicyChange_Swing -*/ +/** + * @test + * @key headful + * @bug 6741526 8004693 + * @summary KeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy) affects created components + * @author Andrei Dmitriev : area=awt-focus + * @run main DefaultPolicyChange_Swing + */ import java.awt.*;
--- a/test/java/awt/MenuBar/8007006/bug8007006.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/MenuBar/8007006/bug8007006.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8007006 * @summary [macosx] Closing subwindow loses main window menus. * @author Leonid Romanov
--- a/test/java/awt/Mouse/EnterExitEvents/FullscreenEnterEventTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Mouse/EnterExitEvents/FullscreenEnterEventTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. +* Copyright (c) 2013, 2017, 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 @@ -32,8 +32,9 @@ import java.lang.reflect.Method; import java.lang.reflect.Proxy; -/* +/** * @test + * @key headful * @bug 8013468 * @summary Cursor does not update properly when in fullscreen mode on Mac * The core reason of the issue was the lack of a mouse entered event in fullscreen @@ -45,6 +46,7 @@ * @author Petr Pchelko area=awt.event * @run main FullscreenEnterEventTest */ + public class FullscreenEnterEventTest { private static String OS = System.getProperty("os.name").toLowerCase();
--- a/test/java/awt/Robot/HiDPIMouseClick/HiDPIRobotMouseClick.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Robot/HiDPIMouseClick/HiDPIRobotMouseClick.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -29,13 +29,16 @@ import java.awt.event.MouseEvent; import javax.swing.UIManager; -/* @test +/** + * @test + * @key headful * @bug 8073320 * @summary Windows HiDPI support * @author Alexander Scherbatiy * @requires (os.family == "windows") * @run main/othervm -Dsun.java2d.win.uiScale=2 HiDPIRobotMouseClick */ + public class HiDPIRobotMouseClick { private static volatile int mouseX;
--- a/test/java/awt/Robot/HiDPIScreenCapture/HiDPIRobotScreenCaptureTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Robot/HiDPIScreenCapture/HiDPIRobotScreenCaptureTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -32,7 +32,9 @@ import java.awt.image.BufferedImage; import javax.swing.UIManager; -/* @test +/** + * @test + * @key headful * @bug 8073320 * @summary Windows HiDPI support * @author Alexander Scherbatiy @@ -40,6 +42,7 @@ * @run main/othervm -Dsun.java2d.win.uiScaleX=3 -Dsun.java2d.win.uiScaleY=2 * HiDPIRobotScreenCaptureTest */ + public class HiDPIRobotScreenCaptureTest { private static final Color[] COLORS = {
--- a/test/java/awt/Scrollbar/ScrollbarMouseWheelTest/ScrollbarMouseWheelTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Scrollbar/ScrollbarMouseWheelTest/ScrollbarMouseWheelTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2017, 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 @@ -26,9 +26,11 @@ /** * @test + * @key headful * @bug 4449139 * @summary test MouseWheelEvent generation by Scrollbar component */ + public final class ScrollbarMouseWheelTest implements MouseWheelListener, WindowListener {
--- a/test/java/awt/SplashScreen/FullscreenAfterSplash/FullScreenAfterSplash.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/SplashScreen/FullscreenAfterSplash/FullScreenAfterSplash.java Fri Jul 28 14:06:28 2017 +0200 @@ -34,8 +34,9 @@ import javax.swing.SwingUtilities; import javax.swing.WindowConstants; -/* +/** * @test + * @key headful * @bug 8024185 * @summary Native Mac OS X full screen does not work after showing the splash * @requires (os.family == "mac") @@ -48,6 +49,7 @@ * @author Petr Pchelko area=awt.event * @run main/othervm -splash:test.png FullScreenAfterSplash */ + public class FullScreenAfterSplash { private static JFrame frame;
--- a/test/java/awt/SplashScreen/MultiResolutionSplash/unix/UnixMultiResolutionSplashTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/SplashScreen/MultiResolutionSplash/unix/UnixMultiResolutionSplashTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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,12 +45,14 @@ /** * @test + * @key headful * @bug 8145174 8151787 8168657 * @summary HiDPI splash screen support on Linux * @modules java.desktop/sun.java2d * @requires (os.family == "linux") * @run main UnixMultiResolutionSplashTest */ + public class UnixMultiResolutionSplashTest { private static final int IMAGE_WIDTH = 300;
--- a/test/java/awt/TextArea/AutoScrollOnSelectAndAppend/AutoScrollOnSelectAndAppend.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/TextArea/AutoScrollOnSelectAndAppend/AutoScrollOnSelectAndAppend.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,12 +21,13 @@ * questions. */ - /* - @test - @bug 5003402 8151588 - @summary TextArea must scroll automatically when calling append and select, - even when not in focus. - @run main AutoScrollOnSelectAndAppend +/** + * @test + * @key headful + * @bug 5003402 8151588 + * @summary TextArea must scroll automatically when calling append and select, + * even when not in focus. + * @run main AutoScrollOnSelectAndAppend */ import java.awt.Button;
--- a/test/java/awt/TextArea/OverScrollTest/OverScrollTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/TextArea/OverScrollTest/OverScrollTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,12 +21,13 @@ * questions. */ -/* - @test - @bug 8149636 - @summary TextArea over scrolls to right when selecting text towards right. - @requires os.family == "windows" - @run main OverScrollTest +/** + * @test + * @key headful + * @bug 8149636 + * @summary TextArea over scrolls to right when selecting text towards right. + * @requires os.family == "windows" + * @run main OverScrollTest */ import java.awt.Frame;
--- a/test/java/awt/TextField/OverScrollTest/OverScrollTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/TextField/OverScrollTest/OverScrollTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,12 +21,13 @@ * questions. */ -/* - @test - @bug 8149636 - @summary TextField over scrolls to right when selecting text towards right. - @requires os.family == "windows" - @run main OverScrollTest +/** + * @test + * @key headful + * @bug 8149636 + * @summary TextField over scrolls to right when selecting text towards right. + * @requires os.family == "windows" + * @run main OverScrollTest */ import java.awt.Frame;
--- a/test/java/awt/Window/GetScreenLocation/GetScreenLocationTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Window/GetScreenLocation/GetScreenLocationTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -23,6 +23,7 @@ /** * @test @summary setLocationRelativeTo stopped working in Ubuntu 13.10 (Unity) + * @key headful * @bug 8036915 8161273 * @run main/othervm -Dsun.java2d.uiScale=1 GetScreenLocationTest * @run main/othervm -Dsun.java2d.uiScale=2 GetScreenLocationTest
--- a/test/java/awt/Window/SetWindowLocationByPlatformTest/SetWindowLocationByPlatformTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/Window/SetWindowLocationByPlatformTest/SetWindowLocationByPlatformTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,7 +21,9 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 8025130 * @summary setLocationByPlatform has no effect * @author Dmitry Markov @@ -29,6 +31,7 @@ * @build Util * @run main SetWindowLocationByPlatformTest */ + import java.awt.*; import test.java.awt.regtesthelpers.Util;
--- a/test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2017, 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 @@ -21,15 +21,16 @@ * questions. */ -/* - test - @bug 6193279 - @summary REGRESSION: AppletViewer throws IOException when path is encoded URL - @author Dmitry Cherepanov: area=appletviewer - @run compile IOExceptionIfEncodedURLTest.java - @run main IOExceptionIfEncodedURLTest - @run shell IOExceptionIfEncodedURLTest.sh -*/ +/** + * @test + * @key headful + * @bug 6193279 + * @summary REGRESSION: AppletViewer throws IOException when path is encoded URL + * @author Dmitry Cherepanov: area=appletviewer + * @run compile IOExceptionIfEncodedURLTest.java + * @run main IOExceptionIfEncodedURLTest + * @run shell IOExceptionIfEncodedURLTest.sh + */ import java.applet.Applet; import sun.net.www.ParseUtil;
--- a/test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.sh Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.sh Fri Jul 28 14:06:28 2017 +0200 @@ -24,6 +24,7 @@ #!/bin/ksh -p # # @test IOExceptionIfEncodedURLTest.sh +# @key headful # @bug 6193279 6619458 8137087 # @summary REGRESSION: AppletViewer throws IOException when path is encoded URL # @author Dmitry Cherepanov: area=appletviewer
--- a/test/java/awt/datatransfer/DragImage/MultiResolutionDragImageTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/datatransfer/DragImage/MultiResolutionDragImageTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -31,6 +31,7 @@ /** * @test + * @key headful * @bug 8076106 * @author Hendrik Schreiber * @summary [macosx] Drag image of TransferHandler does not honor
--- a/test/java/awt/datatransfer/HTMLDataFlavors/HTMLDataFlavorTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/datatransfer/HTMLDataFlavors/HTMLDataFlavorTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -21,17 +21,19 @@ * questions. */ -/* - @test - @bug 7075105 - @summary WIN: Provide a way to format HTML on drop - @author Denis Fokin: area=datatransfer - @library ../../../../lib/testlibrary - @build HtmlTransferable PutAllHtmlFlavorsOnClipboard - @build PutOnlyAllHtmlFlavorOnClipboard PutSelectionAndFragmentHtmlFlavorsOnClipboard - @build jdk.testlibrary.OSInfo - @run main HTMLDataFlavorTest -*/ +/** + * @test + * @key headful + * @bug 7075105 + * @summary WIN: Provide a way to format HTML on drop + * @author Denis Fokin: area=datatransfer + * @requires (os.family == "windows") + * @library ../../../../lib/testlibrary + * @build HtmlTransferable PutAllHtmlFlavorsOnClipboard + * @build PutOnlyAllHtmlFlavorOnClipboard PutSelectionAndFragmentHtmlFlavorsOnClipboard + * @build jdk.testlibrary.OSInfo + * @run main HTMLDataFlavorTest + */ import java.awt.*; import java.awt.datatransfer.*;
--- a/test/java/awt/event/KeyEvent/8020209/bug8020209.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/event/KeyEvent/8020209/bug8020209.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8020209 * @summary [macosx] Mac OS X key event confusion for "COMMAND PLUS" * @author leonid.romanov@oracle.com
--- a/test/java/awt/event/KeyEvent/DeadKey/DeadKeyMacOSXInputText.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/event/KeyEvent/DeadKey/DeadKeyMacOSXInputText.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 7199180 * @summary [macosx] Dead keys handling for input methods * @author alexandr.scherbatiy area=awt.event @@ -30,6 +31,7 @@ * @build jdk.testlibrary.OSInfo * @run main DeadKeyMacOSXInputText */ + import java.awt.*; import java.awt.event.*; import java.awt.event.KeyEvent;
--- a/test/java/awt/event/KeyEvent/DeadKey/deadKeyMacOSX.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/event/KeyEvent/DeadKey/deadKeyMacOSX.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 7196547 * @summary Dead Key implementation for KeyEvent on Mac OS X * @author alexandr.scherbatiy area=awt.event
--- a/test/java/awt/font/TextLayout/TestSinhalaChar.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/font/TextLayout/TestSinhalaChar.java Fri Jul 28 14:06:28 2017 +0200 @@ -21,7 +21,9 @@ * */ -/* @test @(#)TestSinhalaChar.java +/** + * @test @(#)TestSinhalaChar.java + * @key headful * @summary verify lack of crash on U+0DDD. * @bug 6795060 */
--- a/test/java/awt/hidpi/properties/HiDPIPropertiesWindowsTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/hidpi/properties/HiDPIPropertiesWindowsTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -28,7 +28,9 @@ import java.awt.geom.AffineTransform; import javax.swing.UIManager; -/* @test +/** + * @test + * @key headful * @bug 8073320 * @summary Windows HiDPI support * @author Alexander Scherbatiy
--- a/test/java/awt/im/6396526/IMLookAndFeel.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/im/6396526/IMLookAndFeel.java Fri Jul 28 14:06:28 2017 +0200 @@ -21,12 +21,13 @@ * questions. */ -/* +/** * @test - * @bug 6396526 - * @summary Verify below-the-spot IM in the swing L&F JFrame. - * Although the swing component is decorated with L&F - * the IM window should have no decoration. + * @key headful + * @bug 6396526 + * @summary Verify below-the-spot IM in the swing L&F JFrame. + * Although the swing component is decorated with L&F + * the IM window should have no decoration. * @author yuriko.yamasaki */
--- a/test/java/awt/im/8041990/bug8041990.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/im/8041990/bug8041990.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -22,13 +22,14 @@ */ -/* - @test - @bug 8041990 - @summary Language specific keys does not work in applets when opened outside the browser - @author Petr Pchelko - @modules java.desktop/sun.awt -*/ +/** + * @test + * @key headful + * @bug 8041990 + * @summary Language specific keys does not work in applets when opened outside the browser + * @author Petr Pchelko + * @modules java.desktop/sun.awt + */ import sun.awt.SunToolkit;
--- a/test/java/awt/image/MultiResolutionImageTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/image/MultiResolutionImageTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -41,6 +41,7 @@ /** * @test @bug 8011059 + * @key headful * @author Alexander Scherbatiy * @summary [macosx] Make JDK demos look perfect on retina displays * @library /test/lib @@ -53,6 +54,7 @@ * @run main MultiResolutionImageTest TOOLKIT_LOAD * @run main MultiResolutionImageTest TOOLKIT */ + public class MultiResolutionImageTest { private static final int IMAGE_WIDTH = 300;
--- a/test/java/awt/image/multiresolution/Corrupted2XImageTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/image/multiresolution/Corrupted2XImageTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8142406 * @author a.stepanov * @summary [HiDPI] [macosx] check that for a pair of images
--- a/test/java/awt/image/multiresolution/MultiResolutionToolkitImageTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/image/multiresolution/MultiResolutionToolkitImageTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -36,6 +36,7 @@ /** * @test + * @key headful * @bug 8040291 * @author Alexander Scherbatiy * @summary [macosx] Http-Images are not fully loaded when using ImageIcon @@ -43,6 +44,7 @@ * java.desktop/sun.awt.image * @run main MultiResolutionToolkitImageTest */ + public class MultiResolutionToolkitImageTest { private static final int IMAGE_WIDTH = 300;
--- a/test/java/awt/keyboard/AllKeyCode/AllKeyCode.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/keyboard/AllKeyCode/AllKeyCode.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,12 +21,13 @@ * questions. */ -/* - @test - @bug 8149456 8147834 8150230 8155740 - @requires os.family == "mac" - @summary Tests key codes for all keys supported in Java for Mac OS X. - @run main AllKeyCode +/** + * @test + * @key headful + * @bug 8149456 8147834 8150230 8155740 + * @requires os.family == "mac" + * @summary Tests key codes for all keys supported in Java for Mac OS X. + * @run main AllKeyCode */ import java.awt.AWTException;
--- a/test/java/awt/keyboard/AltPlusNumberKeyCombinationsTest/AltPlusNumberKeyCombinationsTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/keyboard/AltPlusNumberKeyCombinationsTest/AltPlusNumberKeyCombinationsTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -25,16 +25,15 @@ import java.awt.event.*; /** - * Test that it is possible to type "Alt code" on Windows. - * Windows-only test. + * @test + * @key headful + * @summary Test that it is possible to type "Alt code" on Windows. + * @requires (os.family == "windows") + * @library ../../../../lib/testlibrary + * @build ExtendedRobot + * @run main AltPlusNumberKeyCombinationsTest */ -/* -@test -@summary Test that it is possible to type "Alt code" on Windows. -@library ../../../../lib/testlibrary -@build ExtendedRobot -@run main AltPlusNumberKeyCombinationsTest -*/ + public class AltPlusNumberKeyCombinationsTest { private Frame frame;
--- a/test/java/awt/print/PrinterJob/CheckPrivilege.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/print/PrinterJob/CheckPrivilege.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2017, 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 @@ -23,6 +23,7 @@ /** * @test + * @key printer * @bug 4151151 * @summary Confirm that low-level print code does doPrivilege. * @author Graham Hamilton
--- a/test/java/awt/print/PrinterJob/ExceptionTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/print/PrinterJob/ExceptionTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -23,6 +23,7 @@ /** * @test + * @key printer * @bug 6467557 * @summary No exception should be thrown. * @run main ExceptionTest
--- a/test/java/awt/print/PrinterJob/ImagePrinting/NullClipARGB.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/print/PrinterJob/ImagePrinting/NullClipARGB.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -23,6 +23,7 @@ /** * @test + * @key printer * @bug 8061392 * @summary Test no NPE when printing transparency with null clip. */
--- a/test/java/awt/print/PrinterJob/Margins.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/print/PrinterJob/Margins.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2017, 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 @@ -23,6 +23,7 @@ /** * @test + * @key headful * @bug 6543815 6601097 8160888 * @summary Image should be sent to printer, no exceptions thrown. * The 3 printouts should have a rectangle which is the minimum
--- a/test/java/awt/print/PrinterJob/PaintText.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/print/PrinterJob/PaintText.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2017, 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 @@ -23,6 +23,7 @@ /** * @test + * @key headful printer * @bug 6498340 * @summary No exception when printing text with a paint. * @run main PaintText
--- a/test/java/awt/print/PrinterJob/PrintCrashTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/print/PrinterJob/PrintCrashTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key printer * @bug 8163889 * @summary Printing crashes on OSX. * @run main PrintCrashTest
--- a/test/java/awt/print/PrinterJob/PrintTextPane.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/print/PrinterJob/PrintTextPane.java Fri Jul 28 14:06:28 2017 +0200 @@ -21,14 +21,15 @@ * questions. */ -/* - @test PrintTextPane.java - @bug 6452415 6570471 - @summary Test that swing text prints using GDI printer fonts. - @author prr: area=PrinterJob - @run main PrintTextPane +/** + * @test PrintTextPane.java + * @key headful printer + * @bug 6452415 6570471 + * @summary Test that swing text prints using GDI printer fonts. + * @author prr: area=PrinterJob + * @run main PrintTextPane + */ - */ import java.io.*; import java.net.*; import java.awt.*;
--- a/test/java/awt/print/PrinterJob/PrtException.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/java/awt/print/PrinterJob/PrtException.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2017, 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 @@ -20,12 +20,14 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -/* - @test - @bug 4429544 - @summary This test should not throw a printer exception. Test has been modified to correspond with the behavior of 1.5 and above. - @run main PrtException -*/ + +/** + * @test + * @key printer + * @bug 4429544 + * @summary This test should not throw a printer exception. Test has been modified to correspond with the behavior of 1.5 and above. + * @run main PrtException + */ import java.awt.*; import java.awt.print.*;
--- a/test/javax/print/CheckDupFlavor.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/print/CheckDupFlavor.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -21,12 +21,14 @@ * questions. */ -/* +/** * @test + * @key printer * @bug 4996318 6731937 * @summary There should be no duplicates returned by getSupportedDocFlavors. * @run main CheckDupFlavor */ + import javax.print.*; import javax.print.attribute.*; import javax.print.attribute.standard.*;
--- a/test/javax/print/PrintSE/PrintSE.sh Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/print/PrintSE/PrintSE.sh Fri Jul 28 14:06:28 2017 +0200 @@ -1,7 +1,7 @@ #!/bin/sh # -# Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2008, 2017, 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 @@ -24,8 +24,11 @@ # # @test +# @key printer # @bug 6662775 -# @summary Tests queuePrintJob is sufficient permission. +# @summary Tests queuePrintJob is sufficient permission for printing. This test +# prints a page to a printer. If a document printer is installed, a +# popup can appear (to select the file location). # @run clean PrintSE # @run build PrintSE # @run compile PrintSE.java
--- a/test/javax/print/attribute/AttributeTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/print/attribute/AttributeTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 2017, 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 @@ -21,12 +21,14 @@ * questions. */ -/* +/** * @test + * @key printer * @bug 6387255 * @summary Tests conflict of Media values returned by isAttrValueSupported and getSupportedAttrValues. No runtime exception should be thrown. * @run main AttributeTest */ + import javax.print.*; import javax.print.attribute.standard.*; import javax.print.attribute.*;
--- a/test/javax/print/attribute/GetCopiesSupported.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/print/attribute/GetCopiesSupported.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2017, 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 @@ -20,12 +20,14 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -/* - @test - @bug 4463280 - @summary No ClassCastException should occur. - @run main GetCopiesSupported -*/ + +/** + * @test + * @key printer + * @bug 4463280 + * @summary No ClassCastException should occur. + * @run main GetCopiesSupported + */ import javax.print.*; import javax.print.attribute.*;
--- a/test/javax/print/attribute/SidesPageRangesTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/print/attribute/SidesPageRangesTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2017, 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 @@ -20,12 +20,15 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -/* + +/** * @test + * @key printer * @bug 4903366 * @summary No crash should occur. * @run main SidesPageRangesTest -*/ + */ + import java.awt.*; import javax.print.*; import javax.print.attribute.standard.*;
--- a/test/javax/print/attribute/SupportedPrintableAreas.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/print/attribute/SupportedPrintableAreas.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key printer * @bug 4762773 6289206 6324049 6362765 * @summary Tests that get non-null return list of printable areas. * @run main SupportedPrintableAreas
--- a/test/javax/swing/JButton/8151303/PressedIconTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JButton/8151303/PressedIconTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -39,11 +39,13 @@ /** * @test + * @key headful * @bug 8151303 * @summary [macosx] [hidpi] JButton's low-res. icon is visible when clicking on it * @run main/othervm PressedIconTest * @run main/othervm -Dsun.java2d.uiScale=2 PressedIconTest */ + public class PressedIconTest { private final static int IMAGE_SIZE = 300;
--- a/test/javax/swing/JComboBox/6567433/UpdateUIRecursionTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JComboBox/6567433/UpdateUIRecursionTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,7 +21,9 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 6567433 * * @summary JComboBox.updateUI() invokes updateUI() on its cellrenderer via
--- a/test/javax/swing/JComboBox/8019180/Test8019180.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JComboBox/8019180/Test8019180.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -26,8 +26,9 @@ import javax.swing.JFrame; import javax.swing.SwingUtilities; -/* +/** * @test + * @key headful * @bug 8019180 * @summary Tests that combobox works if it is used as action listener * @author Sergey Malenkov
--- a/test/javax/swing/JComboBox/8041909/ActionListenerExceptionTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JComboBox/8041909/ActionListenerExceptionTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,11 +21,13 @@ * questions. */ - /* @test - * @bug 8041909 - * @summary Test to check JComboBox does not lose its ability to invoke - * registerd ActionListener in case of exception in ActionListener - * @run main ActionListenerExceptionTest +/** + * @test + * @key headful + * @bug 8041909 + * @summary Test to check JComboBox does not lose its ability to invoke + * registerd ActionListener in case of exception in ActionListener + * @run main ActionListenerExceptionTest */ import java.awt.AWTEvent;
--- a/test/javax/swing/JComboBox/WindowsComboBoxSize/WindowsComboBoxSizeTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JComboBox/WindowsComboBoxSize/WindowsComboBoxSizeTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8179027 * @requires (os.family == "windows") * @summary JComboBox too small under Windows LAF
--- a/test/javax/swing/JComponent/4337267/bug4337267.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JComponent/4337267/bug4337267.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 4337267 * @summary test that numeric shaping works in Swing components * @author Sergey Groznyh
--- a/test/javax/swing/JComponent/8043610/bug8043610.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JComponent/8043610/bug8043610.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -22,14 +22,15 @@ */ -/* - @test - @bug 8043610 - @summary Tests that JComponent invalidate, revalidate and repaint methods could - be called from any thread - @author Petr Pchelko - @modules java.desktop/sun.awt -*/ +/** + * @test + * @key headful + * @bug 8043610 + * @summary Tests that JComponent invalidate, revalidate and repaint methods could + * be called from any thread + * @author Petr Pchelko + * @modules java.desktop/sun.awt + */ import sun.awt.SunToolkit;
--- a/test/javax/swing/JDialog/6639507/bug6639507.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JDialog/6639507/bug6639507.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2017, 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 @@ -21,11 +21,14 @@ * questions. */ -/* @test - @bug 6639507 - @summary Title of javax.swing.JDialog is null while spec says it's empty - @author Pavel Porvatov -*/ +/** + * @test + * @key headful + * @bug 6639507 + * @summary Title of javax.swing.JDialog is null while spec says it's empty + * @author Pavel Porvatov + */ + import javax.swing.*; import java.awt.*;
--- a/test/javax/swing/JFileChooser/6713352/bug6713352.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JFileChooser/6713352/bug6713352.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2017, 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 @@ -21,13 +21,15 @@ * questions. */ -/* @test - @bug 6713352 - @summary Deadlock in JFileChooser with synchronized custom FileSystemView - @author Pavel Porvatov - @modules java.desktop/sun.awt.shell - @run main bug6713352 -*/ +/** + * @test + * @key headful + * @bug 6713352 + * @summary Deadlock in JFileChooser with synchronized custom FileSystemView + * @author Pavel Porvatov + * @modules java.desktop/sun.awt.shell + * @run main bug6713352 + */ import sun.awt.shell.ShellFolder;
--- a/test/javax/swing/JFileChooser/6817933/Test6817933.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JFileChooser/6817933/Test6817933.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -21,11 +21,13 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 6817933 * @summary Tests that HTMLEditorKit does not affect JFileChooser * @author Sergey Malenkov + * @requires (os.family == "windows") * @modules java.desktop/sun.awt * java.desktop/sun.swing */
--- a/test/javax/swing/JFileChooser/8010718/bug8010718.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JFileChooser/8010718/bug8010718.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -23,10 +23,12 @@ /* * @test + * @key headful * @bug 8010718 * @summary [macosx] JFileChooser current filter nullified by addChoosableFileFilter * @author Tomas Hurka */ + import java.io.File; import javax.swing.*; import javax.swing.filechooser.FileFilter;
--- a/test/javax/swing/JFileChooser/8013442/Test8013442.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JFileChooser/8013442/Test8013442.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8013442 * @summary Tests that at least one file filter is selected * @author Sergey Malenkov
--- a/test/javax/swing/JFileChooser/8152677/SelectAllFilesFilterTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JFileChooser/8152677/SelectAllFilesFilterTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -31,8 +31,9 @@ import javax.swing.filechooser.FileFilter; import javax.swing.filechooser.FileNameExtensionFilter; -/* +/** * @test + * @key headful * @bug 8152677 * @requires (os.family == "mac") * @summary [macosx] All files filter can't be selected in JFileChooser
--- a/test/javax/swing/JFrame/8016356/bug8016356.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JFrame/8016356/bug8016356.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -21,14 +21,17 @@ * questions. */ -/* @test - @bug 8016356 - @summary Any swing frame resizes ugly. - @author Oleg Pekhovskiy - @library ../../../../lib/testlibrary - @build jdk.testlibrary.OSInfo - @run main bug8016356 -*/ +/** + * @test + * @key headful + * @bug 8016356 + * @summary Any swing frame resizes ugly. + * @author Oleg Pekhovskiy + * @requires (os.family == "windows") + * @library ../../../../lib/testlibrary + * @build jdk.testlibrary.OSInfo + * @run main bug8016356 + */ import java.awt.AWTException; import java.awt.Color;
--- a/test/javax/swing/JFrame/NSTexturedJFrame/NSTexturedJFrame.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JFrame/NSTexturedJFrame/NSTexturedJFrame.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -31,6 +31,7 @@ /** * @test + * @key headful * @bug 7124513 * @summary We should support NSTexturedBackgroundWindowMask style on OSX. * @author Sergey Bylokhov @@ -38,6 +39,7 @@ * @build ExtendedRobot jdk.testlibrary.OSInfo * @run main NSTexturedJFrame */ + public final class NSTexturedJFrame { private static final String BRUSH = "apple.awt.brushMetalLook";
--- a/test/javax/swing/JInternalFrame/6288609/TestJInternalFrameDispose.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JInternalFrame/6288609/TestJInternalFrameDispose.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 6288609 * @summary JInternalFrame.setDefaultCloseOperation() interferes with "close" behavior @@ -30,6 +31,7 @@ * @build Util * @run main TestJInternalFrameDispose */ + import java.awt.Point; import java.awt.Robot; import java.awt.event.ActionEvent;
--- a/test/javax/swing/JInternalFrame/8075314/bug8075314.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JInternalFrame/8075314/bug8075314.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -21,14 +21,15 @@ * questions. */ -/* @test - @bug 8075314 - @summary All the InternalFrames will be maximized after maximizing only one - of the InternalFrame with the special options "-client -Xmixed - -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel". - @author Semyon Sadetsky - */ - +/** + * @test + * @key headful + * @bug 8075314 + * @summary All the InternalFrames will be maximized after maximizing only one + * of the InternalFrame with the special options "-client -Xmixed + * -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel". + * @author Semyon Sadetsky + */ import javax.swing.*; import java.beans.PropertyVetoException; @@ -71,7 +72,7 @@ } }); } finally { - frame.dispose(); + if (frame != null) { frame.dispose(); } } } System.out.println("ok");
--- a/test/javax/swing/JInternalFrame/8145060/TestJInternalFrameMinimize.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JInternalFrame/8145060/TestJInternalFrameMinimize.java Fri Jul 28 14:06:28 2017 +0200 @@ -21,14 +21,16 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8145060 * @summary Minimizing a JInternalFrame not shifting focus to frame below it * @library ../../regtesthelpers * @build Util * @run main TestJInternalFrameMinimize */ + import java.awt.Point; import java.awt.Robot; import java.awt.event.ActionEvent;
--- a/test/javax/swing/JInternalFrame/8160248/JInternalFrameDraggingTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JInternalFrame/8160248/JInternalFrameDraggingTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -35,6 +35,7 @@ /** * @test + * @key headful * @bug 8160248 8160332 * @summary Dragged internal frame leaves artifacts for floating point ui scale * @run main/othervm -Dsun.java2d.uiScale=1.2 JInternalFrameDraggingTest @@ -42,6 +43,7 @@ * @run main/othervm -Dsun.java2d.uiScale=1 JInternalFrameDraggingTest * @run main/othervm -Dsun.java2d.uiScale=2.5 JInternalFrameDraggingTest */ + public class JInternalFrameDraggingTest { private static JFrame frame;
--- a/test/javax/swing/JInternalFrame/DockIconRepaint/DockIconRepaint.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JInternalFrame/DockIconRepaint/DockIconRepaint.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -36,9 +36,11 @@ /** * @test + * @key headful * @bug 8144166 * @requires (os.family == "mac") */ + public final class DockIconRepaint { private static volatile Color color;
--- a/test/javax/swing/JInternalFrame/Test6325652.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JInternalFrame/Test6325652.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 6325652 8159152 * @summary Tests keyboard shortcuts * @library ..
--- a/test/javax/swing/JList/6567433/UpdateUIRecursionTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JList/6567433/UpdateUIRecursionTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,7 +21,9 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 6567433 * * @summary JList.updateUI() for invokes updateUI() on its cellrenderer via
--- a/test/javax/swing/JList/8161483/Bug8161483.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JList/8161483/Bug8161483.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8161483 * @summary Implement AccessibleAction in JList.AccessibleJList.AccessibleJListChild * @run main Bug8161483 @@ -39,7 +40,7 @@ public class Bug8161483 extends JFrame { - private static JFrame frame; + private static JFrame frame = null; private static volatile Exception exception = null; private JList<String> countryList; @@ -96,7 +97,7 @@ } } finally { SwingUtilities.invokeAndWait(() -> { - frame.dispose(); + if (frame != null) { frame.dispose(); } }); } }
--- a/test/javax/swing/JMenu/6538132/bug6538132.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JMenu/6538132/bug6538132.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2017, 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 @@ -20,14 +20,18 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -/* @test - @bug 6538132 - @summary Regression: Pressing Escape key don't close the menu items from jdk7.0 b07 onwards - @author Alexander Potochkin - @library ../../../../lib/testlibrary - @build ExtendedRobot - @run main bug6538132 -*/ + +/** + * @test + * @key headful + * @bug 6538132 + * @summary Regression: Pressing Escape key don't close the menu items from jdk7.0 b07 onwards + * @author Alexander Potochkin + * @requires (os.family == "windows") + * @library ../../../../lib/testlibrary + * @build ExtendedRobot + * @run main bug6538132 + */ import javax.swing.*; import java.awt.*;
--- a/test/javax/swing/JMenu/8067346/bug8067346.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JMenu/8067346/bug8067346.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -21,12 +21,15 @@ * questions. */ -/* @test - @bug 8067346 - @summary Submenu has a changed offset on Windows7 with Windows look and feel - @requires (os.family == "windows") - @run main bug8067346 +/** + * @test + * @key headful + * @bug 8067346 + * @summary Submenu has a changed offset on Windows7 with Windows look and feel + * @requires (os.family == "windows") + * @run main bug8067346 */ + import java.awt.Insets; import javax.swing.JFrame; import javax.swing.JMenu;
--- a/test/javax/swing/JMenuItem/8139169/ScreenMenuBarInputTwice.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JMenuItem/8139169/ScreenMenuBarInputTwice.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -21,7 +21,9 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 8139169 8158390 * @summary verifies if TextArea gets input twice due to Apple's Screen Menubar * @requires (os.family=="mac") @@ -29,6 +31,7 @@ * @build Util * @run main ScreenMenuBarInputTwice */ + import java.awt.BorderLayout; import java.awt.Point; import java.awt.Robot;
--- a/test/javax/swing/JMenuItem/8152981/MenuItemIconTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JMenuItem/8152981/MenuItemIconTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,13 +21,15 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8152981 8159135 * @summary Double icons with JMenuItem setHorizontalTextPosition on Win 10 * @requires (os.family == "windows") * @run main MenuItemIconTest */ + import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics;
--- a/test/javax/swing/JMenuItem/8158566/CloseOnMouseClickPropertyTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JMenuItem/8158566/CloseOnMouseClickPropertyTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -35,11 +35,13 @@ import javax.swing.SwingUtilities; import javax.swing.UIManager; -/* +/** * @test + * @key headful * @bug 8158566 8160879 8160977 8158566 * @summary Provide a Swing property which modifies MenuItemUI behaviour */ + public class CloseOnMouseClickPropertyTest { private static final String CHECK_BOX_PROP = "CheckBoxMenuItem." @@ -219,4 +221,5 @@ } } } -} \ No newline at end of file +} +
--- a/test/javax/swing/JMenuItem/ActionListenerCalledTwice/ActionListenerCalledTwiceTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JMenuItem/ActionListenerCalledTwice/ActionListenerCalledTwiceTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -21,8 +21,9 @@ * questions. */ - /* +/** * @test + * @key headful * @bug 7160951 8152492 * @summary [macosx] ActionListener called twice for JMenuItem using ScreenMenuBar * @author vera.akulova@oracle.com @@ -30,6 +31,7 @@ * @build jdk.testlibrary.OSInfo * @run main ActionListenerCalledTwiceTest */ + import jdk.testlibrary.OSInfo; import java.awt.*; import java.awt.event.*;
--- a/test/javax/swing/JMenuItem/ClickMenuTestManual/ClickMenuTestManual.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JMenuItem/ClickMenuTestManual/ClickMenuTestManual.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -21,12 +21,15 @@ * questions. */ - /* @test +/** + * @test + * @key headful * @bug 8158230 * @summary Verify menu item option apple.laf.useScreenMenuBar implementation * @requires (os.family=="mac") * @run main ClickMenuTestManual */ + import java.awt.Color; import java.awt.GridBagConstraints; import java.awt.GridBagLayout;
--- a/test/javax/swing/JOptionPane/8081019/bug8081019.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JOptionPane/8081019/bug8081019.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -28,6 +28,7 @@ /** * @test + * @key headful * @bug 8081019 * @summary Check peer to null in CPlatformWindow.checkZoom() method * @author Alexandr Scherbatiy
--- a/test/javax/swing/JPopupMenu/6217905/bug6217905.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JPopupMenu/6217905/bug6217905.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2017, 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 @@ -20,15 +20,18 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -/* -@test -@bug 6217905 -@summary JPopupMenu keyboard navigation stops working -@author Alexander Potochkin -@library ../../../../lib/testlibrary -@build ExtendedRobot -@run main bug6217905 -*/ + +/** + * @test + * @key headful + * @bug 6217905 + * @summary JPopupMenu keyboard navigation stops working + * @author Alexander Potochkin + * @requires (os.family == "windows") + * @library ../../../../lib/testlibrary + * @build ExtendedRobot + * @run main bug6217905 + */ import javax.swing.*; import java.awt.*;
--- a/test/javax/swing/JPopupMenu/7154841/bug7154841.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JPopupMenu/7154841/bug7154841.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -21,14 +21,15 @@ * questions. */ -/* - @test - @bug 7154841 - @summary JPopupMenu is overlapped by a Dock on Mac OS X - @author Petr Pchelko - @library ../../../../lib/testlibrary - @build ExtendedRobot jdk.testlibrary.OSInfo - @run main bug7154841 +/** + * @test + * @key headful + * @bug 7154841 + * @summary JPopupMenu is overlapped by a Dock on Mac OS X + * @author Petr Pchelko + * @library ../../../../lib/testlibrary + * @build ExtendedRobot jdk.testlibrary.OSInfo + * @run main bug7154841 */ import java.awt.*;
--- a/test/javax/swing/JTabbedPane/7170310/bug7170310.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JTabbedPane/7170310/bug7170310.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -37,6 +37,7 @@ /** * @test + * @key headful * @bug 7170310 * @author Alexey Ivanov * @summary Selected tab should be scrolled into view. @@ -44,6 +45,7 @@ * @build ExtendedRobot * @run main bug7170310 */ + public class bug7170310 { private static final int TABS_NUMBER = 3; @@ -75,7 +77,7 @@ System.out.printf("Test passed"); } } finally { - frame.dispose(); + if (frame != null) { frame.dispose(); } } }
--- a/test/javax/swing/JTable/6567433/UpdateUIRecursionTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JTable/6567433/UpdateUIRecursionTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,7 +21,9 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 6567433 * * @summary JTable.updateUI() invokes updateUI() on its TableCellrenderer via
--- a/test/javax/swing/JTableHeader/6567433/UpdateUIRecursionTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JTableHeader/6567433/UpdateUIRecursionTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,7 +21,9 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 6567433 * * @summary JTableHeader.updateUI() invokes updateUI() on its TableCellrenderer via
--- a/test/javax/swing/JTextArea/6940863/bug6940863.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JTextArea/6940863/bug6940863.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2017, 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 @@ -21,10 +21,13 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 6940863 * @summary Textarea within scrollpane shows vertical scrollbar * @author Pavel Porvatov + * @requires (os.family == "windows") * @library ../../../../lib/testlibrary * @build jdk.testlibrary.OSInfo * @run main bug6940863
--- a/test/javax/swing/JTextArea/ScrollbarFlicker/ScrollFlickerTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JTextArea/ScrollbarFlicker/ScrollFlickerTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,7 +21,9 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 8160246 * @summary Regression: 4410243 reproducible with GTK LaF * @run main ScrollFlickerTest
--- a/test/javax/swing/JTree/6567433/UpdateUIRecursionTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/JTree/6567433/UpdateUIRecursionTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,7 +21,9 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 6567433 * * @summary JTree.updateUI() invokes updateUI() on its TreeCellrenderer via
--- a/test/javax/swing/ProgressMonitor/ProgressMonitorEscapeKeyPress.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/ProgressMonitor/ProgressMonitorEscapeKeyPress.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,7 +21,9 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 8065861 * @summary Test to check pressing Escape key sets 'canceled' property of ProgressMonitor * @run main ProgressMonitorEscapeKeyPress
--- a/test/javax/swing/Security/6938813/bug6938813.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/Security/6938813/bug6938813.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2017, 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 @@ -23,6 +23,7 @@ /* * @test + * @key headful * @bug 6938813 * @summary Swing mutable statics * @author Pavel Porvatov
--- a/test/javax/swing/ToolTipManager/7123767/bug7123767.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/ToolTipManager/7123767/bug7123767.java Fri Jul 28 14:06:28 2017 +0200 @@ -21,7 +21,7 @@ * questions. */ -/* +/** * @test * @bug 7123767 * @@ -34,8 +34,7 @@ * * @author Vladislav Karnaukhov * - * @key headful - * @key randomness + * @key headful randomness * * @modules java.desktop/sun.awt * @library /test/lib
--- a/test/javax/swing/UI/UnninstallUIMemoryLeaks/UnninstallUIMemoryLeaks.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/UI/UnninstallUIMemoryLeaks/UnninstallUIMemoryLeaks.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -31,6 +31,7 @@ /** * @test + * @key headful * @bug 8134947 * @author Sergey Bylokhov * @run main/timeout=300/othervm -Xmx12m -XX:+HeapDumpOnOutOfMemoryError UnninstallUIMemoryLeaks @@ -54,7 +55,7 @@ } } } finally { - EventQueue.invokeAndWait(() -> frame.dispose()); + if (frame != null) { EventQueue.invokeAndWait(() -> frame.dispose()); } } }
--- a/test/javax/swing/plaf/aqua/CustomComboBoxFocusTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/plaf/aqua/CustomComboBoxFocusTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -21,14 +21,16 @@ * questions. */ -/* @test - @bug 8073001 8081764 - @summary Test verifies that combo box with custom editor renders - focus ring around arrow button correctly. - @library /lib/testlibrary - @build jdk.testlibrary.OSInfo - @run main CustomComboBoxFocusTest -*/ +/** + * @test + * @key headful + * @bug 8073001 8081764 + * @summary Test verifies that combo box with custom editor renders + * focus ring around arrow button correctly. + * @library /lib/testlibrary + * @build jdk.testlibrary.OSInfo + * @run main CustomComboBoxFocusTest + */ import java.awt.AWTException; import java.awt.Component;
--- a/test/javax/swing/plaf/basic/6866751/bug6866751.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/plaf/basic/6866751/bug6866751.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -21,11 +21,14 @@ * questions. */ -/* @test - @bug 6866751 - @summary J2SE_Swing_Reg: the caret disappears when moving to the end of the line. - @author Semyon Sadetsky - */ +/** + * @test + * @key headful + * @bug 6866751 + * @summary J2SE_Swing_Reg: the caret disappears when moving to the end of the line. + * @author Semyon Sadetsky + */ + import javax.swing.*; import java.awt.*; @@ -77,7 +80,7 @@ SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() { - frame.dispose(); + if (frame != null) { frame.dispose(); } } }); }
--- a/test/javax/swing/plaf/basic/BasicComboPopup/8154069/Bug8154069.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/plaf/basic/BasicComboPopup/8154069/Bug8154069.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -23,6 +23,7 @@ /* * @test + * @key headful * @bug 8154069 * @summary Jaws reads wrong values from comboboxes when no element is selected * @run main Bug8154069 @@ -89,7 +90,7 @@ } } finally { SwingUtilities.invokeAndWait(() -> { - frame.dispose(); + if (frame != null) { frame.dispose(); } }); } }
--- a/test/javax/swing/plaf/basic/BasicHTML/4960629/bug4960629.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/plaf/basic/BasicHTML/4960629/bug4960629.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -21,12 +21,14 @@ * questions. */ -/* @test - @bug 4960629 7124238 - @summary Tests if font for html text on widgets in correct. - @author Denis Sharypov - @run main bug4960629 -*/ +/** + * @test + * @key headful + * @bug 4960629 7124238 + * @summary Tests if font for html text on widgets in correct. + * @author Denis Sharypov + * @run main bug4960629 + */ import java.awt.Font; import java.lang.reflect.InvocationTargetException; @@ -57,7 +59,7 @@ f.setVisible(true); test(); } finally { - f.dispose(); + if (f != null) { f.dispose(); } } }
--- a/test/javax/swing/plaf/basic/BasicLabelUI/bug7172652.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/plaf/basic/BasicLabelUI/bug7172652.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -21,14 +21,17 @@ * questions. */ -/* @test - @bug 7172652 - @summary With JDK 1.7 text field does not obtain focus when using mnemonic Alt/Key combin - @author Semyon Sadetsky - @library /lib/testlibrary - @build jdk.testlibrary.OSInfo - @run main bug7172652 - */ +/** + * @test + * @key headful + * @bug 7172652 + * @summary With JDK 1.7 text field does not obtain focus when using mnemonic Alt/Key combin + * @author Semyon Sadetsky + * @requires (os.family == "windows") + * @library /lib/testlibrary + * @build jdk.testlibrary.OSInfo + * @run main bug7172652 + */ import javax.swing.*; import javax.swing.event.ChangeEvent;
--- a/test/javax/swing/plaf/nimbus/8041642/ScrollBarThumbVisibleTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/plaf/nimbus/8041642/ScrollBarThumbVisibleTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -21,11 +21,13 @@ * questions. */ -/* @test - @bug 8134828 - @summary Scrollbar thumb disappears with Nimbus L&F - @author Semyon Sadetsky -*/ +/** + * @test + * @key headful + * @bug 8134828 + * @summary Scrollbar thumb disappears with Nimbus L&F + * @author Semyon Sadetsky + */ import javax.swing.*; import java.awt.*; @@ -76,7 +78,7 @@ SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() { - frame.dispose(); + if (frame != null) { frame.dispose(); } } }); }
--- a/test/javax/swing/plaf/windows/6921687/bug6921687.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/plaf/windows/6921687/bug6921687.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 6921687 8079428 * @summary Mnemonic disappears after repeated attempts to open menu items using * mnemonics @@ -33,6 +34,7 @@ * @modules java.desktop/com.sun.java.swing.plaf.windows * @run main bug6921687 */ + import java.awt.Robot; import java.awt.event.KeyEvent; import javax.swing.JFrame; @@ -83,7 +85,7 @@ checkMnemonics(); System.out.println("ok"); } finally { - frame.dispose(); + if (frame != null) { frame.dispose(); } } }
--- a/test/javax/swing/plaf/windows/WindowsRootPaneUI/WrongAltProcessing/WrongAltProcessing.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/plaf/windows/WindowsRootPaneUI/WrongAltProcessing/WrongAltProcessing.java Fri Jul 28 14:06:28 2017 +0200 @@ -21,12 +21,15 @@ * questions. */ -/* @test - @bug 8001633 8028271 8039888 - @summary Wrong alt processing during switching between windows - @author mikhail.cherkasov@oracle.com - @run main WrongAltProcessing -*/ +/** + * @test + * @key headful + * @bug 8001633 8028271 8039888 + * @summary Wrong alt processing during switching between windows + * @author mikhail.cherkasov@oracle.com + * @requires (os.family == "windows") + * @run main WrongAltProcessing + */ import javax.swing.*; import java.awt.*;
--- a/test/javax/swing/system/6799345/TestShutdown.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/system/6799345/TestShutdown.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2017, 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 @@ -21,14 +21,16 @@ * questions. */ -/* @test - @bug 6799345 - @summary Tests that no exceptions are thrown from TimerQueue and -SwingWorker on AppContext shutdown - @author art - @modules java.desktop/sun.awt - @run main TestShutdown -*/ +/** + * @test + * @bug 6799345 + * @key headful + * @summary Tests that no exceptions are thrown from TimerQueue and + * SwingWorker on AppContext shutdown + * @author art + * @modules java.desktop/sun.awt + * @run main TestShutdown + */ import java.awt.*; import java.awt.event.*;
--- a/test/javax/swing/text/FlowView/LayoutTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/text/FlowView/LayoutTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2017, 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 @@ -21,13 +21,15 @@ * questions. */ -/* @test - @bug 6452106 6606443 8161195 - @author Peter Zhelezniakov - @library ../../regtesthelpers - @build Test JRobot SwingTestHelper - @run main/timeout=300 LayoutTest -*/ +/** + * @test + * @key headful + * @bug 6452106 6606443 8161195 + * @author Peter Zhelezniakov + * @library ../../regtesthelpers + * @build Test JRobot SwingTestHelper + * @run main/timeout=300 LayoutTest + */ import javax.swing.text.*; import javax.swing.*;
--- a/test/javax/swing/text/GlyphPainter2/6427244/bug6427244.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/text/GlyphPainter2/6427244/bug6427244.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2017, 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 @@ -22,14 +22,16 @@ * */ -/* @test - @bug 6427244 8144240 8166003 8169879 - @summary Test that pressing HOME correctly moves caret in I18N document. - @author Sergey Groznyh - @library ../../../regtesthelpers - @build JRobot - @run main bug6427244 -*/ +/** + * @test + * @key headful + * @bug 6427244 8144240 8166003 8169879 + * @summary Test that pressing HOME correctly moves caret in I18N document. + * @author Sergey Groznyh + * @library ../../../regtesthelpers + * @build JRobot + * @run main bug6427244 + */ import java.awt.Container; import java.awt.Dimension;
--- a/test/javax/swing/text/Utilities/8142966/SwingFontMetricsTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/text/Utilities/8142966/SwingFontMetricsTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -30,6 +30,7 @@ /** * @test + * @key headful * @bug 8142966 * @summary Wrong cursor position in text components on HiDPI display * @run main/othervm -Dsun.java2d.uiScale=2 SwingFontMetricsTest
--- a/test/javax/swing/text/View/8015853/bug8015853.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/text/View/8015853/bug8015853.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2017, 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 @@ -21,8 +21,9 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 8015853 * @summary Tests the rendering of a large HTML document * @author Dmitry Markov
--- a/test/javax/swing/text/html/Test4783068.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/javax/swing/text/html/Test4783068.java Fri Jul 28 14:06:28 2017 +0200 @@ -21,11 +21,13 @@ * questions. */ -/* @test - @bug 4783068 - @summary Disabled components should render grayed-out HTML - @author Peter Zhelezniakov - @run main Test4783068 +/** + * @test + * @key headful + * @bug 4783068 + * @summary Disabled components should render grayed-out HTML + * @author Peter Zhelezniakov + * @run main Test4783068 */ import java.awt.*;
--- a/test/sun/awt/image/OffScreenImageSource/ImageConsumerUnregisterTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/sun/awt/image/OffScreenImageSource/ImageConsumerUnregisterTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -21,7 +21,9 @@ * questions. */ -/* @test +/** + * @test + * @key headful * @bug 8160421 8161902 * @summary Test to check OffScreenImageSource handles case where * imageComplete(ImageConsumer.SINGLEFRAMEDONE) unregisters.
--- a/test/sun/java2d/DirectX/IAEforEmptyFrameTest/IAEforEmptyFrameTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/sun/java2d/DirectX/IAEforEmptyFrameTest/IAEforEmptyFrameTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2017, 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 @@ -21,14 +21,16 @@ * questions. */ -/* +/** * @test + * @key headful * @bug 6668439 * @summary Verifies that no exceptions are thrown when frame is resized to 0x0 * @author Dmitri.Trembovetski@sun.com: area=Graphics * @run main/othervm IAEforEmptyFrameTest * @run main/othervm -Dsun.java2d.d3d=false IAEforEmptyFrameTest */ + import javax.swing.JFrame; public class IAEforEmptyFrameTest {
--- a/test/sun/java2d/xrender/HugeGradientTest.java Fri Aug 11 15:44:44 2017 -0700 +++ b/test/sun/java2d/xrender/HugeGradientTest.java Fri Jul 28 14:06:28 2017 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -27,10 +27,12 @@ /** * @test + * @key headful * @bug 8162591 * @summary tests gradients with start/endpoints exceeding Short.MAX coordinates * @author ceisserer */ + public class HugeGradientTest extends Frame { public static volatile boolean success = false;