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

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

Issue 1180613007: Allow larger arrays up to size 8192 for PeriodicWave (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and use Audit.runTasks() Created 5 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/webaudio/dom-exceptions-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 shouldNotThrow("context.createScriptProcessor(0)"); 64 shouldNotThrow("context.createScriptProcessor(0)");
65 65
66 // Invalid number of channels: IndexSizeError 66 // Invalid number of channels: IndexSizeError
67 shouldThrow("context.createChannelSplitter(0)"); 67 shouldThrow("context.createChannelSplitter(0)");
68 shouldThrow("context.createChannelSplitter(99)"); 68 shouldThrow("context.createChannelSplitter(99)");
69 shouldThrow("context.createChannelMerger(0)"); 69 shouldThrow("context.createChannelMerger(0)");
70 shouldThrow("context.createChannelMerger(99)"); 70 shouldThrow("context.createChannelMerger(99)");
71 // Invalid real/imag arrays: IndexSizeError 71 // Invalid real/imag arrays: IndexSizeError
72 shouldThrow("context.createPeriodicWave(null, null)"); 72 shouldThrow("context.createPeriodicWave(null, null)");
73 shouldThrow("context.createPeriodicWave(new Float32Array(10), null)"); 73 shouldThrow("context.createPeriodicWave(new Float32Array(10), null)");
74 // Real array is too long. 74 // Verify that we can use large arrays with no limit. Roughly.
75 shouldThrow("context.createPeriodicWave(new Float32Array(4100), new Float32A rray(4100))"); 75 shouldNotThrow("context.createPeriodicWave(new Float32Array(4100), new Float 32Array(4100))");
76 // Imaginary array is too long. 76 shouldNotThrow("context.createPeriodicWave(new Float32Array(8192), new Float 32Array(8192))");
77 shouldThrow("context.createPeriodicWave(new Float32Array(100), new Float32Ar ray(4100))"); 77 shouldNotThrow("context.createPeriodicWave(new Float32Array(10000), new Floa t32Array(10000))");
78 // Real and imaginary arrays must have the same size: IndexSizeError 78 // Real and imaginary arrays must have the same size: IndexSizeError
79 shouldThrow("context.createPeriodicWave(new Float32Array(10), new Float32Arr ay(7))"); 79 shouldThrow("context.createPeriodicWave(new Float32Array(10), new Float32Arr ay(7))");
80 // Check upper limit is correct.
81 shouldNotThrow("context.createPeriodicWave(new Float32Array(2048), new Float 32Array(2048))");
82 shouldThrow("context.createPeriodicWave(new Float32Array(2049), new Float32A rray(2049))");
83 80
84 81
85 // Analysers 82 // Analysers
86 node = context.createAnalyser(); 83 node = context.createAnalyser();
87 // Invalid fftSize: IndexSizeError 84 // Invalid fftSize: IndexSizeError
88 shouldThrowAndBeUnchanged("node.fftSize", "42"); 85 shouldThrowAndBeUnchanged("node.fftSize", "42");
89 shouldThrowAndBeUnchanged("node.fftSize", "16"); 86 shouldThrowAndBeUnchanged("node.fftSize", "16");
90 shouldNotThrow("node.fftSize = 32768"); 87 shouldNotThrow("node.fftSize = 32768");
91 shouldThrowAndBeUnchanged("node.fftSize", "65536"); 88 shouldThrowAndBeUnchanged("node.fftSize", "65536");
92 89
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 shouldBeUndefined("source.noteOn"); 304 shouldBeUndefined("source.noteOn");
308 shouldBeUndefined("source.noteOff"); 305 shouldBeUndefined("source.noteOff");
309 } 306 }
310 307
311 runTest(); 308 runTest();
312 successfullyParsed = true; 309 successfullyParsed = true;
313 310
314 </script> 311 </script>
315 </body> 312 </body>
316 </html> 313 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/webaudio/dom-exceptions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698