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

Unified Diff: LayoutTests/webaudio/dom-exceptions.html

Issue 825603005: AudioBufferSourceNode.buffer can only be set once. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 11 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: LayoutTests/webaudio/dom-exceptions.html
diff --git a/LayoutTests/webaudio/dom-exceptions.html b/LayoutTests/webaudio/dom-exceptions.html
index 3971cdf6f2a7a1187738bb113f7ae614ce9aa928..5918bd8d37ddff06fd3157a8927798238bebb9be 100644
--- a/LayoutTests/webaudio/dom-exceptions.html
+++ b/LayoutTests/webaudio/dom-exceptions.html
@@ -169,6 +169,9 @@ function runTest() {
buffer = context.createBuffer(1,1, context.sampleRate);
shouldNotThrow("source = context.createBufferSource()");
shouldNotThrow("source.buffer = buffer");
+ // Setting the buffer twice will eventually throw an error, but for now, it's just a deprecation
+ // warning.
+ shouldNotThrow("source.buffer = context.createBuffer(1, 10, context.sampleRate)");
shouldThrow("source.start(-1)");
shouldThrow("source.start(Infinity)");
shouldThrow("source.start(-Infinity)");
« no previous file with comments | « LayoutTests/webaudio/audiobuffersource-channels.html ('k') | LayoutTests/webaudio/dom-exceptions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698