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

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

Issue 2781123002: Convert ChannelMerger tests to new Audit (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/ChannelMerger/audiochannelmerger-input-non-default.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/merger-testing.js
diff --git a/third_party/WebKit/LayoutTests/webaudio/resources/merger-testing.js b/third_party/WebKit/LayoutTests/webaudio/resources/merger-testing.js
index 29c9165a684cfbdf4d7ad2025d7e9e971aa04d1b..00d72d64d2b7f1d40763caae573afebf026cf489 100644
--- a/third_party/WebKit/LayoutTests/webaudio/resources/merger-testing.js
+++ b/third_party/WebKit/LayoutTests/webaudio/resources/merger-testing.js
@@ -1,7 +1,7 @@
// This file is for the audiochannelmerger-* layout tests.
// Requires |audio-testing.js| to work properly.
-function testMergerInput(config, done) {
+function testMergerInput(should, config) {
var context = new OfflineAudioContext(config.numberOfChannels, 128, 44100);
var merger = context.createChannelMerger(config.numberOfChannels);
var source = context.createBufferSource();
@@ -15,11 +15,10 @@ function testMergerInput(config, done) {
merger.connect(context.destination);
source.start();
- context.startRendering().then(function (buffer) {
+ return context.startRendering().then(function (buffer) {
let prefix = config.testBufferContent.length + '-channel source: ';
for (var i = 0; i < config.numberOfChannels; i++)
- Should(prefix + 'Channel #' + i, buffer.getChannelData(i))
+ should(buffer.getChannelData(i), prefix + 'Channel #' + i)
.beConstantValueOf(config.expected[i]);
- done();
});
}
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/ChannelMerger/audiochannelmerger-input-non-default.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698