| Index: third_party/WebKit/LayoutTests/webaudio/resources/waveshaper-testing.js
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/resources/waveshaper-testing.js b/third_party/WebKit/LayoutTests/webaudio/resources/waveshaper-testing.js
|
| index b8b866fb85ce9d41c7dea99edba64ac38a987782..4d9c88111cf1f51353bf17be809de6915424b306 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/resources/waveshaper-testing.js
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/resources/waveshaper-testing.js
|
| @@ -139,16 +139,20 @@ function runWaveShaperOversamplingTest(testParams) {
|
|
|
| let audit = Audit.createTaskRunner();
|
|
|
| - audit.define("test", function (task, should) {
|
| - task.describe(testParams.description);
|
| + audit.define({
|
| + label: "test",
|
| + description: testParams.description
|
| + }, function (task, should) {
|
|
|
| // Create offline audio context.
|
| var numberOfRenderFrames = sampleRate * lengthInSeconds;
|
| - context = new OfflineAudioContext(1, numberOfRenderFrames, sampleRate);
|
| + context = new OfflineAudioContext(1, numberOfRenderFrames,
|
| + sampleRate);
|
|
|
| // source -> waveshaper -> destination
|
| var source = context.createBufferSource();
|
| - source.buffer = createToneBuffer(context, fundamentalFrequency, lengthInSeconds, 1);
|
| + source.buffer = createToneBuffer(context, fundamentalFrequency,
|
| + lengthInSeconds, 1);
|
|
|
| // Apply a non-linear distortion curve.
|
| waveshaper = context.createWaveShaper();
|
| @@ -163,7 +167,7 @@ function runWaveShaperOversamplingTest(testParams) {
|
| context.startRendering()
|
| .then(buffer => checkShapedCurve(buffer, should))
|
| .then(() => task.done());
|
| - });
|
| + });
|
|
|
| audit.run();
|
| }
|
|
|