gecko/content/media/test/crashtests/buffer-source-ended-1.html
Karl Tomlinson eaca594bbb b=967992 test to check for ended event when source buffer is replaced with another shorter than offset
--HG--
extra : transplant_source : -HA%5D%8E%10%1B%14%E8%E2A%9Al%CF%A5d%7D%A3%9B%A1
2014-02-06 08:29:12 +13:00

17 lines
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>