RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v2]
Alexey Ivanov
aivanov at openjdk.org
Wed Mar 13 15:54:17 UTC 2024
On Tue, 12 Mar 2024 19:37:55 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:
>> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision:
>>
>> minor formatting
>
> test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1338:
>
>> 1336: if (panelCreator != null) {
>> 1337: if (splitUI && (testWindows != null || windowListCreator != null)) {
>> 1338: // TODO Is it required? We can support both
>
> @aivanov-jdk please note, I am going to remove this check, it looks artificial to me.
>
> In this test I added a JTextArea to display logs and messages.
> It looks like we could add similar functionality to PassFailJFrame (outside the scope of this issue, of course).
@azvegint, yes, we can support both. But I didn't test it thoroughly, so I decided it was safer to add this.
Please, don't modify `PassFailJFrame` together with tests unless it's strictly required… It is for the sake of facilitating backporting the changes. Otherwise, backporting improvements to the framework will depend on the presence of a test.
In this case, it could be fine though… provided that the test you're updating exists in all the repos.
Either way, I think it's good to create a separate bug for `PassFailJFrame` which you'll resolve with the current one.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1523522304
More information about the client-libs-dev
mailing list