RFR: 8341984: Use PassFailJFrame for TimeChangeButtonClickTest.java

Alexey Ivanov aivanov at openjdk.org
Fri Oct 11 18:52:25 UTC 2024


Refactor the test `javax/swing/JButton/TimeChangeButtonClickTest.java` to use the `PassFailJFrame` framework to handle the tester's decision on whether the test passes or fails.

I reformatted the instructions for performing the test into HTML.

I preserved the test UI panel which contains the button to press and the label with button press counter.

The updated test is shorter by nearly 100 lines.

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

Commit messages:
 - 8341984: Use PassFailJFrame for TimeChangeButtonClickTest.java

Changes: https://git.openjdk.org/jdk/pull/21476/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21476&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8341984
  Stats: 175 lines in 1 file changed: 11 ins; 105 del; 59 mod
  Patch: https://git.openjdk.org/jdk/pull/21476.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21476/head:pull/21476

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


More information about the client-libs-dev mailing list