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

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

Issue 2895963003: Apply layout-test-tidy to LayoutTests/webaudio (Closed)
Patch Set: Created 3 years, 7 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
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 00d72d64d2b7f1d40763caae573afebf026cf489..4477ec0a1fc2a80dcd88044d8eb015341594360d 100644
--- a/third_party/WebKit/LayoutTests/webaudio/resources/merger-testing.js
+++ b/third_party/WebKit/LayoutTests/webaudio/resources/merger-testing.js
@@ -2,9 +2,9 @@
// Requires |audio-testing.js| to work properly.
function testMergerInput(should, config) {
- var context = new OfflineAudioContext(config.numberOfChannels, 128, 44100);
- var merger = context.createChannelMerger(config.numberOfChannels);
- var source = context.createBufferSource();
+ let context = new OfflineAudioContext(config.numberOfChannels, 128, 44100);
+ let merger = context.createChannelMerger(config.numberOfChannels);
+ let source = context.createBufferSource();
source.buffer = createConstantBuffer(context, 128, config.testBufferContent);
// Connect the output of source into the specified input of merger.
@@ -15,10 +15,10 @@ function testMergerInput(should, config) {
merger.connect(context.destination);
source.start();
- return 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++)
+ for (let i = 0; i < config.numberOfChannels; i++)
should(buffer.getChannelData(i), prefix + 'Channel #' + i)
- .beConstantValueOf(config.expected[i]);
+ .beConstantValueOf(config.expected[i]);
});
}

Powered by Google App Engine
This is Rietveld 408576698