[OpenJDK 2D-Dev] [9] RFR JDK-8158520: [TEST_BUG] java/awt/PrintJob/PrinterException.java fails on timeout

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Fri Jun 3 12:01:04 UTC 2016


Do we really need try to print something or cancel(ESC) will be enough 
to reproduce the previous bug?

On 03.06.16 14:46, prasanta sadhukhan wrote:
> Please review a test bug which was added for bug 7161283.
> Toolkit.getPrintJob() threw a NPE if no printer was available.
>
> Although the testcase was working ok in failure case by throwing NPE, in
> pass case it was waiting for manual intervention causing jtreg to fail
> on timeout.
>
> Made the testcase automated to use Robot to press Enter as the focus in
> the dialog is in the "Print" button. Using Robot to press Enter closes
> the dialog without the need for manual intervention.
>
> Tested on windows, linux and mac.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8158520
>
> webrev: http://cr.openjdk.java.net/~psadhukhan/8158520/webrev.00/
>
>
> Regards
>
> Prasanta
>


-- 
Best regards, Sergey.



More information about the 2d-dev mailing list