| Index: third_party/WebKit/LayoutTests/webaudio/mixing.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/mixing.html b/third_party/WebKit/LayoutTests/webaudio/mixing.html
|
| index 6c7967cb046c79f43b7ec0b714625f7e05403ff3..3f3f047bb67ec5084d71dc90e5a3c952114d79dd 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/mixing.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/mixing.html
|
| @@ -68,10 +68,12 @@ function runTest(context, bufferList, should, testThresholds) {
|
| should(bufferList[1].numberOfChannels, 'Number of channels in mono source')
|
| .beEqualTo(1);
|
|
|
| - return context.startRendering().then(verifyResult);
|
| + return context.startRendering().then(audioBuffer => {
|
| + verifyResult(audioBuffer, context, bufferList, testThresholds, should);
|
| + });
|
| }
|
|
|
| -function verifyResult(renderedBuffer) {
|
| +function verifyResult(renderedBuffer, context, bufferList, testThresholds, should) {
|
| // Test only works if we have a stereo result.
|
| should(
|
| renderedBuffer.numberOfChannels, 'Number of channels in rendered output')
|
|
|