mirror of
https://github.com/servo/servo.git
synced 2025-09-13 00:18:22 +01:00
Assert decodeAudioData
not reach the catch
This commit is contained in:
parent
b368e27dd5
commit
32185566c9
2 changed files with 12 additions and 12 deletions
|
@ -27,17 +27,17 @@ Test AudioBufferSourceNode supports 5.1 channel.
|
|||
6, sampleRate * toneLengthSeconds, sampleRate);
|
||||
}, 'Creating context for testing').notThrow();
|
||||
should(
|
||||
Audit
|
||||
.loadFileFromUrl(
|
||||
'audiobuffersource-multi-channels-expected.wav')
|
||||
.then(arrayBuffer => {
|
||||
context.decodeAudioData(arrayBuffer).then(audioBuffer => {
|
||||
expectedAudio = audioBuffer;
|
||||
task.done();
|
||||
});
|
||||
}),
|
||||
'Fetching expected audio')
|
||||
.beResolved();
|
||||
Audit
|
||||
.loadFileFromUrl('audiobuffersource-multi-channels-expected.wav')
|
||||
.then(arrayBuffer => {
|
||||
context.decodeAudioData(arrayBuffer).then(audioBuffer => {
|
||||
expectedAudio = audioBuffer;
|
||||
task.done();
|
||||
}).catch(error => {
|
||||
assert_unreached("Could not decode audio data due to " + error.message);
|
||||
})
|
||||
})
|
||||
, 'Fetching expected audio').beResolved();
|
||||
});
|
||||
|
||||
audit.define(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue