RFR: 8354219 : Automate javax/swing/JComboBox/ComboPopupBug.java [v2]

Anass Baya abaya at openjdk.org
Tue Apr 15 13:50:01 UTC 2025


> This test was designed to manually verify that clicking on the JComboBox when the frame containing it is about to close does not cause an IllegalStateException.
> 
> The test allowed the tester extra time to click on the JComboBox when closing the frame by adding a Thread.sleep() in the close button handler.
> 
> In this test, a JComboBox is displayed with a Close button at the bottom. The tester should click the Close button, then try to click the JComboBox arrow button to display the popup.
> 
> In the automated test, we save the JComboBox  location size before closing the frame. We then use this information to click on the JComboBox right before the frame is closed.

Anass Baya has updated the pull request incrementally with one additional commit since the last revision:

  Use Robot class
  Update copyright
  get comboBox size and location under the EDT

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/24624/files
  - new: https://git.openjdk.org/jdk/pull/24624/files/58ea5fa5..740c890c

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=24624&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24624&range=00-01

  Stats: 17 lines in 1 file changed: 4 ins; 1 del; 12 mod
  Patch: https://git.openjdk.org/jdk/pull/24624.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24624/head:pull/24624

PR: https://git.openjdk.org/jdk/pull/24624


More information about the client-libs-dev mailing list