gecko-dev/dom/media/test/crashtests/buffer-source-ended-1.html

17 строки
450 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<script>
var context = new AudioContext();
var source = context.createBufferSource();
source.buffer = context.createBuffer(1, 2.0 * context.sampleRate, context.sampleRate);
source.onended = function(e) {
document.documentElement.removeAttribute("class");
}
source.start(0.0, 1.0);
setTimeout(
function() {
source.buffer = context.createBuffer(1, 1, context.sampleRate);
}, 0);
</script>