RFR: 8330462: StringIndexOutOfBoundException when typing anything into TextField [v25]
Oliver Kopp
duke at openjdk.org
Thu May 2 23:35:12 UTC 2024
On Thu, 2 May 2024 10:03:46 GMT, Ambarish Rapte <arapte at openjdk.org> wrote:
> 1. The test does not compile without fix, hence it won't fail without fix as we are only testing the newly added helper method.
Yes, we could not build on existing a11y test.
> 2. It is not required to change the error stream, as the test does/need not inspect the error output.
Nice!
> 3. The test method and parameter source method names can be changed a little.
Note that `@MethodSoruce` can be used without any parameter - then the same name is used. OK, this is not the style of JFX.
For JUnit5, the `test` prefix is not necessary any more (and can be removed - see https://docs.openrewrite.org/recipes/java/testing/cleanup/removetestprefix), but I think, because of consistency, it is kept.
> 4. We should use the Util class for standard setup like initializing JavaFX/ shutting it down.
Nice!
> I tried above changes to test locally, attaching the file for ease. [WinTextRangeProviderTest.zip](https://github.com/openjdk/jfx/files/15186626/WinTextRangeProviderTest.zip)
Thank you. I committed at d03bdd40a3340bd85397f (with you as author, hope this is in line with the policies?!).
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1442#issuecomment-2091906463
More information about the openjfx-dev
mailing list