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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/constructor/oscillator.html

Issue 2760353002: Define default values for options dictionaries for WebAudio (Closed)
Patch Set: Rebase 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
Index: third_party/WebKit/LayoutTests/webaudio/constructor/oscillator.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/constructor/oscillator.html b/third_party/WebKit/LayoutTests/webaudio/constructor/oscillator.html
index a7b8332e0e91034443e77619a8b969efcdc8aed1..7d9150523e5ec54aae44248bfa64255c54ec46cb 100644
--- a/third_party/WebKit/LayoutTests/webaudio/constructor/oscillator.html
+++ b/third_party/WebKit/LayoutTests/webaudio/constructor/oscillator.html
@@ -117,11 +117,12 @@
real: [1, 1]
})
};
- success = Should("new OscillatorNode(c, " + JSON.stringify(options) + ")",
+ success = Should("node2 = new OscillatorNode(c, " + JSON.stringify(options) + ")",
function () {
node = new OscillatorNode(context, options);
})
- .throw("InvalidStateError") && success;
+ .notThrow() && success;
+ Should("node2.type", node.type).beEqualTo("custom");
options = {
type: "custom"

Powered by Google App Engine
This is Rietveld 408576698