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

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

Issue 2804633004: Convert Oscillator tests to new Audit (Closed)
Patch Set: Address review comments Created 3 years, 8 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/Oscillator/oscillator-late-start.html ('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/late-start-testing.js
diff --git a/third_party/WebKit/LayoutTests/webaudio/resources/late-start-testing.js b/third_party/WebKit/LayoutTests/webaudio/resources/late-start-testing.js
index 49baebb7e21f682b4e377604bc66f2d0f032102c..2d6dc0b08038da72329e45084d5203a197c728e2 100644
--- a/third_party/WebKit/LayoutTests/webaudio/resources/late-start-testing.js
+++ b/third_party/WebKit/LayoutTests/webaudio/resources/late-start-testing.js
@@ -13,7 +13,7 @@ function runLateStartTest(audit, context, node) {
node.connect(context.destination);
// Task: schedule a suspend and start rendering.
- audit.defineTask('test-late-start', function (done) {
+ audit.define('test-late-start', (task, should) => {
// The node's start time will be clamped to the render quantum boundary
// >0.1 sec. Thus the rendered buffer will have non-zero frames.
// See issue: crbug.com/462167
@@ -35,17 +35,13 @@ function runLateStartTest(audit, context, node) {
}
}
- var success =
- Should('The index of first non-zero value',nonZeroValueIndex)
+ should(nonZeroValueIndex, 'The index of first non-zero value')
.notBeEqualTo(-1);
- success = Should('The first sample value', channelData[0])
- .beEqualTo(0) && success;
- Should('The rendered buffer', success)
- .summarize('contains non-zero values after the first sample',
- 'was all zeros or has non-zero first sample.');
- done();
+ should(channelData[0], 'The first sample value')
+ .beEqualTo(0);
+ task.done();
});
});
- audit.runTasks();
+ audit.run();
}
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-late-start.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698