On Wed, 8 Nov 2023 18:53:42 GMT, Kevin Rushforth <k...@openjdk.org> wrote:

>> Johan Vos has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Add a system test
>
> tests/system/src/test/java/test/javafx/stage/SystemMenuBarTest.java line 145:
> 
>> 143:         stage.show();
>> 144:         stage.requestFocus();
>> 145:         Thread t = new Thread(){
> 
> Question: Since you do all the work in a `Platform.runLater`, is this thread 
> needed?

That's a good question. I do this because we start the test on the FX Thread, 
but I want to add/remove the menuItems one by one, giving time for a `pulse` in 
between them. If we do the 50 runs inside a single Runnable, without the 
possibility for the FX Thread to do other work, the result can be different 
compared to what we do when doing this in small runnables. 
But I might be missing something here?

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1277#discussion_r1387715251

Reply via email to