Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: third_party/WebKit/LayoutTests/webaudio/resources/waveshaper-testing.js

Issue 2766253002: Remove one more task.describe call (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/resources/audit.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/resources/audit.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698