Fix MIST gallery scene controls, video positioning and audio overlap
CI / frontend (push) Failing after 20s
CI / backend (push) Failing after 36s

This commit is contained in:
mrleo1nid committed 2026-10-27 16:14:13 +03:00
1 parent 19924e1c5a
commit 4dc660f786
10 files changed
+197 -12

No files matched your search

+13
View File
@@ -93,6 +93,19 @@ test("outgoing tracks also obey the mixer during crossfade", () => {
assert.equal(elements[0].paused, true);
});
test("rapid crossfades keep only the current track and its immediate predecessor", () => {
const audio = system();
audio.play("sound", ["effect"], {});
for (const file of ["one", "two", "three", "four"]) {
audio.play("music", [file], { fadeout: 2, fadein: 2 });
tick(100);
}
assert.deepEqual(elements.filter(el => !el.paused).map(el => el.src), ["effect", "three", "four"]);
audio.stop("music");
assert.deepEqual(elements.filter(el => !el.paused).map(el => el.src), ["effect"]);
assert.equal(frames.size, 0);
});
test("stopping during fade-in cancels the old animation", () => {
const audio = system();
audio.play("music", ["track"], { fadein: 2 });