Bug 1278113 - Disable audio stream analyzer debug canvas output. r=padenot, a=test-only
authorNils Ohlmeier [:drno] <drno@ohlmeier.org>
Wed, 20 Jul 2016 12:22:23 -0700
changeset 342338 d6db17715a5fd3bc606b8dbb1dd1faf3ecf7cb61
parent 342337 cfc0ce74e88d401620def253ae062beb251b1ea3
child 342339 84ea7e08d1bb9db514bf62c392208da0ac6f2575
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot, test-only
bugs1278113
milestone49.0
Bug 1278113 - Disable audio stream analyzer debug canvas output. r=padenot, a=test-only MozReview-Commit-ID: CJTnzVyugMH
dom/media/tests/mochitest/head.js
--- a/dom/media/tests/mochitest/head.js
+++ b/dom/media/tests/mochitest/head.js
@@ -759,19 +759,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);
   },