-
Bug
-
Resolution: Unresolved
-
P4
-
9
The java/awt/print/PrinterJob/PageDialogMarginTest.java test is a manual test. Can it be automated.
There's no direct access to the dialog displayed. However, it should become the active window when it's shown. Using AWTEventListener, it should be possible get a focus or activation event which would be confirmation the dialog is displayed. Alternatively KeyboardFocusManager could be used to check that there's a focused component, or an active window.
Then the Robot could press Alt+T to move focus to "top (in)" field and edit the value of the field: press Delete key to remove "1" and press "2" key to type 2. Pressing Enter would click OK and close the dialog.
There's no direct access to the dialog displayed. However, it should become the active window when it's shown. Using AWTEventListener, it should be possible get a focus or activation event which would be confirmation the dialog is displayed. Alternatively KeyboardFocusManager could be used to check that there's a focused component, or an active window.
Then the Robot could press Alt+T to move focus to "top (in)" field and edit the value of the field: press Delete key to remove "1" and press "2" key to type 2. Pressing Enter would click OK and close the dialog.
- relates to
-
JDK-6801613 Cross-platform pageDialog and printDialog top margin entry broken
-
- Resolved
-