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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/constructor/audionodeoptions.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/constructor/audionodeoptions.js
diff --git a/third_party/WebKit/LayoutTests/webaudio/constructor/audionodeoptions.js b/third_party/WebKit/LayoutTests/webaudio/constructor/audionodeoptions.js
index 1db057cbef91dc41363673123e16349e01ae24ea..083a286af5e2afa715e2dd2ff9644b46cd994c08 100644
--- a/third_party/WebKit/LayoutTests/webaudio/constructor/audionodeoptions.js
+++ b/third_party/WebKit/LayoutTests/webaudio/constructor/audionodeoptions.js
@@ -73,9 +73,11 @@ function testAudioNodeOptions(should, context, nodeName, expectedNodeOptions) {
channelCountMode: testChannelCountMode
}));
},
- 'new ' + nodeName + '(c, {channelCountMode: "' + testChannelCountMode + '"}')
+ 'new ' + nodeName + '(c, {channelCountMode: "' + testChannelCountMode +
+ '"}')
.notThrow();
- should(node.channelCountMode, 'node.channelCountMode').beEqualTo(testChannelCountMode);
+ should(node.channelCountMode, 'node.channelCountMode')
+ .beEqualTo(testChannelCountMode);
if (expectedNodeOptions.channelCountMode &&
expectedNodeOptions.channelCountMode.isFixed) {
@@ -85,7 +87,8 @@ function testAudioNodeOptions(should, context, nodeName, expectedNodeOptions) {
'clamped-max': 'explicit',
'explicit': 'max'
};
- testChannelCountMode = testChannelCountModeMap[expectedNodeOptions.channelCountMode.value];
+ testChannelCountMode =
+ testChannelCountModeMap[expectedNodeOptions.channelCountMode.value];
should(
() => {
node = new window[nodeName](
@@ -94,7 +97,8 @@ function testAudioNodeOptions(should, context, nodeName, expectedNodeOptions) {
{}, expectedNodeOptions.additionalOptions,
{channelCountMode: testChannelCountMode}));
},
- 'new ' + nodeName + '(c, {channelCountMode: "' + testChannelCountMode + '"}')
+ 'new ' + nodeName + '(c, {channelCountMode: "' + testChannelCountMode +
+ '"}')
.throw(expectedNodeOptions.channelCountMode.errorType);
} else {
// Mode is not fixed. Verify that we can set the mode to all valid

Powered by Google App Engine
This is Rietveld 408576698