Bug 1021682 - Fix and re-enable test_streams_gc.html on B2G. r=cpearce
authorJW Wang <jwwang@mozilla.com>
Tue, 04 Nov 2014 18:11:00 -0500
changeset 214101 ab001e4e0efe7940830b07e00ee3e1d0e777fbd2
parent 214100 21402c47765a5ab35ebcc7749822daa4aa2c6d15
child 214102 07e169afc8aafdb4caca61088b0a88afebc9f7f1
push id27771
push userryanvm@gmail.com
push dateWed, 05 Nov 2014 19:04:24 +0000
treeherdermozilla-central@305b4fecce99 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce
bugs1021682
milestone36.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 1021682 - Fix and re-enable test_streams_gc.html on B2G. r=cpearce
dom/media/test/mochitest.ini
dom/media/test/test_streams_gc.html
--- a/dom/media/test/mochitest.ini
+++ b/dom/media/test/mochitest.ini
@@ -492,17 +492,16 @@ skip-if = (toolkit == 'android' && proce
 [test_streams_autoplay.html]
 [test_streams_element_capture.html]
 skip-if = (toolkit == 'android' && processor == 'x86') #x86 only bug 914439
 [test_streams_element_capture_createObjectURL.html]
 skip-if = (toolkit == 'android' && processor == 'x86') #x86 only bug 914439
 [test_streams_element_capture_playback.html]
 [test_streams_element_capture_reset.html]
 [test_streams_gc.html]
-skip-if = buildapp == 'b2g' # bug 1021682
 [test_streams_srcObject.html]
 [test_streams_tracks.html]
 [test_texttrack.html]
 [test_texttrackcue.html]
 [test_texttracklist.html]
 [test_texttrackregion.html]
 [test_timeupdate_small_files.html]
 skip-if = (toolkit == 'android' && processor == 'x86') #x86 only bug 914439
--- a/dom/media/test/test_streams_gc.html
+++ b/dom/media/test/test_streams_gc.html
@@ -2,17 +2,17 @@
 <html>
 <head>
   <title>Test garbage collection of captured stream (bug 806754)</title>
   <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>
 </head>
 <body onload="doTest()">
-<audio id="a"></audio>
+<audio id="a" preload="metadata"></audio>
 <pre id="test">
 <script class="testbody" type="text/javascript">
 SimpleTest.waitForExplicitFinish();
 
 var a = document.getElementById('a');
 a.src = getPlayableAudio(gSmallTests).name;
 
 function forceGC() {
@@ -31,15 +31,14 @@ function doTest() {
       a.addEventListener("ended", function() {
         ok(true, "GC completed OK");
         SimpleTest.finish();
       }, false);
     }, false);
   }, false);
 
   a.currentTime = a.duration;
-  
   setTimeout(forceGC, 0);
 }
 </script>
 </pre>
 </body>
 </html>