Files
ladybird/Tests/LibWeb/Text/input/WebAudio/OfflineAudioContext.html
Ben Eidson 01947ded23 LibWeb/WebAudio: Implement basic startRendering
Adds passing WPT. Does not handle actually rendering audio yet.
2025-10-26 14:19:21 +01:00

23 lines
692 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
asyncTest(async done => {
// Once the ctorofflineaudiocontext 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}`);
}
done();
});
</script>