Bug 1289742. P7 - print PR logs for debugging r?kaku draft
authorJW Wang <jwwang@mozilla.com>
Mon, 06 Mar 2017 15:38:58 +0800
changeset 493868 b60d58f0785a90463b9e0d90fa8ccadf68dd82bb
parent 493867 08fbb51c4ac9c13510e8fe6cc3c66af8b404927c
child 493886 08e0dbff7b7ba314f51641686ee40ca904da6669
push id47870
push userjwwang@mozilla.com
push dateMon, 06 Mar 2017 07:41:53 +0000
reviewerskaku
bugs1289742
milestone54.0a1
Bug 1289742. P7 - print PR logs for debugging r?kaku MozReview-Commit-ID: 2x0TjjjcOuX
dom/media/test/test_load_same_resource.html
--- a/dom/media/test/test_load_same_resource.html
+++ b/dom/media/test/test_load_same_resource.html
@@ -77,14 +77,17 @@ function initTest(test, token) {
   e.src = test.name;
   e._expectedDuration = test.duration;
   ok(true, `Trying to load ${test.name}, duration=${test.duration}`);
   e.addEventListener("loadeddata", tryClone, {once: true});
   e.token = token;
   manager.started(token);
 }
 
-manager.runTests(gCloneTests, initTest);
+SimpleTest.waitForExplicitFinish();
+SpecialPowers.pushPrefEnv(
+  {"set": [["logging.MediaDecoder", "Debug"]]},
+  manager.runTests.bind(manager, gCloneTests, initTest));
 
 </script>
 </pre>
 </body>
 </html>