Skip to content

Truly independent web browser

675 B
Raw Blame
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
    promiseTest(async () => {
        // Once the ctor‑offlineaudiocontext WPT test is updated to check
        // renderQuantumSize and renderSizeHint, this test is not needed.
        const audioContext = new OfflineAudioContext(1, 1, 44100)
        println(`${audioContext.renderQuantumSize}`);

        // Second call must reject with InvalidStateError
        await audioContext.startRendering();

        try {
            await audioContext.startRendering();
            println('FAIL: started rendering on repeated call');
        } catch (e) {
            println(`${e}`);
        }
    });
</script>