mirror of
https://github.com/got-feedBack/feedBack.git
synced 2026-08-13 04:09:26 +00:00
Clean release snapshot
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
const { test } = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
const { loadAudioSession, runBrowserScript, installMixerDom } = require('./audio_session_test_harness');
|
||||
|
||||
test('Stems master-volume compatibility bridge hit is attributed through audio session', async () => {
|
||||
const window = loadAudioSession();
|
||||
const calls = [];
|
||||
installMixerDom(window);
|
||||
window.slopsmith.stems = { setMasterVolume(value) { calls.push(value); } };
|
||||
|
||||
runBrowserScript(window, 'static/audio-mixer.js');
|
||||
await window.slopsmith.audio.applySongVolume(50);
|
||||
|
||||
const snapshot = window.slopsmith.audioSession.snapshot();
|
||||
assert.deepEqual(calls, [0.5]);
|
||||
assert.equal(snapshot.domains.stems.bridges.some(bridge => bridge.bridgeId === 'stems.master-volume'), true);
|
||||
assert.equal(window.slopsmith.capabilities.snapshotDiagnostics().compatibilityShims.some(shim => shim.shimId === 'stems.master-volume' && shim.hitCount >= 1), true);
|
||||
});
|
||||
Reference in New Issue
Block a user