8298905: Test "java/awt/print/PrinterJob/ImagePrinting/PrintARGBImage.java" fails because the frames of instruction does not display
Reviewed-by: honkar, serb
This commit is contained in:
parent
41cc04430a
commit
d1026720d3
test/jdk
java/awt/print/PrinterJob
javax/swing/ProgressMonitor
@ -54,6 +54,7 @@ public class PrintARGBImage implements Printable {
|
||||
""";
|
||||
|
||||
PassFailJFrame passFailJFrame = new PassFailJFrame(instruction, 10);
|
||||
PassFailJFrame.positionTestWindow(null, PassFailJFrame.Position.HORIZONTAL);
|
||||
try {
|
||||
PrinterJob pj = PrinterJob.getPrinterJob();
|
||||
pj.setPrintable(new PrintARGBImage());
|
||||
|
@ -81,6 +81,7 @@ public class PageRangesDlgTest implements Printable {
|
||||
""";
|
||||
|
||||
PassFailJFrame passFailJFrame = new PassFailJFrame(instruction, 10);
|
||||
PassFailJFrame.positionTestWindow(null, PassFailJFrame.Position.HORIZONTAL);
|
||||
showPrintDialogs();
|
||||
passFailJFrame.awaitAndCheck();
|
||||
}
|
||||
|
@ -22,32 +22,29 @@
|
||||
*/
|
||||
|
||||
/* @test
|
||||
* @bug 8054572
|
||||
* @bug 6445283
|
||||
* @library /java/awt/regtesthelpers
|
||||
* @build PassFailJFrame
|
||||
* @summary Tests if JComboBox displays correctly when editable/non-editable
|
||||
* @summary Tests if ProgressMonitorInputStream reports progress accurately
|
||||
* @run main/manual ProgressTest
|
||||
*/
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.ProgressMonitorInputStream;
|
||||
import javax.swing.SwingUtilities;
|
||||
|
||||
public class ProgressTest {
|
||||
|
||||
private static final String instructionsText =
|
||||
"A ProgressMonitor will be shown." +
|
||||
" If it shows blank progressbar after 2048MB bytes read,"+
|
||||
"A ProgressMonitor will be shown.\n" +
|
||||
" If it shows blank progressbar after 2048MB bytes read,\n"+
|
||||
" press Fail else press Pass";
|
||||
|
||||
private static JFrame frame;
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
||||
PassFailJFrame pfjFrame = new PassFailJFrame("JScrollPane "
|
||||
+ "Test Instructions", instructionsText, 5);
|
||||
PassFailJFrame.positionTestWindow(null, PassFailJFrame.Position.VERTICAL);
|
||||
|
||||
final long SIZE = (long) (Integer.MAX_VALUE * 1.5);
|
||||
|
||||
@ -85,6 +82,7 @@ public class ProgressTest {
|
||||
}
|
||||
};
|
||||
thread.start();
|
||||
|
||||
pfjFrame.awaitAndCheck();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user