Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8185500: [TESTBUG] Add keywords headful/printer in java/awt and javax tests. #464

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
7550870
Backport 34afeced211cd7115e2529b043c1e57dfa1291fe
yaqsun Feb 29, 2024
54766dd
Backport 34afeced211cd7115e2529b043c1e57dfa1291fe
yaqsun Mar 1, 2024
12dc34e
Backport 34afeced211cd7115e2529b043c1e57dfa1291fe
yaqsun Mar 1, 2024
5e28d1d
Backport 34afeced211cd7115e2529b043c1e57dfa1291fe
yaqsun Mar 1, 2024
008dff4
Backport 34afeced211cd7115e2529b043c1e57dfa1291fe
yaqsun Mar 1, 2024
5b8b0b8
Backport 34afeced211cd7115e2529b043c1e57dfa1291fe
yaqsun Apr 1, 2024
232db3b
Backport 34afeced211cd7115e2529b043c1e57dfa1291fe
yaqsun Apr 18, 2024
ecd34da
Merge branch 'openjdk:master' into backport-8185500
yaqsun Apr 18, 2024
485457e
Merge branch 'openjdk:master' into backport-8185500
yaqsun May 28, 2024
8a0b148
Backport 34afeced211cd7115e2529b043c1e57dfa1291fe
yaqsun Jun 11, 2024
ae71cd2
Backport 34afeced211cd7115e2529b043c1e57dfa1291fe
yaqsun Jun 11, 2024
4c69d5c
Merge branch 'openjdk:master' into backport-8185500
yaqsun Jun 12, 2024
1fc9217
Backport 34afeced211cd7115e2529b043c1e57dfa1291fe
yaqsun Jun 13, 2024
11d35aa
backport 8186259: IOExceptionIfEncodedURLTest.sh versus IOExceptionIf…
yaqsun Jun 17, 2024
5ba12d7
Backport 34afeced211cd7115e2529b043c1e57dfa1291fe
yaqsun Jun 18, 2024
2ee8478
del '@(#)TestSinhalaChar.java' after '@test'
yaqsun Jun 25, 2024
330839e
add '@build Sysout'
yaqsun Jun 26, 2024
5abebe0
Merge branch 'openjdk:master' into backport-8185500
yaqsun Oct 31, 2024
906ade3
backport jdk/test/javax/swing/ToolTipManager/7123767/bug7123767.java
yaqsun Oct 31, 2024
8563895
Merge branch 'openjdk:master' into backport-8185500
yaqsun Nov 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions jdk/test/TEST.ROOT
Original file line number Diff line number Diff line change
Expand Up @@ -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 jfr
keys=2d dnd headful i18n intermittent printer randomness jfr

# Tests that must run in othervm mode
othervm.dirs=java/awt java/beans java/rmi javax/accessibility javax/imageio javax/sound javax/print javax/management com/sun/awt sun/awt sun/java2d sun/pisces sun/rmi
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -21,8 +21,9 @@
* questions.
*/

/*
/**
* @test
* @key headful
* @bug 8007267
* @summary [macosx] com.apple.eawt.Application.setDefaultMenuBar is not working
* @requires (os.family == "mac")
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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;
Expand Down Expand Up @@ -102,4 +105,4 @@ private static void removeMenuItemFromMenu() {
Objects.requireNonNull(menuItem, "The menu item should still be available at this point");
sMenu.remove(menuItem);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion jdk/test/java/awt/Dialog/CloseDialog/CloseDialogTest.java
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -30,6 +30,7 @@

/**
* @test
* @key headful
* @bug 8043705
* @summary Can't exit color chooser dialog when running as an applet
* @run main CloseDialogTest
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -21,21 +21,20 @@
* questions.
*/

/*
@test
@bug 4980592
@summary switching user in XP causes an NPE in
sun.awt.windows.WWindowPeer.displayChanged
@requires (os.family == "windows")
@author [email protected]: area=embedded
@run main DisplayChangedTest
*/
/**
* DisplayChangedTest.java
*
* summary: switching user in XP causes an NPE in
* sun.awt.windows.WWindowPeer.displayChanged
* @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 [email protected]: area=embedded
* @run main DisplayChangedTest
*/

import java.awt.Frame;
import java.awt.Dialog;
import java.awt.TextArea;
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -21,19 +21,19 @@
* questions.
*/

/*
@test
@bug 6345002
@summary grab problems with EmbeddedFrame
@requires (os.family == "windows")
@author [email protected] area=EmbeddedFrame
@run main EmbeddedFrameGrabTest
*/
/**
* EmbeddedFrameGrabTest.java
*
* summary: grab problems with EmbeddedFrame
* @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 [email protected] area=EmbeddedFrame
* @run main EmbeddedFrameGrabTest
*/

import java.awt.Frame;
import java.awt.peer.FramePeer;
import javax.swing.JComboBox;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (c) 1998, 2013, 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
Expand All @@ -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.
Expand Down
14 changes: 8 additions & 6 deletions jdk/test/java/awt/EventQueue/6980209/bug6980209.java
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,21 @@
* questions.
*/

/*
@test
@bug 6516675
@summary Tests that EmbeddedFrame can be focused.
@author anton.tarasov: area=awt-focus
@library ../../regtesthelpers
@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
yaqsun marked this conversation as resolved.
Show resolved Hide resolved
* @build java.desktop/java.awt.Helper
yaqsun marked this conversation as resolved.
Show resolved Hide resolved
* @build Util UtilInternal
* @run main FocusEmbeddedFrameTest
*/

import java.awt.*;
import java.awt.event.*;
Expand Down
5 changes: 3 additions & 2 deletions jdk/test/java/awt/FontClass/HelvLtOblTest.java
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -21,8 +21,9 @@
* questions.
*/

/*
/**
* @test
* @key headful
* @bug 8064833
* @summary Test correct font is obtained via family+style
* @run main HelvLtOblTest
Expand Down
5 changes: 3 additions & 2 deletions jdk/test/java/awt/FontClass/SurrogateTest/SuppCharTest.java
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -21,8 +21,9 @@
* questions.
*/

/*
/**
* @test
* @key headful
* @bug 8015556
* @summary Surrogate pairs do not render properly on MacOS X.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -70,7 +72,7 @@ public static void main(String[] args) {
throw new RuntimeException("Maximized state was not set for frame in setBounds");
}
} finally {
frame.dispose();
if (frame != null) frame.dispose();
}


Expand All @@ -87,7 +89,7 @@ public static void main(String[] args) {
throw new RuntimeException("Maximized state was not set for frame in setVisible");
}
} finally {
frame.dispose();
if (frame != null) frame.dispose();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
* questions.
*/

/*
/**
* @test
* @key headful
* @bug 8171949 8214046
* @summary Tests that bitwise mask is set and state listener is notified during state transition.
* @author Dmitry Markov
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -23,8 +23,9 @@

import java.awt.*;

/*
/**
* @test
* @key headful
* @summary When Frame.setExtendedState(Frame.MAXIMIZED_BOTH)
* is called for a Frame after been called setMaximizedBounds() with
* certain value, Frame bounds must equal to this value.
Expand Down
Loading