RFR: 8327478: Add System test to verify TextSelection issue for webkit-617.1 [v3]
Andy Goryachev
angorya at openjdk.org
Tue Mar 4 15:41:09 UTC 2025
On Mon, 3 Mar 2025 11:53:34 GMT, Gopal Pattnaik <duke at openjdk.org> wrote:
>> tests/system/src/test/java/test/robot/javafx/web/TextSelectionTest.java line 97:
>>
>>> 95:
>>> 96: int x = (int)(scene.getWindow().getX() + scene.getX() + 22);
>>> 97: int y = (int)(scene.getWindow().getY() + scene.getY() + 15);
>>
>> can these offsets (22, 15) be measured instead of hard-coded?
>
> We are not getting the text area from web view. This point is used to simulate the mouse click.
so they are arbitrary, and will work for every font size?
(The default font size varies depending on the platform and other circumstances, see `PrismFontFactory::getSystemFontSize()` - though I am not sure if the default font size is picked up by the `WebView`.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1719#discussion_r1979709600
More information about the openjfx-dev
mailing list