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 committed Oct 18, 2018
1 parent b368e27 commit 3218556
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tests/wpt/metadata/MANIFEST.json
Expand Up @@ -663692,7 +663692,7 @@
"support"
],
"webaudio/the-audio-api/the-audiobuffersourcenode-interface/audiobuffersource-multi-channels.html": [
"01ba3b122d8c9b5e8107cfc1226bb697e2929645",
"b7e6b93ac42f6dc8b9435447b2b4f78e70c2b597",
"testharness"
],
"webaudio/the-audio-api/the-audiobuffersourcenode-interface/audiobuffersource-one-sample-loop.html": [
Expand Down
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 3218556

Please sign in to comment.