Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Unified Diff: LayoutTests/webaudio/decode-audio-data-basic.html

Issue 1097873003: Revert of AudioContext.decodeAudioData returns a Promise (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/webaudio/decode-audio-data-basic-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/webaudio/decode-audio-data-basic.html
diff --git a/LayoutTests/webaudio/decode-audio-data-basic.html b/LayoutTests/webaudio/decode-audio-data-basic.html
index 2452cf0f49af2677a0c20b1d6ffa7ce896eff103..d97e4c74bed44782c0fc096fc0bc643155358ac0 100644
--- a/LayoutTests/webaudio/decode-audio-data-basic.html
+++ b/LayoutTests/webaudio/decode-audio-data-basic.html
@@ -18,13 +18,12 @@
var context = new AudioContext();
-context.decodeAudioData(null,
- function () {
- testFailed("decodeAudioData(null) did not invoke errorCallback.");
- },
- function (e) {
- testPassed("decodeAudioData(null) invoked errorCallback correctly: " + e);
- });
+try {
+ context.decodeAudioData(null, function(){}, function(){});
+ testFailed("decodeAudioData should raise exception when arraybuffer parameter is null.");
+} catch(e) {
+ testPassed("decodeAudioData raises exception correctly when arraybuffer parameter is null.");
+}
var decodeCaseArray = [{url: "resources/media/24bit-44khz.wav", result: true},
{url: "resources/media/invalid-audio-file.txt", result: false}];
« no previous file with comments | « no previous file | LayoutTests/webaudio/decode-audio-data-basic-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698