On Thu, 24 Feb 2022 09:26:48 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

>> DamonGuy has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Fixed incomplete comment.
>
> test/jdk/javax/swing/JButton/HtmlButtonImageTest/HtmlButtonImageTest.java 
> line 85:
> 
>> 83:         robot.mouseMove(frame.getLocationOnScreen().x, 
>> frame.getLocationOnScreen().y);
>> 84:         robot.mouseMove(button.getLocationOnScreen().x, 
>> button.getLocationOnScreen().y);
>> 85: 
> 
> I guess there is no need of this staggard mouseMove. One can move straight to 
> "point" as done below, right?

There's no need for `mouseMove` at all. However, it helps to analyse the image 
visually whether the red square is centered in the button or not.

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

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

Reply via email to