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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/constructor/new-audionodeoptions.js

Issue 2859193003: Convert constructor/iirfilter.html to new Audit (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
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/constructor/iirfilter.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/constructor/new-audionodeoptions.js
diff --git a/third_party/WebKit/LayoutTests/webaudio/constructor/new-audionodeoptions.js b/third_party/WebKit/LayoutTests/webaudio/constructor/new-audionodeoptions.js
index fd999e400f5e62dba7ee6df1bec41461ce334873..1db057cbef91dc41363673123e16349e01ae24ea 100644
--- a/third_party/WebKit/LayoutTests/webaudio/constructor/new-audionodeoptions.js
+++ b/third_party/WebKit/LayoutTests/webaudio/constructor/new-audionodeoptions.js
@@ -190,12 +190,17 @@ function testInvalidConstructor(should, name, context) {
function testDefaultConstructor(should, name, context, options) {
let node;
+ let message = options.prefix + ' = new ' + name + '(context';
+ if (options.constructorOptions)
+ message += ', ' + JSON.stringify(options.constructorOptions);
+ message += ')'
+
should(() => {
- node = new window[name](context);
- }, options.prefix + ' = new ' + name + '(context)').notThrow();
+ node = new window[name](context, options.constructorOptions);
+ }, message).notThrow();
+
should(node instanceof window[name], options.prefix + ' instanceof ' + name)
.beEqualTo(true);
-
should(node.numberOfInputs, options.prefix + '.numberOfInputs')
.beEqualTo(options.numberOfInputs);
should(node.numberOfOutputs, options.prefix + '.numberOfOutputs')
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/constructor/iirfilter.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698