RFR: 8333403: Write a test to check various components events are triggered properly [v2]
lawrence.andrews
duke at openjdk.org
Wed Jun 5 09:29:57 UTC 2024
On Wed, 5 Jun 2024 08:29:11 GMT, Ravi Gupta <rgupta at openjdk.org> wrote:
>> This testcase checks for the following assertions for Component events:
>>
>> 1. When components are resized, moved, hidden and shown the respective events are triggered.
>> 2. When the components are hidden/disabled also,the component events like resized/moved are triggered.
>> 3. When a hidden component is hidden again, or a visible component is shown again, the events should not be fired.
>> 4. When a window is minimized/restored then hidden and shown component events should be triggered.
>>
>> Testing:
>> Tested using Mach5(20 times per platform) in macos,linux and windows and got all pass.
>
> Ravi Gupta has updated the pull request incrementally with one additional commit since the last revision:
>
> 8333403: Copyright Header added
test/jdk/java/awt/event/ComponentEvent/ComponentEventTest.java line 57:
> 55: private static boolean componentShown = false;
> 56: private static boolean componentMoved = false;
> 57: private static boolean componentResized = false;
Can you add volatile to this fields
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19521#discussion_r1627354560
More information about the client-libs-dev
mailing list