autoAdvance

abstract var autoAdvance: Boolean

Whether ComposeSwingTest.awaitIdle sends frames on its own to reach idle. true by default.

Set to false to take over: ComposeSwingTest.awaitIdle then drains pending recomposition, snapshot and event-dispatch-thread work without producing a frame, leaving a coroutine parked in withFrameNanos - an animation, for instance - suspended until advanceTimeByFrame or advanceTimeBy sends one.

This also governs ComposeSwingTest.setContent's own initial settle, which depends on it the same way: turning this off before the first ComposeSwingTest.setContent call leaves a frame-driven effect started from initial composition parked from the very start, with nothing composed off it until a frame is sent explicitly.