mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
e4e70cf83e
--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>
|