1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/media/test/crashtests/offline-buffer-source-ended-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 +<script> 1.7 +// Currently this test fails unless an extra block is processed after the 1.8 +// BufferSource finishes. 12033 ≡ 1 (mod 128), but the test should pass even 1.9 +// when only 12001 samples are processed. 1.10 +var context = new window.OfflineAudioContext(1, 12033, 12000); 1.11 + 1.12 +var source = context.createBufferSource(); 1.13 +source.buffer = context.createBuffer(1, 12000, context.sampleRate); 1.14 +source.onended = function(e) { 1.15 + document.documentElement.removeAttribute("class"); 1.16 +} 1.17 +source.connect(context.destination); 1.18 +source.start(0); 1.19 + 1.20 +context.startRendering(); 1.21 +</script>