Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
test(timeline): cover overlapping same-kind audio tracks
EtienneLescot83c5badffe27
diff --git a/src/lib/ai-edition/document/audioTracks.test.ts b/src/lib/ai-edition/document/audioTracks.test.tsindex 4e13f99bf..25702630a 100644--- a/src/lib/ai-edition/document/audioTracks.test.ts+++ b/src/lib/ai-edition/document/audioTracks.test.ts@@ -384,4 +384,10 @@ describe("computeAudioRowCount", () => {const bgm2 = track({ id: "bgm2", kind: "music", startMs: 6000, endMs: 10000 });expect(computeAudioRowCount([bgm1, bgm2])).toBe(1);});++ it("stacks overlapping tracks of the same kind on 2 rows", () => {+ const bgm1 = track({ id: "bgm1", kind: "music", startMs: 0, endMs: 5000 });+ const bgm2 = track({ id: "bgm2", kind: "music", startMs: 3000, endMs: 8000 });+ expect(computeAudioRowCount([bgm1, bgm2])).toBe(2);+ });});