Skip to content

Commit df4a4ea

Browse files
author
Amos Shi
committed
8320608: Many jtreg printing tests are missing the @printer keyword
Reviewed-by: mbaesken Backport-of: 76fea807071eee80a1e00aae7bc4784a6d35bf4b
1 parent 272da80 commit df4a4ea

File tree

139 files changed

+224
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+224
-107
lines changed

test/jdk/TEST.ROOT

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,41 @@
99
# should be taken to handle test failures of intermittent or
1010
# randomness tests.
1111
#
12-
# A "headful" test requires a graphical environment to meaningfully
13-
# run. Tests that are not headful are "headless".
14-
# A test flagged with key sound needs audio devices on the system, this
15-
# may be accompanied by the headful keyword since audio device access
12+
# A test flagged with cgroups uses cgroups.
13+
#
14+
# Notes on "client" keywords : headful sound printer multimon
15+
# ===========================================================
16+
#
17+
# These keywords are there to help with test selection so that
18+
# tests that need a particular resource can be selected to run on a system
19+
# with that resource. Conversely "!somekeyword" can be used to exclude tests
20+
# on a system without such a resource.
21+
# Caution: If you are always excluding tests using any of these keywords then you
22+
# are likely missing many important tests.
23+
#
24+
# "headful". A "headful" test requires a graphical environment to meaningfully run.
25+
# This does not have to mean a physical host, since a VM can be configured as headful.
26+
# Tests that are not headful are "headless".
27+
# Note: all manual tests are assumed to be headful and do not need the keyword.
28+
#
29+
# "printer". Not all tests of printing APIs require a printer, but many do.
30+
# So a "printer" test requires a printer to be installed to do anything meaningful.
31+
# Tests may not fail if there is none, instead just silently return.
32+
# But they also may legitimately throw an Exception depending on the test.
33+
# Also printer tests are not necessarily headful, but some are, and some are automated.
34+
#
35+
# "sound". Similarly, not all sound tests require audio devices, but many do.
36+
# A test flagged with key "sound" needs audio devices on the system.
37+
# Also they are not necessarily "headful", since they don't require a display etc.
38+
# But sometimes they may be accompanied by the headful keyword, since sound
1639
# is often linked to access to desktop resources and headful systems are
1740
# also more likely to have audio devices (ie meaning both input and output)
18-
# A test flagged with key "printer" requires a printer to succeed, else
19-
# throws a PrinterException or the like.
20-
# A test flagged with cgroups uses cgroups.
41+
#
42+
# "multimon" should be used in conjunction with headful and is used to identify
43+
# tests which require two displays connected.
2144

22-
keys=2d dnd headful sound i18n intermittent printer randomness jfr cgroups
45+
keys=headful sound printer multimon \
46+
i18n intermittent randomness jfr cgroups
2347

2448
# Tests that must run in othervm mode
2549
othervm.dirs=java/awt java/beans javax/accessibility javax/imageio javax/sound javax/swing javax/print \
File renamed without changes.

test/jdk/java/awt/PrintJob/ConstrainedPrintingTest/ConstrainedPrintingTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/*
2525
@test
2626
@bug 4116029 4300383
27+
@key printer
2728
@summary verify that child components can draw only inside their
2829
visible bounds
2930
@author [email protected] area=awt.print

test/jdk/java/awt/PrintJob/EdgeTest/EdgeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
/**
2525
* @test
2626
* @bug 4092755
27+
* @key printer
2728
* @summary Verifies that (0, 0) is the upper-left corner of the page, not
2829
* the upper-left corner adjusted for the margins.
29-
* @author dpm
3030
* @run main/manual EdgeTest
3131
*/
3232

test/jdk/java/awt/PrintJob/HighResTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
@test
2727
@bug 4227128 8066139
2828
@summary Test printing at resolutions > 72dpi
29-
@author dpm: area=awt.print
29+
@key printer
3030
@run main/manual HighResTest
3131
*/
3232
import java.awt.Button;

test/jdk/java/awt/PrintJob/JobAttrUpdateTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
/*
2424
* @test
2525
* @bug 6357905
26+
* @key printer
2627
* @summary JobAttributes.getFromPage() and getToPage() always returns 1
2728
* @run main/manual JobAttrUpdateTest
2829
*/

test/jdk/java/awt/PrintJob/MultipleEnd/MultipleEnd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
/**
2525
* @test
26-
* @key headful
26+
* @key headful printer
2727
* @bug 4112758
2828
* @summary Checks that a second invocation of PrintJob.end() does not cause
2929
* an exception or segmentation violation.

test/jdk/java/awt/PrintJob/PageSetupDlgBlockingTest/PageSetupDlgBlockingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
@test
2626
@bug 4507585
2727
@summary Native modal dialog shouldn't block event dispatching when called on EventDispatchThread.
28-
@author [email protected]: area=awt.PrintJob
28+
@key printer
2929
@run main/manual=yesno PageSetupDlgBlockingTest
3030
3131
*/

test/jdk/java/awt/PrintJob/PrintArcTest/PrintArcTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@
2323

2424
/*
2525
* @test
26-
* @key headful
26+
* @key headful printer
2727
* @bug 4105609
2828
* @summary Test printing of drawArc preceded by drawString
29-
* @author robi.khan
3029
*/
3130

3231
import java.awt.*;

test/jdk/java/awt/PrintJob/PrintCheckboxTest/PrintCheckboxManualTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
@bug 5045936 5055171
2727
@summary Tests that there is no ClassCastException thrown in printing
2828
checkbox and scrollbar with XAWT
29-
29+
@key printer
3030
@run applet/manual=yesno PrintCheckboxManualTest.html
3131
*/
3232

0 commit comments

Comments
 (0)