Bug 1111831 - Play the video element in test_multiple_mediastreamtracks.html to ensure metadata gets loaded. r=roc
authorAndreas Pehrson <pehrsons@gmail.com>
Mon, 15 Dec 2014 14:45:00 -0500
changeset 220530 b56aec18ea9e6e36935fa7008b62b0170fc1b731
parent 220529 9a464275ec43005ac308056a5b52c5b5cce087d8
child 220531 5f55045513014254f85c76bbfcf6ab0db99138a1
push id10503
push userryanvm@gmail.com
push dateFri, 19 Dec 2014 20:13:42 +0000
treeherderfx-team@98ee95ac6be5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs1111831
milestone37.0a1
Bug 1111831 - Play the video element in test_multiple_mediastreamtracks.html to ensure metadata gets loaded. r=roc
dom/media/test/test_multiple_mediastreamtracks.html
--- a/dom/media/test/test_multiple_mediastreamtracks.html
+++ b/dom/media/test/test_multiple_mediastreamtracks.html
@@ -17,16 +17,17 @@ function startTest() {
     element.onloadedmetadata = function() {
       is(stream.getAudioTracks().length, 4, 'Length of audio tracks should be 4.');
       is(stream.getVideoTracks().length, 3, 'Length of vudio tracks should be 3.');
       SimpleTest.finish();
     };
 
     mStream = stream;
     element.mozSrcObject = mStream;
+    element.play();
   })
   .catch(function(reason) {
     ok(false, "unexpected error = " + reason.message);
     SimpleTest.finish();
   });
 }
 
 SimpleTest.waitForExplicitFinish();