mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-08 18:51:35 +00:00
a_file_placed_while_idle_follows_its_changes asserts that an idle document without links asks for no frame. Its app started the real render worker, and once a frame took over 8 ms the canvas sent the next render to it. The worker asks for a repaint when it finishes, at a time the test does not control, so under heavy CPU load the asserted frame could report a repaint delay of 0 instead of none. The test now sets canvas.worker_started, as the cursor idle test does, so every frame renders on the test thread. It also dates the rewritten file 2 s after the original with File::set_times, as the opening tests do, instead of sleeping 30 ms before the write. Shipped code is unchanged.