Skip to content

Commit

Permalink
8296920: Regression Test DialogOrient.java fails on MacOS
Browse files Browse the repository at this point in the history
Reviewed-by: honkar, dnguyen, achung, jdv
  • Loading branch information
prsadhuk committed Jun 5, 2023
1 parent ac41c03 commit 8c9d21e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/jdk/java/awt/print/Dialog/DialogOrient.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2023, 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 @@ -69,8 +69,8 @@ private static void init() throws Exception {
Sysout.printInstructions( instructions );

PrinterJob job = PrinterJob.getPrinterJob();
job.setPrintable(new DialogOrient());
PageFormat landscape = job.pageDialog(job.defaultPage());
job.setPrintable(new DialogOrient(), landscape);

if (job.printDialog()) {
job.print();
Expand Down

1 comment on commit 8c9d21e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.