RFR: 8330462: StringIndexOutOfBoundException when typing anything into TextField
Oliver Kopp
duke at openjdk.org
Thu Apr 18 18:00:04 UTC 2024
On Thu, 18 Apr 2024 15:17:54 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
> I'd like to see a test, if possible.
Where can I find hints on this? I would use TestFX, fire up some minimal app and try to hit the branches of WinTextRangeProvider. However, I did not find TestFX as used. And there is no `javafx.graphics/src/test/java/test/com/sun/glass/ui/win`. There is also no `javafx.graphics/src/test/java/test/com/sun/javafx/scene/control` for testing a TextField.
I assume, I need to create some class in `test.javafx.scene.input`?
Based on my experience, I would create a test for `WinTextRangeProvider` directly and supply some values to it to check that the "right" branches are covered.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1442#issuecomment-2064759752
More information about the openjfx-dev
mailing list