Skip to content

Commit 401969c

Browse files
committed
8298905: Test "java/awt/print/PrinterJob/ImagePrinting/PrintARGBImage.java" fails because the frames of instruction does not display
Backport-of: d1026720d323d0acd9bd8d85d5caba7185107863
1 parent e3d52aa commit 401969c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

test/jdk/java/awt/print/PrinterJob/ImagePrinting/PrintARGBImage.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public static void main(String[] args) throws InterruptedException,
5454
""";
5555

5656
PassFailJFrame passFailJFrame = new PassFailJFrame(instruction, 10);
57+
PassFailJFrame.positionTestWindow(null, PassFailJFrame.Position.HORIZONTAL);
5758
try {
5859
PrinterJob pj = PrinterJob.getPrinterJob();
5960
pj.setPrintable(new PrintARGBImage());

test/jdk/java/awt/print/PrinterJob/PageRangesDlgTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public static void main(String[] args) throws Exception {
8181
""";
8282

8383
PassFailJFrame passFailJFrame = new PassFailJFrame(instruction, 10);
84+
PassFailJFrame.positionTestWindow(null, PassFailJFrame.Position.HORIZONTAL);
8485
showPrintDialogs();
8586
passFailJFrame.awaitAndCheck();
8687
}

test/jdk/javax/swing/ProgressMonitor/ProgressTest.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,32 +22,29 @@
2222
*/
2323

2424
/* @test
25-
* @bug 8054572
25+
* @bug 6445283
2626
* @library /java/awt/regtesthelpers
2727
* @build PassFailJFrame
28-
* @summary Tests if JComboBox displays correctly when editable/non-editable
28+
* @summary Tests if ProgressMonitorInputStream reports progress accurately
2929
* @run main/manual ProgressTest
3030
*/
3131

3232
import java.io.InputStream;
3333

34-
import javax.swing.JFrame;
3534
import javax.swing.ProgressMonitorInputStream;
36-
import javax.swing.SwingUtilities;
3735

3836
public class ProgressTest {
3937

4038
private static final String instructionsText =
41-
"A ProgressMonitor will be shown." +
42-
" If it shows blank progressbar after 2048MB bytes read,"+
39+
"A ProgressMonitor will be shown.\n" +
40+
" If it shows blank progressbar after 2048MB bytes read,\n"+
4341
" press Fail else press Pass";
4442

45-
private static JFrame frame;
46-
4743
public static void main(String[] args) throws Exception {
4844

4945
PassFailJFrame pfjFrame = new PassFailJFrame("JScrollPane "
5046
+ "Test Instructions", instructionsText, 5);
47+
PassFailJFrame.positionTestWindow(null, PassFailJFrame.Position.VERTICAL);
5148

5249
final long SIZE = (long) (Integer.MAX_VALUE * 1.5);
5350

@@ -85,6 +82,7 @@ public void run() {
8582
}
8683
};
8784
thread.start();
85+
8886
pfjFrame.awaitAndCheck();
8987
}
9088
}

0 commit comments

Comments
 (0)