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

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

Issue 54173005: Signal exceptions if start/stop is called out-of-order or too many times. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 Tests DOM exception messages 1 Tests DOM exception messages
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 PASS context.createBuffer(99, 1, context.sampleRate) threw exception NotSupporte dError: Failed to construct 'AudioBuffer': requested number of channels (99) exc eeds maximum (32). 5 PASS context.createBuffer(99, 1, context.sampleRate) threw exception NotSupporte dError: Failed to construct 'AudioBuffer': requested number of channels (99) exc eeds maximum (32).
6 PASS context.createBuffer(1, 1, 1) threw exception NotSupportedError: Failed to construct 'AudioBuffer': requested sample rate (1) does not lie in the allowed r ange of 22050-96000 Hz. 6 PASS context.createBuffer(1, 1, 1) threw exception NotSupportedError: Failed to construct 'AudioBuffer': requested sample rate (1) does not lie in the allowed r ange of 22050-96000 Hz.
7 PASS context.createBuffer(1, 1, 1e6) threw exception NotSupportedError: Failed t o construct 'AudioBuffer': requested sample rate (1.00000e+6) does not lie in th e allowed range of 22050-96000 Hz. 7 PASS context.createBuffer(1, 1, 1e6) threw exception NotSupportedError: Failed t o construct 'AudioBuffer': requested sample rate (1.00000e+6) does not lie in th e allowed range of 22050-96000 Hz.
8 PASS context.createBuffer(1, 0, context.sampleRate) threw exception NotSupported Error: Failed to construct 'AudioBuffer': number of frames must be greater than 0.. 8 PASS context.createBuffer(1, 0, context.sampleRate) threw exception NotSupported Error: Failed to construct 'AudioBuffer': number of frames must be greater than 0..
9 PASS context.createBuffer(new ArrayBuffer(100), true) threw exception SyntaxErro r: Failed to construct 'AudioBuffer': invalid audio data in ArrayBuffer.. 9 PASS context.createBuffer(new ArrayBuffer(100), true) threw exception SyntaxErro r: Failed to construct 'AudioBuffer': invalid audio data in ArrayBuffer..
10 PASS context.decodeAudioData(null, function() {}, function () {}) threw exceptio n SyntaxError: Failed to execute 'decodeAudioData' on 'AudioContext': invalid Ar rayBuffer for audioData.. 10 PASS context.decodeAudioData(null, function() {}, function () {}) threw exceptio n SyntaxError: Failed to execute 'decodeAudioData' on 'AudioContext': invalid Ar rayBuffer for audioData..
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 PASS new webkitOfflineAudioContext(99, 100, context.sampleRate) threw exception SyntaxError: Failed to construct 'OfflineAudioContext': number of channels (99) exceeds maximum (10).. 44 PASS new webkitOfflineAudioContext(99, 100, context.sampleRate) threw exception SyntaxError: Failed to construct 'OfflineAudioContext': number of channels (99) exceeds maximum (10)..
45 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.. 45 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..
46 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.. 46 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..
47 PASS node.oversample = '9x' threw exception InvalidStateError: Failed to set the 'oversample' property on 'WaveShaperNode': invalid oversample '9x': must be 'no ne', '2x', or '4x'.. 47 PASS node.oversample = '9x' threw exception InvalidStateError: Failed to set the 'oversample' property on 'WaveShaperNode': invalid oversample '9x': must be 'no ne', '2x', or '4x'..
48 PASS source = context.createBufferSource() did not throw exception. 48 PASS source = context.createBufferSource() did not throw exception.
49 PASS source.buffer = buffer did not throw exception. 49 PASS source.buffer = buffer did not throw exception.
50 PASS source.start() did not throw exception. 50 PASS source.start() did not throw exception.
51 PASS source.stop() did not throw exception. 51 PASS source.stop() did not throw exception.
52 PASS source = context.createBufferSource() did not throw exception. 52 PASS source = context.createBufferSource() did not throw exception.
53 PASS source.start() did not throw exception. 53 PASS source.start() did not throw exception.
54 PASS source = context.createBufferSource() did not throw exception.
55 PASS source.buffer = buffer did not throw exception.
56 PASS source.stop() threw exception InvalidStateError: Failed to execute 'stop' o n 'OscillatorNode': cannot call stop without calling start first..
57 PASS source = context.createBufferSource() did not throw exception.
58 PASS source.buffer = buffer did not throw exception.
59 PASS source.start() did not throw exception.
60 PASS source.start() threw exception InvalidStateError: Failed to execute 'start' on 'AudioBufferSourceNode': cannot call start more than once..
61 PASS source = context.createBufferSource() did not throw exception.
62 PASS source.buffer = buffer did not throw exception.
63 PASS source.start() did not throw exception.
54 PASS source.stop() did not throw exception. 64 PASS source.stop() did not throw exception.
65 PASS source.stop() threw exception InvalidStateError: Failed to execute 'stop' o n 'OscillatorNode': cannot call stop more than once..
55 PASS source = context.createOscillator() did not throw exception. 66 PASS source = context.createOscillator() did not throw exception.
56 PASS source.start() did not throw exception. 67 PASS source.start() did not throw exception.
57 PASS source.stop() did not throw exception. 68 PASS source.stop() did not throw exception.
69 PASS osc = context.createOscillator() did not throw exception.
70 PASS osc.stop() threw exception InvalidStateError: Failed to execute 'stop' on ' OscillatorNode': cannot call stop without calling start first..
71 PASS osc1 = context.createOscillator() did not throw exception.
72 PASS osc1.start() did not throw exception.
73 PASS osc1.stop() did not throw exception.
74 PASS osc1.stop() threw exception InvalidStateError: Failed to execute 'stop' on 'OscillatorNode': cannot call stop more than once..
58 PASS successfullyParsed is true 75 PASS successfullyParsed is true
59 76
60 TEST COMPLETE 77 TEST COMPLETE
61 78
OLDNEW
« no previous file with comments | « LayoutTests/webaudio/dom-exceptions.html ('k') | Source/modules/webaudio/AudioBufferSourceNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698