On Thu, 22 Feb 2024 05:50:11 GMT, Tejesh R <[email protected]> wrote:

> The test can be converted to automatic by comparing the captured scroll area 
> before MousePress and between MousePress and Release events.

I agree, the test can be automatic. Grab the thumb with robot and move to the 
right edge. Without releasing the left mouse button¹, create a multiresolution 
screenshot to get all the pixels without scaling the image down. The background 
of the scrollbar on the captured screenshot should not contain darker pixels.

¹ After you release the mouse button, the position of the thumb is adjusted, 
and the entire scrollbar is repainted. At which point, the leftover darker 
lines disappear from the scrollbar background.

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

PR Comment: https://git.openjdk.org/jdk/pull/17484#issuecomment-1983889766

Reply via email to