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

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: 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': invalid number of channels, frames, or samp le rate..
6 PASS context.createBuffer(1, 1, 1) threw exception SyntaxError: Failed to constr uct 'AudioBuffer': invalid number of channels, frames, or sample rate..
7 PASS context.createBuffer(new ArrayBuffer(100), true) threw exception SyntaxErro r: Failed to construct 'AudioBuffer': invalid audio data in ArrayBuffer..
8 PASS context.decodeAudioData(null, function() {}, function () {}) threw exceptio n SyntaxError: Failed to execute 'decodeAudioData' on 'AudioContext': invalid Ar rayBuffer for audioData..
9 PASS context.createMediaElementSource(null) threw exception InvalidStateError: F ailed to construct 'MediaElementAudioSourceNode': invalid HTMLMedialElement..
10 PASS context.createMediaElementAudioSource(null) threw exception TypeError: Obje ct #<AudioContext> has no method 'createMediaElementAudioSource'.
11 PASS context.createScriptProcessor(1, 1, 1) threw exception SyntaxError: Failed to construct 'ScriptProcessorNode': invalid buffer size, or number of input/outp uts..
12 PASS context.createScriptProcessor(4096, 100, 100) threw exception SyntaxError: Failed to construct 'ScriptProcessorNode': invalid buffer size, or number of inp ut/outputs..
13 PASS context.createChannelSplitter(0) threw exception SyntaxError: Failed to con struct 'ChannelSplitterNode': invalid number of outputs..
14 PASS context.createChannelSplitter(99) threw exception SyntaxError: Failed to co nstruct 'ChannelSplitterNode': invalid number of outputs..
15 PASS context.createChannelMerger(0) threw exception SyntaxError: Failed to const ruct 'ChannelMergerNode': invalid number of inputs..
16 PASS context.createChannelMerger(99) threw exception SyntaxError: Failed to cons truct 'ChannelMergerNode': invalid number of inputs..
17 PASS context.createPeriodicWave(null, null) threw exception SyntaxError: Failed to construct 'WaveTable': invalid real or imag arrays for wave table..
18 PASS context.createPeriodicWave(new ArrayBuffer(10), new ArrayBuffer(7)) threw e xception SyntaxError: Failed to construct 'WaveTable': invalid real or imag arra ys for wave table..
19 PASS node.fftSize = 42 threw exception NotSupportedError: Failed to set the 'fft Size' property on 'AnalyserNode': FFT size is out of range or not a power of two ..
20 PASS node.getChannelData(2) threw exception SyntaxError: Failed to read the 'get ChannelData' property from 'AudioBuffer': invalid channel index..
21 PASS node.connect(null, 0, 0) threw exception SyntaxError: Failed to execute 'co nnect' on 'AudioNode': invalid destination node..
22 PASS node.connect(context.destination, 100, 0) threw exception IndexSizeError: F ailed to execute 'connect' on 'AudioNode': invalid output index..
23 PASS node.connect(context.destination, 0, 100) threw exception IndexSizeError: F ailed to execute 'connect' on 'AudioNode': invalid input index..
24 PASS node.connect(node2.gain, 100) threw exception IndexSizeError: Failed to exe cute 'connect' on 'AudioNode': invalid output index..
25 PASS node.disconnect(99) threw exception IndexSizeError: Failed to execute 'disc onnect' on 'AudioNode': invalid output index..
26 PASS node.connect(otherContext.destination) threw exception SyntaxError: Failed to execute 'connect' on 'AudioNode': invalid destination context..
27 PASS node.channelCount = 99 threw exception InvalidStateError: Failed to set the 'channelCount' property on 'AudioNode': invalid number of channels..
28 PASS node.channelCountMode = mode threw exception InvalidStateError: Failed to s et the 'channelCountMode' property on 'AudioNode': must be "max", "clamped-max", or "explicit"..
29 PASS node.channelInterpretation = mode threw exception InvalidStateError: Failed to set the 'channelInterpretation' property on 'AudioNode': must be "speakers" or "discrete"..
30 PASS context.destination.channelCount = 99 threw exception InvalidStateError: Fa iled to set the 'channelCount' property on 'AudioDestinationNode': invalid chann el count..
31 PASS context.createDelay(-1) threw exception NotSupportedError: Failed to constr uct 'DelayNode': invalid max delay time..
32 PASS context.createDelay(1000000) threw exception NotSupportedError: Failed to c onstruct 'DelayNode': invalid max delay time..
33 PASS new webkitOfflineAudioContext(99, 100, context.sampleRate) threw exception SyntaxError: Failed to construct 'OfflineAudioContext': invalid number of channe ls or sample rate.
34 PASS new webkitOfflineAudioContext(1, 100, 1) threw exception SyntaxError: Faile d to construct 'OfflineAudioContext': invalid number of channels or sample rate.
35 PASS successfullyParsed is true
36
37 TEST COMPLETE
38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698