diff options
Diffstat (limited to 'src/host/timeline.zig')
| -rw-r--r-- | src/host/timeline.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/host/timeline.zig b/src/host/timeline.zig index 8a5448a..b52c74d 100644 --- a/src/host/timeline.zig +++ b/src/host/timeline.zig @@ -295,6 +295,7 @@ test "frames are whole: input waits for its tick, live and in playback" { try t.capture(&frame); // Live update sees the recorded times. try std.testing.expectEqual(@as(u64, k * 10_000_000 + 5_000_000), frame[1].time); + try std.testing.expectEqual(abi.Event.tick(0, 16_666_667).tickDt(), frame[1].tickDt()); } const r = t.bank.recording(0); r.events[r.count] = .{ .kind = .mouse_move, .time = 40_000_000 }; @@ -313,6 +314,7 @@ test "frames are whole: input waits for its tick, live and in playback" { var it = frames(events); while (it.next()) |frame| { try std.testing.expectEqual(@as(usize, 2), frame.len); + try std.testing.expectEqual(abi.Event.tick(0, 16_666_667).tickDt(), frame[1].tickDt()); delivered += 1; } } |
