RFR: 8190264: JScrollBar ignores its border when using macOS Mac OS X Aqua look and feel [v4]

Alisen Chung achung at openjdk.java.net
Fri Nov 19 21:40:17 UTC 2021


On Fri, 19 Nov 2021 20:01:20 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   added summary and copyright
>
> test/jdk/java/awt/Scrollbar/AquaLFScrollbarTest/ScrollBarBorderTest.java line 114:
> 
>> 112:                 = "\nINSTRUCTIONS:\n"
>> 113:                 + "\n   Try to drag the thumb of the scrollbar into the red zone."
>> 114:                 + "\n   If the thumb is able to go into the red zone, click fail."
> 
> If you place the thumb to the red zone by the code, will it be possible to check that by pixel color?

Just updated the automation. I added a robot to try to move the thumb into the red zone, then had the robot click again to see if the thumb is under the cursor. If the behavior is correct, the thumb should have stopped before entering the red zone and scrollbar mouseListener should only detect 1 click. Otherwise it will detect 2 clicks (thumb is under cursor) and test fails. Is my logic correct?

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

PR: https://git.openjdk.java.net/jdk/pull/6374



More information about the client-libs-dev mailing list