mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
ddaab5d1c5
--HG-- extra : transplant_source : %0B%0C%93%05k%3F%3A%AEfT9%C9u%8D%C5pa%9F%11%0D
19 lines
600 B
HTML
19 lines
600 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<script>
|
|
// Currently this test fails unless an extra block is processed after the
|
|
// BufferSource finishes. 12033 ≡ 1 (mod 128), but the test should pass even
|
|
// when only 12001 samples are processed.
|
|
var context = new window.OfflineAudioContext(1, 12033, 12000);
|
|
|
|
var source = context.createBufferSource();
|
|
source.buffer = context.createBuffer(1, 12000, context.sampleRate);
|
|
source.onended = function(e) {
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
source.connect(context.destination);
|
|
source.start(0);
|
|
|
|
context.startRendering();
|
|
</script>
|