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

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

Issue 1006963003: AudioContext.decodeAudioData returns a Promise (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update for review Created 5 years, 8 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Invalid sample rate: NotSupportedError 43 // Invalid sample rate: NotSupportedError
44 shouldThrow("context.createBuffer(1, 1, 1)"); 44 shouldThrow("context.createBuffer(1, 1, 1)");
45 shouldThrow("context.createBuffer(1, 1, 1e6)"); 45 shouldThrow("context.createBuffer(1, 1, 1e6)");
46 // Check valid values from crbug.com/344375 46 // Check valid values from crbug.com/344375
47 shouldNotThrow("context.createBuffer(1, 1, 3000)"); 47 shouldNotThrow("context.createBuffer(1, 1, 3000)");
48 shouldNotThrow("context.createBuffer(1, 1, 192000)"); 48 shouldNotThrow("context.createBuffer(1, 1, 192000)");
49 // Invalid number of frames: NotSupportedError 49 // Invalid number of frames: NotSupportedError
50 shouldThrow("context.createBuffer(1, 0, context.sampleRate)"); 50 shouldThrow("context.createBuffer(1, 0, context.sampleRate)");
51 // 2-arg createBuffer not allowed. 51 // 2-arg createBuffer not allowed.
52 shouldThrow("context.createBuffer(new ArrayBuffer(100), true)"); 52 shouldThrow("context.createBuffer(new ArrayBuffer(100), true)");
53 // Invalid ArrayBuffer (unspecified error)
54 shouldThrow("context.decodeAudioData(null, function() {}, function () {})");
55 // Invalid sources (unspecified error) 53 // Invalid sources (unspecified error)
56 shouldThrow("context.createMediaElementSource(null)"); 54 shouldThrow("context.createMediaElementSource(null)");
57 shouldThrow("context.createMediaStreamSource(null)"); 55 shouldThrow("context.createMediaStreamSource(null)");
58 // Invalid buffer size: IndexSizeError 56 // Invalid buffer size: IndexSizeError
59 shouldThrow("context.createScriptProcessor(1, 1, 1)"); 57 shouldThrow("context.createScriptProcessor(1, 1, 1)");
60 // Invalid number of inputs and outputs: IndexSizeError 58 // Invalid number of inputs and outputs: IndexSizeError
61 shouldThrow("context.createScriptProcessor(4096, 100, 1)"); 59 shouldThrow("context.createScriptProcessor(4096, 100, 1)");
62 shouldThrow("context.createScriptProcessor(4096, 1, 100)"); 60 shouldThrow("context.createScriptProcessor(4096, 1, 100)");
63 shouldNotThrow("context.createScriptProcessor()"); 61 shouldNotThrow("context.createScriptProcessor()");
64 shouldNotThrow("context.createScriptProcessor(0)"); 62 shouldNotThrow("context.createScriptProcessor(0)");
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 shouldBeUndefined("source.noteOn"); 295 shouldBeUndefined("source.noteOn");
298 shouldBeUndefined("source.noteOff"); 296 shouldBeUndefined("source.noteOff");
299 } 297 }
300 298
301 runTest(); 299 runTest();
302 successfullyParsed = true; 300 successfullyParsed = true;
303 301
304 </script> 302 </script>
305 </body> 303 </body>
306 </html> 304 </html>
OLDNEW
« no previous file with comments | « LayoutTests/webaudio/decode-audio-data-promise-expected.txt ('k') | LayoutTests/webaudio/dom-exceptions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698