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

Side by Side Diff: LayoutTests/webaudio/dom-exceptions-expected.txt

Issue 24877002: Add more informative messages for DOM exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix typo in test. Created 7 years, 2 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
(Empty)
1 Tests DOM exception messages
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5 PASS context.createBuffer(99, 1, context.sampleRate) threw exception SyntaxError : Failed to construct 'AudioBuffer': requested number of channels (99) exceeds m aximum (32).
6 PASS context.createBuffer(1, 1, 1) threw exception SyntaxError: Failed to constr uct 'AudioBuffer': requested sample rate (1) does not lie in the allowed range o f 22050-96000 Hz.
7 PASS context.createBuffer(1, 1, 1e6) threw exception SyntaxError: Failed to cons truct 'AudioBuffer': requested sample rate (1.00000e+6) does not lie in the allo wed range of 22050-96000 Hz.
8 PASS context.createBuffer(new ArrayBuffer(100), true) threw exception SyntaxErro r: Failed to construct 'AudioBuffer': invalid audio data in ArrayBuffer..
9 PASS context.decodeAudioData(null, function() {}, function () {}) threw exceptio n SyntaxError: Failed to execute 'decodeAudioData' on 'AudioContext': invalid Ar rayBuffer for audioData..
10 PASS context.createMediaElementSource(null) threw exception InvalidStateError: F ailed to construct 'MediaElementAudioSourceNode': invalid HTMLMedialElement..
11 PASS context.createMediaStreamSource(null) threw exception InvalidStateError: Fa iled to construct 'MediaStreamAudioSourceNode': invalid MediaStream source.
12 PASS context.createScriptProcessor(1, 1, 1) threw exception SyntaxError: Failed to construct 'ScriptProcessorNode': buffer size (1) must be a power of two betwe en 256 and 16384..
13 PASS context.createScriptProcessor(4096, 100, 1) threw exception SyntaxError: Fa iled to construct 'ScriptProcessorNode': number of input channels (100) exceeds maximum (32)..
14 PASS context.createScriptProcessor(4096, 1, 100) threw exception SyntaxError: Fa iled to construct 'ScriptProcessorNode': number of output channels (1) exceeds m aximum (32)..
15 PASS context.createChannelSplitter(0) threw exception SyntaxError: Failed to con struct 'ChannelSplitterNode': number of outputs (0) must be between 1 and 32..
16 PASS context.createChannelSplitter(99) threw exception SyntaxError: Failed to co nstruct 'ChannelSplitterNode': number of outputs (99) must be between 1 and 32..
17 PASS context.createChannelMerger(0) threw exception SyntaxError: Failed to const ruct 'ChannelMergerNode': number of inputs (0) must be between 1 and 32..
18 PASS context.createChannelMerger(99) threw exception SyntaxError: Failed to cons truct 'ChannelMergerNode': number of inputs (99) must be between 1 and 32..
19 PASS context.createPeriodicWave(null, null) threw exception SyntaxError: Failed to construct 'PeriodicWave': invalid real array.
20 PASS context.createPeriodicWave(new Float32Array(10), null) threw exception Synt axError: Failed to construct 'PeriodicWave': invalid imaginary array.
21 PASS context.createPeriodicWave(new Float32Array(10), new Float32Array(7)) threw exception SyntaxError: Failed to construct 'PeriodicWave': length of real array (10) and length of imaginary array (7) must match..
22 PASS node.fftSize = 42 threw exception NotSupportedError: Failed to set the 'fft Size' property on 'AnalyserNode': FFT size (42) must be a power of two between 3 2 and 2048, inclusive.
23 PASS node.getChannelData(2) threw exception SyntaxError: Failed to execute 'getC hannelData' on 'AudioBuffer': channel index (2) exceeds number of channels (1).
24 PASS node.connect(null, 0, 0) threw exception SyntaxError: Failed to execute 'co nnect' on 'AudioNode': invalid destination node..
25 PASS node.connect(context.destination, 100, 0) threw exception IndexSizeError: F ailed to execute 'connect' on 'AudioNode': output index (100) exceeds number of outputs (1)..
26 PASS node.connect(context.destination, 0, 100) threw exception IndexSizeError: F ailed to execute 'connect' on 'AudioNode': input index (100) exceeds number of i nputs (1)..
27 PASS node.connect(node2.gain, 100) threw exception IndexSizeError: Failed to exe cute 'connect' on 'AudioNode': output index (100) exceeds number of outputs (1). .
28 PASS node.disconnect(99) threw exception IndexSizeError: Failed to execute 'disc onnect' on 'AudioNode': output index (99) exceeds number of outputs (1)..
29 PASS node.connect(otherContext.destination) threw exception SyntaxError: Failed to execute 'connect' on 'AudioNode': cannot connect to a destination belonging t o a different audio context..
30 PASS node.channelCount = 99 threw exception InvalidStateError: Failed to set the 'channelCount' property on 'AudioNode': channel count (99) must be between 1 an d 32..
31 PASS node.channelCountMode = mode threw exception InvalidStateError: Failed to s et the 'channelCountMode' property on 'AudioNode': invalid mode 'fancy'; must be 'max', 'clamped-max', or 'explicit'..
32 PASS node.channelInterpretation = mode threw exception InvalidStateError: Failed to set the 'channelInterpretation' property on 'AudioNode': invalid interpretat ion 'fancy'; must be 'speakers' or 'discrete'..
33 PASS context.destination.channelCount = 99 threw exception InvalidStateError: Fa iled to set the 'channelCount' property on 'AudioDestinationNode': channel count (99) must be between 1 and 2..
34 PASS new webkitOfflineAudioContext(99, 100, context.sampleRate) threw exception SyntaxError: Failed to construct 'OfflineAudioContext': number of channels (99) exceeds maximum (10)..
35 PASS new webkitOfflineAudioContext(1, 100, 1) threw exception SyntaxError: Faile d to construct 'OfflineAudioContext': sample rate (1) must be in the range 44100 -96000 Hz..
36 PASS new webkitOfflineAudioContext(1, 100, 1e6) threw exception SyntaxError: Fai led to construct 'OfflineAudioContext': sample rate (1.00000e+6) must be in the range 44100-96000 Hz..
37 PASS successfullyParsed is true
38
39 TEST COMPLETE
40
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698