Bug 1152153 - [EME] test_eme_persistent_sessions does not handle multi-stream cases - r=edwin
authorGerald Squelart <from_mozilla@squelart.com>
Tue, 14 Apr 2015 17:53:11 +1000
changeset 239210 865713e001117665bf2c63ffa38136d275d27984
parent 239209 b385aa775aefef6b22adfb4285832d71a7e8c1b1
child 239211 6b0986903758f643703da08a2fc087683db22883
push id28584
push usercbook@mozilla.com
push dateWed, 15 Apr 2015 12:29:01 +0000
treeherdermozilla-central@b58b07945d30 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersedwin
bugs1152153
milestone40.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 1152153 - [EME] test_eme_persistent_sessions does not handle multi-stream cases - r=edwin
dom/media/test/test_eme_persistent_sessions.html
--- a/dom/media/test/test_eme_persistent_sessions.html
+++ b/dom/media/test/test_eme_persistent_sessions.html
@@ -69,17 +69,16 @@ function startTest(test, token)
 
   var keySystemAccess;
 
   var v = SetupEME(test, token,
     {
       onsessionupdated: function(session) {
         Log(token, "Session created");
         var sessionId;
-        initialSession = session;
 
         // Once the session has loaded and has all its keys usable, close
         // all sessions without calling remove() on them.
         AwaitAllKeysUsable(session, test.keys, token)
         .then(function() {
           sessionId = session.sessionId;
           Log(token, "Closing session with id=" + sessionId);
           return session.close();
@@ -146,17 +145,17 @@ function startTest(test, token)
       sessionType: "persistent",
     }
   );
 
   LoadTest(test, v, token);
 }
 
 function beginTest() {
-  manager.runTests(gEMETests, startTest);
+  manager.runTests(gEMETests.filter(t => t.sessionCount === 1), startTest);
 }
 
 var prefs = [
   [ "media.mediasource.enabled", true ],
   [ "media.mediasource.mp4.enabled", true ],
 ];
 
 if (/Linux/.test(navigator.userAgent) ||