Update web-platform-tests to revision 00fa50687cab43b660296389acad6cc48717f1d1

This commit is contained in:
WPT Sync Bot 2019-01-28 20:36:36 -05:00
parent 07d53e32c4
commit 28bbe1473c
58 changed files with 2119 additions and 360 deletions

View file

@ -3,10 +3,12 @@ let StereoPannerTest = (function() {
// Constants
let PI_OVER_TWO = Math.PI * 0.5;
let gSampleRate = 44100;
// Use a power of two to eliminate any round-off when converting frames to
// time.
let gSampleRate = 32768;
// Time step when each panner node starts.
let gTimeStep = 0.001;
// Time step when each panner node starts. Make sure this is on a frame boundary.
let gTimeStep = Math.floor(0.001 * gSampleRate) / gSampleRate;
// How many panner nodes to create for the test
let gNodesToCreate = 100;
@ -77,7 +79,7 @@ let StereoPannerTest = (function() {
// The max error we allow between the rendered impulse and the
// expected value. This value is experimentally determined. Set
// to 0 to make the test fail to see what the actual error is.
this.maxAllowedError = 1.3e-6;
this.maxAllowedError = 9.8015e-8;
// Max (absolute) error and the index of the maxima for the left
// and right channels.