Bug 888271 - Make test_AudioBufferSourceNodeOffset.html fuzzier.

This commit is contained in:
Paul Adenot 2013-07-10 15:03:19 +02:00
parent a375acc424
commit 4392f23f11

View File

@ -31,7 +31,7 @@ addLoadEvent(function() {
// The timing at which the audioprocess and ended listeners are called can
// change, hence the fuzzy equal here.
var errorRatio = samplesFromSource / (0.5 * context.sampleRate);
ok(errorRatio > 0.95 && errorRatio < 1.05,
ok(errorRatio > 0.70 && errorRatio < 1.3,
"Correct number of samples received (expected: " +
(0.5 * context.sampleRate) + ", actual: " + samplesFromSource + ").");
SimpleTest.finish();