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

Side by Side 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, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/compatibility.js"></script> 4 <script src="resources/compatibility.js"></script>
5 <script src="resources/audio-testing.js"></script> 5 <script src="resources/audio-testing.js"></script>
6 <script src="../resources/js-test.js"></script> 6 <script src="../resources/js-test.js"></script>
7 <script src="resources/biquad-testing.js"></script> 7 <script src="resources/biquad-testing.js"></script>
8 </head> 8 </head>
9 9
10 <body> 10 <body>
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 testFailed("node.oversample incorrectly changed to invalid value " + node. oversample); 162 testFailed("node.oversample incorrectly changed to invalid value " + node. oversample);
163 shouldThrow("node.curve = new Float32Array(1)"); 163 shouldThrow("node.curve = new Float32Array(1)");
164 shouldBeNull("node.curve"); 164 shouldBeNull("node.curve");
165 shouldNotThrow("node.curve = new Float32Array(2)"); 165 shouldNotThrow("node.curve = new Float32Array(2)");
166 shouldNotThrow("node.curve = null"); 166 shouldNotThrow("node.curve = null");
167 167
168 // Start/stop for AudioBufferSourceNodes 168 // Start/stop for AudioBufferSourceNodes
169 buffer = context.createBuffer(1,1, context.sampleRate); 169 buffer = context.createBuffer(1,1, context.sampleRate);
170 shouldNotThrow("source = context.createBufferSource()"); 170 shouldNotThrow("source = context.createBufferSource()");
171 shouldNotThrow("source.buffer = buffer"); 171 shouldNotThrow("source.buffer = buffer");
172 // Setting the buffer twice will eventually throw an error, but for now, it' s just a deprecation
173 // warning.
174 shouldNotThrow("source.buffer = context.createBuffer(1, 10, context.sampleRa te)");
172 shouldThrow("source.start(-1)"); 175 shouldThrow("source.start(-1)");
173 shouldThrow("source.start(Infinity)"); 176 shouldThrow("source.start(Infinity)");
174 shouldThrow("source.start(-Infinity)"); 177 shouldThrow("source.start(-Infinity)");
175 shouldThrow("source.start(NaN)"); 178 shouldThrow("source.start(NaN)");
176 shouldThrow("source.start(1, Infinity)"); 179 shouldThrow("source.start(1, Infinity)");
177 shouldThrow("source.start(1, -Infinity)"); 180 shouldThrow("source.start(1, -Infinity)");
178 shouldThrow("source.start(1, NaN)"); 181 shouldThrow("source.start(1, NaN)");
179 shouldThrow("source.start(1, -1)"); 182 shouldThrow("source.start(1, -1)");
180 shouldThrow("source.start(1, 1, Infinity)"); 183 shouldThrow("source.start(1, 1, Infinity)");
181 shouldThrow("source.start(1, 1, -Infinity)"); 184 shouldThrow("source.start(1, 1, -Infinity)");
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 shouldBeUndefined("source.noteOn"); 280 shouldBeUndefined("source.noteOn");
278 shouldBeUndefined("source.noteOff"); 281 shouldBeUndefined("source.noteOff");
279 } 282 }
280 283
281 runTest(); 284 runTest();
282 successfullyParsed = true; 285 successfullyParsed = true;
283 286
284 </script> 287 </script>
285 </body> 288 </body>
286 </html> 289 </html>
OLDNEW
« 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