Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / webaudio / dom-exceptions-expected.txt
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 NotSupportedError: Failed to execute 'createBuffer' on 'AudioContext': The number of channels provided (99) is outside the range [1, 32]..
6 PASS context.createBuffer(0, 1, context.sampleRate) threw exception NotSupportedError: Failed to execute 'createBuffer' on 'AudioContext': The number of channels provided (0) is outside the range [1, 32]..
7 PASS context.createBuffer(1, 1, 1) threw exception NotSupportedError: Failed to execute 'createBuffer' on 'AudioContext': The sample rate provided (1) is outside the range [3000, 192000]..
8 PASS context.createBuffer(1, 1, 1e6) threw exception NotSupportedError: Failed to execute 'createBuffer' on 'AudioContext': The sample rate provided (1.00000e+6) is outside the range [3000, 192000]..
9 PASS context.createBuffer(1, 1, 3000) did not throw exception.
10 PASS context.createBuffer(1, 1, 192000) did not throw exception.
11 PASS context.createBuffer(1, 0, context.sampleRate) threw exception NotSupportedError: Failed to execute 'createBuffer' on 'AudioContext': The number of frames provided (0) is less than or equal to the minimum bound (0)..
12 PASS context.createBuffer(new ArrayBuffer(100), true) threw exception TypeError: Failed to execute 'createBuffer' on 'AudioContext': 3 arguments required, but only 2 present..
13 PASS context.decodeAudioData(null, function() {}, function () {}) threw exception SyntaxError: Failed to execute 'decodeAudioData' on 'AudioContext': invalid ArrayBuffer for audioData..
14 PASS context.createMediaElementSource(null) threw exception InvalidStateError: Failed to execute 'createMediaElementSource' on 'AudioContext': invalid HTMLMedialElement..
15 PASS context.createMediaStreamSource(null) threw exception InvalidStateError: Failed to execute 'createMediaStreamSource' on 'AudioContext': invalid MediaStream source.
16 PASS context.createScriptProcessor(1, 1, 1) threw exception IndexSizeError: Failed to execute 'createScriptProcessor' on 'AudioContext': buffer size (1) must be a power of two between 256 and 16384..
17 PASS context.createScriptProcessor(4096, 100, 1) threw exception IndexSizeError: Failed to execute 'createScriptProcessor' on 'AudioContext': number of input channels (100) exceeds maximum (32)..
18 PASS context.createScriptProcessor(4096, 1, 100) threw exception IndexSizeError: Failed to execute 'createScriptProcessor' on 'AudioContext': number of output channels (1) exceeds maximum (32)..
19 PASS context.createScriptProcessor() did not throw exception.
20 PASS context.createScriptProcessor(0) did not throw exception.
21 PASS context.createChannelSplitter(0) threw exception IndexSizeError: Failed to execute 'createChannelSplitter' on 'AudioContext': number of outputs (0) must be between 1 and 32..
22 PASS context.createChannelSplitter(99) threw exception IndexSizeError: Failed to execute 'createChannelSplitter' on 'AudioContext': number of outputs (99) must be between 1 and 32..
23 PASS context.createChannelMerger(0) threw exception IndexSizeError: Failed to execute 'createChannelMerger' on 'AudioContext': number of inputs (0) must be between 1 and 32..
24 PASS context.createChannelMerger(99) threw exception IndexSizeError: Failed to execute 'createChannelMerger' on 'AudioContext': number of inputs (99) must be between 1 and 32..
25 PASS context.createPeriodicWave(null, null) threw exception SyntaxError: Failed to execute 'createPeriodicWave' on 'AudioContext': invalid real array.
26 PASS context.createPeriodicWave(new Float32Array(10), null) threw exception SyntaxError: Failed to execute 'createPeriodicWave' on 'AudioContext': invalid imaginary array.
27 PASS context.createPeriodicWave(new Float32Array(4100), new Float32Array(4100)) threw exception IndexSizeError: Failed to execute 'createPeriodicWave' on 'AudioContext': length of real array (4100) exceeds allowed maximum of 4096.
28 PASS context.createPeriodicWave(new Float32Array(10), new Float32Array(7)) threw exception IndexSizeError: Failed to execute 'createPeriodicWave' on 'AudioContext': length of real array (10) and length of imaginary array (7) must match..
29 PASS node.fftSize = 42 threw exception IndexSizeError: Failed to set the 'fftSize' property on 'AnalyserNode': The value provided (42) is not a power of two..
30 PASS node.fftSize = 16 threw exception IndexSizeError: Failed to set the 'fftSize' property on 'AnalyserNode': The FFT size provided (16) is outside the range [32, 2048]..
31 PASS node.fftSize = 4096 threw exception IndexSizeError: Failed to set the 'fftSize' property on 'AnalyserNode': The FFT size provided (4096) is outside the range [32, 2048]..
32 PASS node.minDecibels = -10 threw exception IndexSizeError: Failed to set the 'minDecibels' property on 'AnalyserNode': The minDecibels provided (-10) is greater than the maximum bound (-30)..
33 PASS node.maxDecibels = -150 threw exception IndexSizeError: Failed to set the 'maxDecibels' property on 'AnalyserNode': The maxDecibels provided (-150) is less than the minimum bound (-100)..
34 PASS node.minDecibels = -30 threw exception IndexSizeError: Failed to set the 'minDecibels' property on 'AnalyserNode': The minDecibels provided (-30) is greater than or equal to the maximum bound (-30)..
35 PASS node.maxDecibels = -100 threw exception IndexSizeError: Failed to set the 'maxDecibels' property on 'AnalyserNode': The maxDecibels provided (-100) is less than or equal to the minimum bound (-100)..
36 PASS node.smoothingTimeConstant = -0.1 threw exception IndexSizeError: Failed to set the 'smoothingTimeConstant' property on 'AnalyserNode': The smoothing value provided (-0.1) is outside the range [0, 1]..
37 PASS node.smoothingTimeConstant = 1.5 threw exception IndexSizeError: Failed to set the 'smoothingTimeConstant' property on 'AnalyserNode': The smoothing value provided (1.5) is outside the range [0, 1]..
38 PASS node.getChannelData(2) threw exception IndexSizeError: Failed to execute 'getChannelData' on 'AudioBuffer': channel index (2) exceeds number of channels (1).
39 PASS node.connect(null, 0, 0) threw exception SyntaxError: Failed to execute 'connect' on 'AudioNode': invalid destination node..
40 PASS node.connect(context.destination, 100, 0) threw exception IndexSizeError: Failed to execute 'connect' on 'AudioNode': output index (100) exceeds number of outputs (1)..
41 PASS node.connect(context.destination, 0, 100) threw exception IndexSizeError: Failed to execute 'connect' on 'AudioNode': input index (100) exceeds number of inputs (1)..
42 PASS node.connect(node2.gain, 100) threw exception IndexSizeError: Failed to execute 'connect' on 'AudioNode': output index (100) exceeds number of outputs (1)..
43 PASS node.disconnect(99) threw exception IndexSizeError: Failed to execute 'disconnect' on 'AudioNode': output index (99) exceeds number of outputs (1)..
44 PASS node.connect(otherContext.destination) threw exception SyntaxError: Failed to execute 'connect' on 'AudioNode': cannot connect to a destination belonging to a different audio context..
45 PASS node.channelCount = 99 threw exception NotSupportedError: Failed to set the 'channelCount' property on 'AudioNode': channel count (99) must be between 1 and 32..
46 PASS node.channelCountMode = 'fancy' did not throw exception.
47 PASS Invalid channelCountMode value did not change mode
48 PASS node.channelInterpretation = mode did not throw exception.
49 PASS Invalid channelInterpration value did not change mode
50 PASS context.destination.channelCount = 99 threw exception IndexSizeError: Failed to set the 'channelCount' property on 'AudioNode': The channel count provided (99) is outside the range [1, 2]..
51 PASS new OfflineAudioContext(32, 100, context.sampleRate) did not throw exception.
52 PASS new OfflineAudioContext(99, 100, context.sampleRate) threw exception IndexSizeError: Failed to construct 'OfflineAudioContext': The number of channels provided (99) is outside the range [0, 32]..
53 PASS new OfflineAudioContext(1, 100, 1) threw exception IndexSizeError: Failed to construct 'OfflineAudioContext': The sampleRate provided (1) is outside the range [3000, 192000]..
54 PASS new OfflineAudioContext(1, 100, 1e6) threw exception IndexSizeError: Failed to construct 'OfflineAudioContext': The sampleRate provided (1.00000e+6) is outside the range [3000, 192000]..
55 PASS new OfflineAudioContext(1, -88200000000000, 44100) threw exception NotSupportedError: Failed to construct 'OfflineAudioContext': OfflineAudioContext(1, 1448390656, 44100).
56 PASS node.oversample = '9x' did not throw exception.
57 PASS Invalid oversample value did not change node.oversample
58 PASS source = context.createBufferSource() did not throw exception.
59 PASS source.buffer = buffer did not throw exception.
60 PASS source.start(-1) threw exception InvalidAccessError: Failed to execute 'start' on 'AudioBufferSourceNode': Start time must be a finite non-negative number: -1.
61 PASS source.start(Infinity) threw exception InvalidAccessError: Failed to execute 'start' on 'AudioBufferSourceNode': Start time must be a finite non-negative number: Infinity.
62 PASS source.start(-Infinity) threw exception InvalidAccessError: Failed to execute 'start' on 'AudioBufferSourceNode': Start time must be a finite non-negative number: -Infinity.
63 PASS source.start(NaN) threw exception InvalidAccessError: Failed to execute 'start' on 'AudioBufferSourceNode': Start time must be a finite non-negative number: NaN.
64 PASS source.start(1, Infinity) threw exception InvalidStateError: Failed to execute 'start' on 'AudioBufferSourceNode': Offset must be a finite non-negative number: Infinity.
65 PASS source.start(1, -Infinity) threw exception InvalidStateError: Failed to execute 'start' on 'AudioBufferSourceNode': Offset must be a finite non-negative number: -Infinity.
66 PASS source.start(1, NaN) threw exception InvalidStateError: Failed to execute 'start' on 'AudioBufferSourceNode': Offset must be a finite non-negative number: NaN.
67 PASS source.start(1, -1) threw exception InvalidStateError: Failed to execute 'start' on 'AudioBufferSourceNode': Offset must be a finite non-negative number: -1.
68 PASS source.start(1, 1, Infinity) threw exception InvalidStateError: Failed to execute 'start' on 'AudioBufferSourceNode': Duration must be a finite non-negative number: Infinity.
69 PASS source.start(1, 1, -Infinity) threw exception InvalidStateError: Failed to execute 'start' on 'AudioBufferSourceNode': Duration must be a finite non-negative number: -Infinity.
70 PASS source.start(1, 1, NaN) threw exception InvalidStateError: Failed to execute 'start' on 'AudioBufferSourceNode': Duration must be a finite non-negative number: NaN.
71 PASS source.start(1, 1, -1) threw exception InvalidStateError: Failed to execute 'start' on 'AudioBufferSourceNode': Duration must be a finite non-negative number: -1.
72 PASS source.start() did not throw exception.
73 PASS source.stop(-1) threw exception InvalidAccessError: Failed to execute 'stop' on 'AudioBufferSourceNode': Stop time must be a finite non-negative number: -1.
74 PASS source.stop(Infinity) threw exception InvalidAccessError: Failed to execute 'stop' on 'AudioBufferSourceNode': Stop time must be a finite non-negative number: Infinity.
75 PASS source.stop(-Infinity) threw exception InvalidAccessError: Failed to execute 'stop' on 'AudioBufferSourceNode': Stop time must be a finite non-negative number: -Infinity.
76 PASS source.stop(NaN) threw exception InvalidAccessError: Failed to execute 'stop' on 'AudioBufferSourceNode': Stop time must be a finite non-negative number: NaN.
77 PASS source.stop() did not throw exception.
78 PASS source = context.createBufferSource() did not throw exception.
79 PASS source.start() did not throw exception.
80 PASS source = context.createBufferSource() did not throw exception.
81 PASS source.buffer = buffer did not throw exception.
82 PASS source.stop() threw exception InvalidStateError: Failed to execute 'stop' on 'AudioBufferSourceNode': cannot call stop without calling start first..
83 PASS source = context.createBufferSource() did not throw exception.
84 PASS source.buffer = buffer did not throw exception.
85 PASS source.start() did not throw exception.
86 PASS source.start() threw exception InvalidStateError: Failed to execute 'start' on 'AudioBufferSourceNode': cannot call start more than once..
87 PASS source = context.createBufferSource() did not throw exception.
88 PASS source.buffer = buffer did not throw exception.
89 PASS source.start() did not throw exception.
90 PASS source.stop() did not throw exception.
91 PASS source = context.createOscillator() did not throw exception.
92 PASS source.start(-1) threw exception InvalidAccessError: Failed to execute 'start' on 'OscillatorNode': Start time must be a finite non-negative number: -1.
93 PASS source.start(Infinity) threw exception InvalidAccessError: Failed to execute 'start' on 'OscillatorNode': Start time must be a finite non-negative number: Infinity.
94 PASS source.start(-Infinity) threw exception InvalidAccessError: Failed to execute 'start' on 'OscillatorNode': Start time must be a finite non-negative number: -Infinity.
95 PASS source.start(NaN) threw exception InvalidAccessError: Failed to execute 'start' on 'OscillatorNode': Start time must be a finite non-negative number: NaN.
96 PASS source.start() did not throw exception.
97 PASS source.stop(-1) threw exception InvalidAccessError: Failed to execute 'stop' on 'OscillatorNode': Stop time must be a finite non-negative number: -1.
98 PASS source.stop(Infinity) threw exception InvalidAccessError: Failed to execute 'stop' on 'OscillatorNode': Stop time must be a finite non-negative number: Infinity.
99 PASS source.stop(-Infinity) threw exception InvalidAccessError: Failed to execute 'stop' on 'OscillatorNode': Stop time must be a finite non-negative number: -Infinity.
100 PASS source.stop(NaN) threw exception InvalidAccessError: Failed to execute 'stop' on 'OscillatorNode': Stop time must be a finite non-negative number: NaN.
101 PASS source.stop() did not throw exception.
102 PASS osc = context.createOscillator() did not throw exception.
103 PASS osc.stop() threw exception InvalidStateError: Failed to execute 'stop' on 'OscillatorNode': cannot call stop without calling start first..
104 PASS osc1 = context.createOscillator() did not throw exception.
105 PASS osc1.start() did not throw exception.
106 PASS osc1.stop() did not throw exception.
107 PASS node.gain.exponentialRampToValueAtTime(-1, 0.1) threw exception InvalidAccessError: Failed to execute 'exponentialRampToValueAtTime' on 'AudioParam': Target value must be a finite positive number: -1.
108 PASS node.gain.exponentialRampToValueAtTime(0, 0.1) threw exception InvalidAccessError: Failed to execute 'exponentialRampToValueAtTime' on 'AudioParam': Target value must be a finite positive number: 0.
109 PASS oc = new OfflineAudioContext(1, 44100, 44100) did not throw exception.
110 PASS conv = oc.createConvolver() did not throw exception.
111 PASS conv.buffer = oc.createBuffer(1, 100, 22050) threw exception NotSupportedError: Failed to set the 'buffer' property on 'ConvolverNode': The buffer sample rate of 22050 does not match the context rate of 44100 Hz..
112 PASS panner.channelCount = 1 did not throw exception.
113 PASS panner.channelCount = 2 did not throw exception.
114 PASS panner.channelCount = 0 threw exception NotSupportedError: Failed to set the 'channelCount' property on 'AudioNode': The channelCount provided (0) is outside the range [1, 2]..
115 PASS panner.channelCount = 3 threw exception NotSupportedError: Failed to set the 'channelCount' property on 'AudioNode': The channelCount provided (3) is outside the range [1, 2]..
116 PASS panner.channelCountMode = 'max' threw exception NotSupportedError: Failed to set the 'channelCountMode' property on 'AudioNode': Failed to set the 'channelCountMode' property on 'PannerNode': 'max' is not allowed.
117 PASS panner.channelCountMode = 'explicit' did not throw exception.
118 PASS panner.channelCountMode = 'clamped-max' did not throw exception.
119 PASS panner.channelCountMode = 'junk' did not throw exception.
120 PASS script = context.createScriptProcessor(256, 3) did not throw exception.
121 PASS script.channelCount is 3
122 PASS script.channelCountMode is "explicit"
123 PASS script.channelCount = 3 did not throw exception.
124 PASS script.channelCount = 1 threw exception NotSupportedError: Failed to set the 'channelCount' property on 'AudioNode': channelCount cannot be changed from 3 to 1.
125 PASS script.channelCount = 7 threw exception NotSupportedError: Failed to set the 'channelCount' property on 'AudioNode': channelCount cannot be changed from 3 to 7.
126 PASS script.channelCountMode = 'explicit' did not throw exception.
127 PASS script.channelCountMode = 'max' threw exception NotSupportedError: Failed to set the 'channelCountMode' property on 'AudioNode': channelCountMode cannot be changed from 'explicit' to 'max'.
128 PASS script.channelCountMode = 'clamped-max' threw exception NotSupportedError: Failed to set the 'channelCountMode' property on 'AudioNode': channelCountMode cannot be changed from 'explicit' to 'clamped-max'.
129 PASS script.channelCountMode = 'junk' did not throw exception.
130 PASS successfullyParsed is true
131
132 TEST COMPLETE
133