RFR: 8271205: [windows] Intermittent test failure in test.javafx.scene.web.MiscellaneousTest::testDOMTimer

Ajit Ghaisas aghaisas at openjdk.org
Thu Sep 18 11:21:09 UTC 2025


On Wed, 17 Sep 2025 02:40:43 GMT, Jay Bhaskar <jbhaskar at openjdk.org> wrote:

> Issue: [windows] Intermittent test failure in test.javafx.scene.web.MiscellaneousTest::testDOMTimer
> Analysis:
> setTimeout call is not a real-time function. it is considered just a minimum delay before the callback is executed. The actual time taken depends
> 
> How long it takes to process any messages ahead of the already task in the queue?
> Current load on the CPU.
> The number of tasks being executed by the JS engine.
> current state of OS/Browser.
> However, we have to set a minimum timeout value of at least 10 ms, as recommended by Webkit/w3c. Setting value of 1o ms might prevent some un-defined behavior.

modules/javafx.web/src/test/java/test/javafx/scene/web/MiscellaneousTest.java line 193:

> 191:             for (int i = 0; i < timer.INTERVAL_COUNT; i++) {
> 192:                 int timeout = i * (1000 / timer.INTERVAL_COUNT);
> 193:                 // Webkit recomends minimum timeout value should be 10

Please correct the typo : recomends --> recommends

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1907#discussion_r2358670865


More information about the openjfx-dev mailing list