test for bug 937475

--HG--
extra : transplant_source : %BC%9F%D3%7FB%A2%93%F45%0E%A7%FD%BCXK%7D%D6I%29%8C
This commit is contained in:
Karl Tomlinson 2013-12-04 14:40:38 +13:00
parent 91d1b9d3c6
commit 7b0cbc2530

View File

@ -280,6 +280,8 @@ function checkResampledBuffer(buffer, test, callback) {
var resampled = cx.createBufferSource();
resampled.buffer = buffer;
resampled.start();
// This stop should do nothing, but it tests for bug 937475
resampled.stop(test.frames / cx.sampleRate);
resampled.connect(cx.destination);
cx.oncomplete = function(e) {
ok(!bufferIsSilent(e.renderedBuffer), "Expect buffer not silent");