Bug 1179547 - Release decoders when tests finish as well as cubeb streams to reduce the number of concurrent cubeb streams and the chance of OpenCubeb() errors. r=kinetik, a=test-only
authorJW Wang <jwwang@mozilla.com>
Tue, 01 Sep 2015 12:02:55 +0800
changeset 289054 f6523eb2a0f2708941d697a2d61fead37f2d1f1b
parent 289053 32f4ac6166137cf462dfec4cb9b4a35e9537919f
child 289055 4c75025480b62e05822c5de8151af6436d4ad80b
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik, test-only
bugs1179547
milestone42.0a2
Bug 1179547 - Release decoders when tests finish as well as cubeb streams to reduce the number of concurrent cubeb streams and the chance of OpenCubeb() errors. r=kinetik, a=test-only
dom/media/test/test_fragment_play.html
--- a/dom/media/test/test_fragment_play.html
+++ b/dom/media/test/test_fragment_play.html
@@ -6,17 +6,17 @@
   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
   <script type="text/javascript" src="manifest.js"></script>
   <script type="text/javascript" src="fragment_play.js"></script>
 </head>
 <body>
 <pre id="test">
 <script class="testbody" type="text/javascript">
-
+PARALLEL_TESTS = 1;
 var manager = new MediaTestManager;
 
 // Fragment parameters to try. These tests
 // try playing the video. Tests for other fragment
 // formats are in test_fragment_noplay.html.
 var gFragmentParams = [
   { fragment: "", start: null, end: null },
   { fragment: "#t=,", start: null, end: null },
@@ -73,19 +73,17 @@ function startTest(test, token) {
   var name = test.name + " fragment test";
   var localIs = function(name) { return function(a, b, msg) {
     is(a, b, name + ": " + msg);
   }}(name);
   var localOk = function(name) { return function(a, msg) {
     ok(a, name + ": " + msg);
   }}(name);
   var localFinish = function(v, manager) { return function() {
-    if (v.parentNode) {
-      v.parentNode.removeChild(v);
-    }
+    removeNodeAndSource(v);
     manager.finished(v.token);
   }}(v, manager);
   window['test_fragment_play'](v, test.start, test.end, localIs, localOk, localFinish);
 }
 
 manager.runTests(createTestArray(), startTest);
 
 </script>