[jfx-tests] RFR: 8316097: Some Scenegraph/richtext tests fail due to IllegalStateException
Ambarish Rapte
arapte at openjdk.org
Fri Sep 15 08:36:47 UTC 2023
On Tue, 12 Sep 2023 10:33:07 GMT, Ajit Ghaisas <aghaisas at openjdk.org> wrote:
> test/scenegraph/richtext/RichTextLabeledsTest.java
> test/scenegraph/richtext/RichTextMixedTest.java
> test/scenegraph/richtext/RichTextRectangleTest.java
> test/scenegraph/richtext/RichTextTextTest.java
>
> These tests were failing with - java.lang.IllegalStateException: This operation is permitted on the event thread only; currentThread = Time-limited test. They are fixed with a change to single file `RichTextPropertiesApp.java`
>
> Another test - test/scenegraph/richtext/RichTextSpecSymbTest.java - was failing due to NPE. Added a null check to fix it.
functional/SceneGraphTests/src/test/scenegraph/richtext/RichTextPropertiesApp.java line 256:
> 254: }
> 255: });
> 256: }
minor : can be replaced with a lambda:
PlatformImpl.runAndWait(() -> textFlowPage.addTextFlow.requestFocus());
-------------
PR Review Comment: https://git.openjdk.org/jfx-tests/pull/9#discussion_r1326983167
More information about the openjfx-dev
mailing list