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

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: 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 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 else 161 else
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 166
167 // Start/stop for AudioBufferSourceNodes 167 // Start/stop for AudioBufferSourceNodes
168 buffer = context.createBuffer(1,1, context.sampleRate); 168 buffer = context.createBuffer(1,1, context.sampleRate);
169 shouldNotThrow("source = context.createBufferSource()"); 169 shouldNotThrow("source = context.createBufferSource()");
170 shouldNotThrow("source.buffer = buffer"); 170 shouldNotThrow("source.buffer = buffer");
171 // Setting the buffer twice will eventually throw an error, but for now, it' s just a deprecation
172 // warning.
173 shouldNotThrow("source.buffer = context.createBuffer(1, 10, context.sampleRa te)");
171 shouldThrow("source.start(-1)"); 174 shouldThrow("source.start(-1)");
172 shouldThrow("source.start(Infinity)"); 175 shouldThrow("source.start(Infinity)");
173 shouldThrow("source.start(-Infinity)"); 176 shouldThrow("source.start(-Infinity)");
174 shouldThrow("source.start(NaN)"); 177 shouldThrow("source.start(NaN)");
175 shouldThrow("source.start(1, Infinity)"); 178 shouldThrow("source.start(1, Infinity)");
176 shouldThrow("source.start(1, -Infinity)"); 179 shouldThrow("source.start(1, -Infinity)");
177 shouldThrow("source.start(1, NaN)"); 180 shouldThrow("source.start(1, NaN)");
178 shouldThrow("source.start(1, -1)"); 181 shouldThrow("source.start(1, -1)");
179 shouldThrow("source.start(1, 1, Infinity)"); 182 shouldThrow("source.start(1, 1, Infinity)");
180 shouldThrow("source.start(1, 1, -Infinity)"); 183 shouldThrow("source.start(1, 1, -Infinity)");
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 shouldBeUndefined("source.noteOn"); 279 shouldBeUndefined("source.noteOn");
277 shouldBeUndefined("source.noteOff"); 280 shouldBeUndefined("source.noteOff");
278 } 281 }
279 282
280 runTest(); 283 runTest();
281 successfullyParsed = true; 284 successfullyParsed = true;
282 285
283 </script> 286 </script>
284 </body> 287 </body>
285 </html> 288 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698