Skip to content

Commit

Permalink
Assert decodeAudioData not reach the catch
Browse files Browse the repository at this point in the history
  • Loading branch information
CYBAI authored and Servo WPT Sync committed Oct 23, 2018
1 parent af86a2e commit a0438c4
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
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(
Expand Down

0 comments on commit a0438c4

Please sign in to comment.