On Wed, 7 May 2025 18:45:37 GMT, Thiago Milczarek Sayao <tsa...@openjdk.org> 
wrote:

>> tests/system/src/test/java/test/robot/javafx/stage/StageOwnershipTest.java 
>> line 436:
>> 
>>> 434:                 stage2::show,
>>> 435:                 stage2::close,
>>> 436:                 () -> assertTrue(stage1.isFocused()));
>> 
>> This test looks incorrect. If closing an app modal window should focus the 
>> parent (and I think it should) then stage0 should be focused.
>
> But `stage1` is the owner of `stage2`

When stage2 is created you pass in stage0 as the owner, not stage1.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1789#discussion_r2078371628

Reply via email to