Bug 1091155 - Don't check if 'playing' has fired for it depends on how fast decoding is which is not reliable. r=cpearce, a=test-only
authorJW Wang <jwwang@mozilla.com>
Wed, 22 Apr 2015 10:26:31 +0800
changeset 260246 2161d1dc7e2b
parent 260245 50550eca1fa2
child 260247 f6448c4cf87f
push id727
push userryanvm@gmail.com
push date2015-04-23 14:45 +0000
treeherdermozilla-release@7c66212e4c09 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce, test-only
bugs1091155
milestone38.0
Bug 1091155 - Don't check if 'playing' has fired for it depends on how fast decoding is which is not reliable. r=cpearce, a=test-only
dom/media/test/test_eme_playback.html
--- a/dom/media/test/test_eme_playback.html
+++ b/dom/media/test/test_eme_playback.html
@@ -44,35 +44,31 @@ function startTest(test, token)
       onsessioncreated: function(session) {
         sessions.push(session);
         session.addEventListener("keystatuseschange", KeysChangeFunc(session, test.keys, token), false);
       }
     }
   );
 
   var gotEncrypted = false;
-  var gotPlaying = false;
 
   v.addEventListener("encrypted", function(ev) {
     gotEncrypted = true;
   });
 
-  v.addEventListener("playing", function () { gotPlaying = true; });
-
   v.addEventListener("loadedmetadata", function() {
     ok(SpecialPowers.do_lookupGetter(v, "isEncrypted").apply(v),
        TimeStamp(token) + " isEncrypted should be true");
     is(v.isEncrypted, undefined, "isEncrypted should not be accessible from content");
   });
 
   v.addEventListener("ended", function(ev) {
     ok(true, TimeStamp(token) + " got ended event");
 
     ok(gotEncrypted, TimeStamp(token) + " encrypted event should have fired");
-    ok(gotPlaying, TimeStamp(token) + " playing event should have fired");
 
     ok(Math.abs(test.duration - v.duration) < 0.1,
        TimeStamp(token) + " Duration of video should be corrrect");
     ok(Math.abs(test.duration - v.currentTime) < 0.1,
        TimeStamp(token) + " Current time should be same as duration");
 
     // Verify all sessions had all keys went sent the to the CDM usable, and thus
     // that we received keystatuseschange event(s).