crashtest for bug 1020370 r=padenot

This commit is contained in:
Karl Tomlinson 2015-10-16 09:59:48 +13:00
parent 9b2a92cd0e
commit cefc41986c
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html class="reftest-wait">
<script>
const rate = 44101; // not divisible by 2
var context = new window.OfflineAudioContext(1, 512, rate);
var buffer = context.createBuffer(1, 128, rate);
buffer.getChannelData(0)[0] = 1.0;
var source = context.createBufferSource();
source.buffer = buffer;
source.playbackRate.value = rate / (Math.pow(2, 30) * 1.0000001);
source.start(512 / rate);
context.startRendering().
then(function() {
document.documentElement.removeAttribute("class");
});
</script>

View File

@ -84,6 +84,7 @@ load 1185192.html
load analyser-channels-1.html
load audiocontext-double-suspend.html
load buffer-source-ended-1.html
load buffer-source-resampling-start-1.html
load doppler-1.html
HTTP load media-element-source-seek-1.html
load offline-buffer-source-ended-1.html