Idle test: playing repaints at the adaptive meter rate from #207
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1c52ad1c6e
commit
f855836af1
|
|
@ -21,7 +21,8 @@ fn only_a_shown_window_animates_and_a_hidden_one_wakes_once_a_second() {
|
|||
}
|
||||
assert_ne!(pass(&ctx, &mut app, true), Duration::ZERO);
|
||||
app.run("transport.play", serde_json::json!({})).unwrap();
|
||||
assert_eq!(pass(&ctx, &mut app, true), Duration::ZERO);
|
||||
// Playing repaints at the meter rate (30 Hz in the Edit window, #207).
|
||||
assert!(pass(&ctx, &mut app, true) <= Duration::from_millis(34));
|
||||
pass(&ctx, &mut app, false);
|
||||
assert!((pass(&ctx, &mut app, false).as_secs_f64() - 1.0).abs() < 1e-3);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue