blob: 932c936514ecc611a69c33e972990b8d468b8a9f [file] [log] [blame]
Basic functionality test of closing an AudioContext
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS context = new AudioContext() did not throw exception.
PASS context.state is "running"
PASS osc = context.createOscillator() did not throw exception.
PASS gain = context.createGain() did not throw exception.
PASS gain.connect(context.destination) did not throw exception.
PASS context.close() was correctly resolved
PASS gain.disconnect(destination) did not throw exception.
PASS context.createAnalyser() threw exception InvalidStateError: Failed to execute 'createAnalyser' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createBiquadFilter() threw exception InvalidStateError: Failed to execute 'createBiquadFilter' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createBuffer(1, 1, 48000) did not throw exception.
PASS context.createBufferSource() threw exception InvalidStateError: Failed to execute 'createBufferSource' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createChannelMerger() threw exception InvalidStateError: Failed to execute 'createChannelMerger' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createChannelSplitter() threw exception InvalidStateError: Failed to execute 'createChannelSplitter' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createConvolver() threw exception InvalidStateError: Failed to execute 'createConvolver' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createDelay() threw exception InvalidStateError: Failed to execute 'createDelay' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createDynamicsCompressor() threw exception InvalidStateError: Failed to execute 'createDynamicsCompressor' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createGain() threw exception InvalidStateError: Failed to execute 'createGain' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createOscillator() threw exception InvalidStateError: Failed to execute 'createOscillator' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createPanner() threw exception InvalidStateError: Failed to execute 'createPanner' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createPeriodicWave(wave, wave) threw exception InvalidStateError: Failed to execute 'createPeriodicWave' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createScriptProcessor() threw exception InvalidStateError: Failed to execute 'createScriptProcessor' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createStereoPanner() threw exception InvalidStateError: Failed to execute 'createStereoPanner' on 'BaseAudioContext': AudioContext has been closed..
PASS context.createWaveShaper() threw exception InvalidStateError: Failed to execute 'createWaveShaper' on 'BaseAudioContext': AudioContext has been closed..
PASS osc.connect(gain) threw exception InvalidStateError: Failed to execute 'connect' on 'AudioNode': Cannot connect after the context has been closed..
PASS gain.disconnect() did not throw exception.
PASS Attempt to resume a closed context was correctly rejected
PASS Closing context again correctly rejected promise.
PASS context.destination is null
PASS offline = new OfflineAudioContext(1, 1000, 48000) did not throw exception.
PASS offline.state is "suspended"
PASS offline.close is undefined.
PASS successfullyParsed is true
TEST COMPLETE