JDK-8210994 : Create test for SwingSet3 FrameDemo
  • Type: Task
  • Component: client-libs
  • Sub-Component: javax.swing
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2018-09-21
  • Updated: 2019-12-21
  • Resolved: 2018-09-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 12
11.0.7-oracleFixed 12 b14Fixed
Description
Scenarios to automate: 

1. Asserts the visibility of internal frame 
2. Add action listener for button "Toolbr Button" and check the action is happening or not 
3. Get the menu bar and asserts menu and menu item count, and its names 
4. Add actions to menu items and check the action is happening or not by selecting menus 
5. Asserts the added labels are exists or not 
We could also assert the color of the blue interior of the frame. 
7. Iconify the frame and asserts the iconified status 
8. Deiconify the frame and asserts the iconified status 
9. Maximize the frame and asserts the frame status 
10. Resize to the frame to original size and asserts the status 
I'd rather put three things here: 
10a. Restore original size of the frame 
10b. Resize the frame 
10c. Move the frame 
11. Close the frame and asserts the visibility of the frame. 
12. Press "Show JFrame" button and asserts the visibility of the frame. 
13. Tick "Frame busy" check box and asserts the visibility of frame glass pane and type of the cursor 
14. Untick "Frame busy" check box and asserts the visibility of frame glass pane and type of the cursor 
We could also assert that pressing "Show JFrame" when it is already shown doesn't open new frame. 
Comments
Fix request (11u) I would like to downport this for parity with 11.0.7-oracle. Applies clean.
20-12-2019