Hi Prem,
The test fails on mac, Please check.
Thanks,
Ambarish
From: Prem Balakrishnan
Sent: Monday, December 28, 2015 11:28 AM
To: Semyon Sadetsky; Ambarish Rapte; HYPERLINK
"mailto:[email protected]"[email protected]
Subject: Review Request for 7035459: [TEST_BUG]
java/awt/Focus/TranserFocusToWindow/TranserFocusToWindow.java failed
Hi,
Please review fix for JDK9,
Bug: https://bugs.openjdk.java.net/browse/JDK-7035459
Webrev: http://cr.openjdk.java.net/~arapte/prem/7035459/webrev.00/
Issue:
Exception java.lang.RuntimeException: can not set focus on
java.awt.Button[button0,0,0,115x23,label=button for focus]
Cause:
Initial Robot action on clicking title bar of Owner frame was actually
minimizing the window(also button associated with it).
When trying to focus on the Button associated with this window, Exception was
thrown
Fix:
1. Increased window width from 200 to 300. (to ensure click on title bar
does not click the minimize button).
2. Event listeners were added after performing Robot actions, because of
which events were not handled properly.
Hence moved the addListeners code before performing Robot action.
Thanks,
Prem