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

Unified Diff: LayoutTests/webaudio/audiobuffersource-channels.html

Issue 825603005: AudioBufferSourceNode.buffer can only be set once. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use deprecation message instead of DOM error 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
« no previous file with comments | « no previous file | LayoutTests/webaudio/dom-exceptions.html » ('j') | Source/core/frame/UseCounter.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/webaudio/audiobuffersource-channels.html
diff --git a/LayoutTests/webaudio/audiobuffersource-channels.html b/LayoutTests/webaudio/audiobuffersource-channels.html
index 1f7256b19f2211375625e46530907243b8756e1e..703c565159567be56e8a2036b03ecd77734413aa 100644
--- a/LayoutTests/webaudio/audiobuffersource-channels.html
+++ b/LayoutTests/webaudio/audiobuffersource-channels.html
@@ -35,7 +35,8 @@ function runTest() {
// Check that mono buffer can be set.
try {
var monoBuffer = context.createBuffer(1, 1024, context.sampleRate);
- source.buffer = monoBuffer;
+ var testSource = context.createBufferSource();
+ testSource.buffer = monoBuffer;
testPassed("Mono buffer can be set.");
} catch(e) {
testFailed("Mono buffer can not be set.");
@@ -44,7 +45,8 @@ function runTest() {
// Check that stereo buffer can be set.
try {
var stereoBuffer = context.createBuffer(2, 1024, context.sampleRate);
- source.buffer = stereoBuffer;
+ var testSource = context.createBufferSource();
+ testSource.buffer = stereoBuffer;
testPassed("Stereo buffer can be set.");
} catch(e) {
testFailed("Stereo buffer can not be set.");
@@ -54,7 +56,8 @@ function runTest() {
for (var i = 3; i < 10; ++i) {
try {
var buffer = context.createBuffer(i, 1024, context.sampleRate);
- source.buffer = buffer;
+ var testSource = context.createBufferSource();
+ testSource.buffer = buffer;
var message = i + " channels buffer can be set.";
testPassed(message);
} catch(e) {
« no previous file with comments | « no previous file | LayoutTests/webaudio/dom-exceptions.html » ('j') | Source/core/frame/UseCounter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698