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

Side by Side Diff: LayoutTests/webaudio/dom-exceptions.html

Issue 200543005: ConvolverNode.buffer sample rate must match AudioContext rate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update expected results. Created 6 years, 9 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/audio-testing.js"></script> 4 <script src="resources/audio-testing.js"></script>
5 <script src="../resources/js-test.js"></script> 5 <script src="../resources/js-test.js"></script>
6 <script src="resources/biquad-testing.js"></script> 6 <script src="resources/biquad-testing.js"></script>
7 </head> 7 </head>
8 8
9 <body> 9 <body>
10 10
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 shouldThrow("osc.stop()"); 158 shouldThrow("osc.stop()");
159 shouldNotThrow("osc1 = context.createOscillator()"); 159 shouldNotThrow("osc1 = context.createOscillator()");
160 shouldNotThrow("osc1.start()"); 160 shouldNotThrow("osc1.start()");
161 shouldNotThrow("osc1.stop()"); 161 shouldNotThrow("osc1.stop()");
162 162
163 // exponentialRampToValue should throw on non-positive target values. 163 // exponentialRampToValue should throw on non-positive target values.
164 node = context.createGain(); 164 node = context.createGain();
165 node.connect(context.destination); 165 node.connect(context.destination);
166 shouldThrow("node.gain.exponentialRampToValueAtTime(-1, 0.1)"); 166 shouldThrow("node.gain.exponentialRampToValueAtTime(-1, 0.1)");
167 shouldThrow("node.gain.exponentialRampToValueAtTime(0, 0.1)"); 167 shouldThrow("node.gain.exponentialRampToValueAtTime(0, 0.1)");
168
169 // Convolver buffer rate must match context rate. Create on offline context so we
170 // specify the context rate exactly, in case the test is run on platforms wi th different
171 // HW sample rates.
172 shouldNotThrow("oc = new webkitOfflineAudioContext(1, 44100, 44100)");
173 shouldNotThrow("conv = oc.createConvolver()");
174 shouldThrow("conv.buffer = oc.createBuffer(1, 100, 22050)");
168 } 175 }
169 176
170 runTest(); 177 runTest();
171 successfullyParsed = true; 178 successfullyParsed = true;
172 179
173 </script> 180 </script>
174 </body> 181 </body>
175 </html> 182 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/webaudio/dom-exceptions-expected.txt » ('j') | Source/modules/webaudio/ConvolverNode.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698