changeset 143:b5a80ffe4a92

6821495: test/java/awt/print/PrinterJob/PrtException.java fails Reviewed-by: avu, prr
author jgodinez
date Fri, 08 May 2009 10:55:11 -0700
parents e0ab6e5ef9eb
children 5d554775cfa8
files test/java/awt/PrintJob/EdgeTest/EdgeTest.java test/java/awt/PrintJob/MultipleEnd/MultipleEnd.java
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/awt/PrintJob/EdgeTest/EdgeTest.java	Thu May 07 09:15:36 2009 -0700
+++ b/test/java/awt/PrintJob/EdgeTest/EdgeTest.java	Fri May 08 10:55:11 2009 -0700
@@ -27,6 +27,7 @@
  * @summary Verifies that (0, 0) is the upper-left corner of the page, not
  *          the upper-left corner adjusted for the margins.
  * @author dpm
+ * @run main/manual EdgeTest
  */
 
 import java.awt.*;
@@ -43,7 +44,9 @@
                                 }
                             );
         f.setVisible(true);
-        PrintJob pj = getToolkit().getPrintJob(f, "EdgeTest", null);
+        JobAttributes job = new JobAttributes();
+        job.setDialog(JobAttributes.DialogType.NONE);        
+        PrintJob pj = getToolkit().getPrintJob(f, "EdgeTest", job, null);
         if (pj != null) {
             Graphics g = pj.getGraphics();
             Dimension d = pj.getPageDimension();
--- a/test/java/awt/PrintJob/MultipleEnd/MultipleEnd.java	Thu May 07 09:15:36 2009 -0700
+++ b/test/java/awt/PrintJob/MultipleEnd/MultipleEnd.java	Fri May 08 10:55:11 2009 -0700
@@ -44,7 +44,9 @@
     public MultipleEndFrame() {
         super("MultipleEnd");
         setVisible(true);
-        PrintJob pj  = getToolkit().getPrintJob(this, "MuiltipleEnd", null);
+        JobAttributes job = new JobAttributes();
+        job.setDialog(JobAttributes.DialogType.NONE);
+        PrintJob pj  = getToolkit().getPrintJob(this, "MultipleEnd", job, null);
         if (pj != null) {
             pj.end();
             pj.end();