Bug 1278113: diabled audio stream analyzer debug canvas output draft
authorNils Ohlmeier [:drno] <drno@ohlmeier.org>
Wed, 20 Jul 2016 12:22:23 -0700
changeset 390193 d3b2be539778057e42b0f94a5ba35f3fba72ceb2
parent 390029 d224fc999cb6accb208af0a105f14433375e2e77
child 525947 55a754099daeeabb8d73ea8c011591e2c0a8005c
push id23615
push userdrno@ohlmeier.org
push dateWed, 20 Jul 2016 19:22:41 +0000
bugs1278113
milestone50.0a1
Bug 1278113: diabled audio stream analyzer debug canvas output MozReview-Commit-ID: CJTnzVyugMH
dom/media/tests/mochitest/head.js
--- a/dom/media/tests/mochitest/head.js
+++ b/dom/media/tests/mochitest/head.js
@@ -781,19 +781,22 @@ CommandChain.prototype = {
 };
 
 function AudioStreamHelper() {
   this._context = new AudioContext();
 }
 
 AudioStreamHelper.prototype = {
   checkAudio: function(stream, analyser, fun) {
+    /*
     analyser.enableDebugCanvas();
     return analyser.waitForAnalysisSuccess(fun)
       .then(() => analyser.disableDebugCanvas());
+    */
+    return analyser.waitForAnalysisSuccess(fun);
   },
 
   checkAudioFlowing: function(stream) {
     var analyser = new AudioStreamAnalyser(this._context, stream);
     var freq = analyser.binIndexForFrequency(TEST_AUDIO_FREQ);
     return this.checkAudio(stream, analyser, array => array[freq] > 200);
   },