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

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

Issue 2758783002: Throw correct errors for invalid OfflineAudioContext values (Closed)
Patch Set: Regenerate test result Created 3 years, 9 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
OLDNEW
1 CONSOLE WARNING: line 308: The provided value 'fancy' is not a valid enum value of type ChannelCountMode. 1 CONSOLE WARNING: line 308: The provided value 'fancy' is not a valid enum value of type ChannelCountMode.
2 CONSOLE WARNING: line 314: The provided value 'undefined' is not a valid enum va lue of type ChannelInterpretation. 2 CONSOLE WARNING: line 314: The provided value 'undefined' is not a valid enum va lue of type ChannelInterpretation.
3 CONSOLE WARNING: line 436: The provided value '9x' is not a valid enum value of type OverSampleType. 3 CONSOLE WARNING: line 444: The provided value '9x' is not a valid enum value of type OverSampleType.
4 CONSOLE WARNING: line 651: The provided value 'junk' is not a valid enum value o f type ChannelCountMode. 4 CONSOLE WARNING: line 659: The provided value 'junk' is not a valid enum value o f type ChannelCountMode.
5 CONSOLE WARNING: line 680: The provided value 'junk' is not a valid enum value o f type ChannelCountMode. 5 CONSOLE WARNING: line 688: The provided value 'junk' is not a valid enum value o f type ChannelCountMode.
6 This is a testharness.js-based test. 6 This is a testharness.js-based test.
7 PASS # AUDIT TASK RUNNER STARTED. 7 PASS # AUDIT TASK RUNNER STARTED.
8 PASS > [initialize] Initialize contexts for testing 8 PASS > [initialize] Initialize contexts for testing
9 PASS context = new AudioContext() did not throw an exception. 9 PASS context = new AudioContext() did not throw an exception.
10 PASS otherContext = new AudioContext() did not throw an exception. 10 PASS otherContext = new AudioContext() did not throw an exception.
11 PASS < [initialize] All assertions passed. (total 2 assertions) 11 PASS < [initialize] All assertions passed. (total 2 assertions)
12 PASS > [createBuffer] 12 PASS > [createBuffer]
13 PASS context.createBuffer(99, 1, context.sampleRate) threw NotSupportedError: "Failed to execute 'createBuffer' on 'BaseAudioContext': The number of channels provided (99) is outside the range [1, 32].". 13 PASS context.createBuffer(99, 1, context.sampleRate) threw NotSupportedError: "Failed to execute 'createBuffer' on 'BaseAudioContext': The number of channels provided (99) is outside the range [1, 32].".
14 PASS context.createBuffer(0, 1, context.sampleRate) threw NotSupportedError: " Failed to execute 'createBuffer' on 'BaseAudioContext': The number of channels p rovided (0) is outside the range [1, 32].". 14 PASS context.createBuffer(0, 1, context.sampleRate) threw NotSupportedError: " Failed to execute 'createBuffer' on 'BaseAudioContext': The number of channels p rovided (0) is outside the range [1, 32].".
15 PASS context.createBuffer(1, 1, 1) threw NotSupportedError: "Failed to execute 'createBuffer' on 'BaseAudioContext': The sample rate provided (1) is outside t he range [3000, 384000].". 15 PASS context.createBuffer(1, 1, 1) threw NotSupportedError: "Failed to execute 'createBuffer' on 'BaseAudioContext': The sample rate provided (1) is outside t he range [3000, 384000].".
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 PASS node.gain.exponentialRampToValueAtTime(Math.pow(2, -150), 0.1) threw Inva lidAccessError: "Failed to execute 'exponentialRampToValueAtTime' on 'AudioParam ': The float target value provided (0) should not be in the range (-1.40130e-45, 1.40130e-45).". 107 PASS node.gain.exponentialRampToValueAtTime(Math.pow(2, -150), 0.1) threw Inva lidAccessError: "Failed to execute 'exponentialRampToValueAtTime' on 'AudioParam ': The float target value provided (0) should not be in the range (-1.40130e-45, 1.40130e-45).".
108 PASS < [audioparam] All assertions passed. (total 6 assertions) 108 PASS < [audioparam] All assertions passed. (total 6 assertions)
109 PASS > [biquad] 109 PASS > [biquad]
110 PASS node.getFrequencyResponse(new Float32Array(1), new Float32Array(1), new F loat32Array(1)) did not throw an exception. 110 PASS node.getFrequencyResponse(new Float32Array(1), new Float32Array(1), new F loat32Array(1)) did not throw an exception.
111 PASS node.getFrequencyResponse(null, new Float32Array(1), new Float32Array(1)) threw TypeError: "Failed to execute 'getFrequencyResponse' on 'BiquadFilterNode ': parameter 1 is not of type 'Float32Array'.". 111 PASS node.getFrequencyResponse(null, new Float32Array(1), new Float32Array(1)) threw TypeError: "Failed to execute 'getFrequencyResponse' on 'BiquadFilterNode ': parameter 1 is not of type 'Float32Array'.".
112 PASS node.getFrequencyResponse(new Float32Array(1), null, new Float32Array(1)) threw TypeError: "Failed to execute 'getFrequencyResponse' on 'BiquadFilterNode ': parameter 2 is not of type 'Float32Array'.". 112 PASS node.getFrequencyResponse(new Float32Array(1), null, new Float32Array(1)) threw TypeError: "Failed to execute 'getFrequencyResponse' on 'BiquadFilterNode ': parameter 2 is not of type 'Float32Array'.".
113 PASS node.getFrequencyResponse(new Float32Array(1), new Float32Array(1), null) threw TypeError: "Failed to execute 'getFrequencyResponse' on 'BiquadFilterNode ': parameter 3 is not of type 'Float32Array'.". 113 PASS node.getFrequencyResponse(new Float32Array(1), new Float32Array(1), null) threw TypeError: "Failed to execute 'getFrequencyResponse' on 'BiquadFilterNode ': parameter 3 is not of type 'Float32Array'.".
114 PASS < [biquad] All assertions passed. (total 4 assertions) 114 PASS < [biquad] All assertions passed. (total 4 assertions)
115 PASS > [offline-audio-context] 115 PASS > [offline-audio-context]
116 PASS new OfflineAudioContext(32, 100, context.sampleRate) did not throw an exc eption. 116 PASS new OfflineAudioContext(32, 100, context.sampleRate) did not throw an exc eption.
117 PASS new OfflineAudioContext(99, 100, context.sampleRate) threw IndexSizeError : "Failed to construct 'OfflineAudioContext': The number of channels provided (9 9) is outside the range [0, 32].". 117 PASS new OfflineAudioContext(0, 100, context.sampleRate) threw NotSupportedErr or: "Failed to construct 'OfflineAudioContext': The number of channels provided (0) is outside the range [1, 32].".
118 PASS new OfflineAudioContext(1, 100, 1) threw IndexSizeError: "Failed to const ruct 'OfflineAudioContext': The sampleRate provided (1) is outside the range [30 00, 384000].". 118 PASS new OfflineAudioContext(99, 100, context.sampleRate) threw NotSupportedEr ror: "Failed to construct 'OfflineAudioContext': The number of channels provided (99) is outside the range [1, 32].".
119 PASS new OfflineAudioContext(1, 100, 1e6) threw IndexSizeError: "Failed to con struct 'OfflineAudioContext': The sampleRate provided (1.00000e+6) is outside th e range [3000, 384000].". 119 PASS new OfflineAudioContext(1, 100, 1) threw NotSupportedError: "Failed to co nstruct 'OfflineAudioContext': The sampleRate provided (1) is outside the range [3000, 384000].".
120 PASS new OfflineAudioContext(1, 100, 1e6) threw NotSupportedError: "Failed to construct 'OfflineAudioContext': The sampleRate provided (1.00000e+6) is outside the range [3000, 384000].".
120 PASS new OfflineAudioContext(1, -88200000000000, 44100) threw NotSupportedErro r: "Failed to construct 'OfflineAudioContext': OfflineAudioContext(1, 1448390656 , 44100)". 121 PASS new OfflineAudioContext(1, -88200000000000, 44100) threw NotSupportedErro r: "Failed to construct 'OfflineAudioContext': OfflineAudioContext(1, 1448390656 , 44100)".
121 PASS < [offline-audio-context] All assertions passed. (total 5 assertions) 122 PASS new OfflineAudioContext(1, 0, 44100) threw NotSupportedError: "Failed to construct 'OfflineAudioContext': The number of frames provided (0) is less than the minimum bound (1).".
123 PASS < [offline-audio-context] All assertions passed. (total 7 assertions)
122 PASS > [waveshaper] 124 PASS > [waveshaper]
123 PASS node.oversample = "9x" did not throw an exception. 125 PASS node.oversample = "9x" did not throw an exception.
124 PASS node.oversample is equal to none. 126 PASS node.oversample is equal to none.
125 PASS node.curve = {} threw TypeError: "Failed to set the 'curve' property on ' WaveShaperNode': The provided value is not of type 'Float32Array'.". 127 PASS node.curve = {} threw TypeError: "Failed to set the 'curve' property on ' WaveShaperNode': The provided value is not of type 'Float32Array'.".
126 PASS node.curve = new Float32Array(1) threw InvalidAccessError: "Failed to set the 'curve' property on 'WaveShaperNode': The curve length provided (1) is less than the minimum bound (2).". 128 PASS node.curve = new Float32Array(1) threw InvalidAccessError: "Failed to set the 'curve' property on 'WaveShaperNode': The curve length provided (1) is less than the minimum bound (2).".
127 PASS node.curve is equal to ${expected}. 129 PASS node.curve is equal to ${expected}.
128 PASS node.curve = new Float32Array(2) did not throw an exception. 130 PASS node.curve = new Float32Array(2) did not throw an exception.
129 PASS node.curve = null did not throw an exception. 131 PASS node.curve = null did not throw an exception.
130 PASS < [waveshaper] All assertions passed. (total 7 assertions) 132 PASS < [waveshaper] All assertions passed. (total 7 assertions)
131 PASS > [audio-buffer-source] AudioBufferSource start/stop 133 PASS > [audio-buffer-source] AudioBufferSource start/stop
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 PASS < [script-processor] All assertions passed. (total 14 assertions) 231 PASS < [script-processor] All assertions passed. (total 14 assertions)
230 PASS > [misc] Miscellaneous tests 232 PASS > [misc] Miscellaneous tests
231 PASS osc.noteOn is equal to undefined. 233 PASS osc.noteOn is equal to undefined.
232 PASS osc.noteOff is equal to undefined. 234 PASS osc.noteOff is equal to undefined.
233 PASS source.noteOn is equal to undefined. 235 PASS source.noteOn is equal to undefined.
234 PASS source.noteOff is equal to undefined. 236 PASS source.noteOff is equal to undefined.
235 PASS < [misc] All assertions passed. (total 4 assertions) 237 PASS < [misc] All assertions passed. (total 4 assertions)
236 PASS # AUDIT TASK RUNNER FINISHED: 22 tasks ran successfully. 238 PASS # AUDIT TASK RUNNER FINISHED: 22 tasks ran successfully.
237 Harness: the test ran to completion. 239 Harness: the test ran to completion.
238 240
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698