Bug 910903 - Add logging to test_mediarecorder_avoid_recursion.html to help find out the timeout issue. r=jsmith
authorRandy Lin <rlin@mozilla.com>
Sat, 07 Sep 2013 20:41:57 +0800
changeset 146146 fe975eaab49719076f42d4c6909846f5c40cc75c
parent 146145 0c394a31900415601f2e4410e832b68c2d3d47e6
child 146147 f7ac432b38b5d1d15e58ae41d80fe4d209ac280a
push id25243
push userryanvm@gmail.com
push dateMon, 09 Sep 2013 19:52:36 +0000
treeherdermozilla-central@9edc229b7d09 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjsmith
bugs910903
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 910903 - Add logging to test_mediarecorder_avoid_recursion.html to help find out the timeout issue. r=jsmith
content/media/test/test_mediarecorder_avoid_recursion.html
--- a/content/media/test/test_mediarecorder_avoid_recursion.html
+++ b/content/media/test/test_mediarecorder_avoid_recursion.html
@@ -10,25 +10,29 @@
 a Bug 897776</a>
 <pre id="test">
 <script class="testbody" type="text/javascript">
 function startTest() {
   navigator.mozGetUserMedia({audio: true, fake: true}, function(stream) {
     var mediaRecorder = new MediaRecorder(stream);
     var count = 0;
     mediaRecorder.start();
+    info("mediaRecorder start");
     mediaRecorder.ondataavailable = function (e) {
       if (count++ == 30) {
         stream.stop();
       }
       if (mediaRecorder.state == 'recording') {
+        info("get data again");
         mediaRecorder.requestData();
       }
+      info("got ondataavailable data size = " + e.data.size);
     }
     mediaRecorder.requestData();
+    info("mediaRecorder requestData");
     mediaRecorder.onstop = function () {
       ok(true, "requestData within ondataavailable successfully avoided infinite recursion");
       SimpleTest.finish();
     }
   }, function(err) {
     ok(false, 'Unexpected error fired with: ' + err);
     SimpleTest.finish();
   });