Hi All,
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