forge
Explore
Log in

Don't you dare go Hollow

Restore the playhead's own scene assertion

Browse files at this commit

734c321c676e18db3c4724c4ba9300ced1d9ed57Ahmet Kaan GümüşParent: 5832d81
  • test
    • restore the playhead's own scene assertion
Show full message
✅ test(engine): restore the playhead's own scene assertion

The probe teardown dropped the commit path's assertions by accident;
the live path's stayed and passed, which is why nothing went red. Back
in: the same source frame under the playhead after the write, and the
minute moved with it.
crates/engine/tests/speed.rsmodified+3 -0
@@ -400,6 +400,7 @@ fn a_2x_clip_keeps_the_beeps_pitch() {
400 );400 );
401 }401 }
402 402
403+
403 /// The playhead follows the re-rate: the source frame under it is the same404 /// The playhead follows the re-rate: the source frame under it is the same
404 /// frame after the write (the scene does not change with the rate), through405 /// frame after the write (the scene does not change with the rate), through
405 /// the real session doors -- commit and the live samples of a drag both.406 /// the real session doors -- commit and the live samples of a drag both.
@@ -416,6 +417,8 @@ fn the_playhead_follows_the_re_rate() {
416 .expect("room for it");417 .expect("room for it");
417 let now = session.now();418 let now = session.now();
418 let after = session.video_source_frame_at(now);419 let after = session.video_source_frame_at(now);
420+ assert_eq!(before, after, "the same source frame is under the playhead");
421+ assert!((now - 1.0).abs() < 2.0 / FPS, "and the minute moved to {now}");
419 // The live path keeps it across the whole gesture: two samples of a drag422 // The live path keeps it across the whole gesture: two samples of a drag
420 // leave the same frame playing, not the one the rate walked past.423 // leave the same frame playing, not the one the rate walked past.
421 session424 session