Bug 969392 - remove the check for 'canplaythrough' in 'ended' event handler r=kinetik
authorJW Wang <jwwang@mozilla.com>
Sat, 26 Apr 2014 00:46:32 -0400
changeset 180757 3b22ff21d731b8ee6e5afe85f9577c93faa1ad4c
parent 180756 169eaed7017b4a14f0e029361d729f83fcc41cca
child 180758 6ee5752cdf5be5f7b10ef60f976dc326a667e24c
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewerskinetik
bugs969392
milestone31.0a1
Bug 969392 - remove the check for 'canplaythrough' in 'ended' event handler r=kinetik
content/media/test/test_play_events.html
--- a/content/media/test/test_play_events.html
+++ b/content/media/test/test_play_events.html
@@ -29,18 +29,17 @@ function gotPlayEvent(event) {
      " uneval(v._state)=" + uneval(v._state) + " typeof(v._state)=" + typeof(v._state) + 
      " tokens["+v._state+"]=" + tokens[v._state] +
      " tokens["+v._state+"].indexOf(event.type)=" + tokens[v._state].indexOf(event.type));
   v._state = event.type;
 }
 
 function ended(event) {
   var v = event.target;
-  is(v._state, "canplaythrough", "Last event should be canplaythrough for " + v.src);
-  v.parentNode.removeChild(v);
+  removeNodeAndSource(v);
   manager.finished(v.token);
 }
 
 function initTest(test, token) {
   var v = document.createElement('video');
   v.token = token;
   manager.started(token);
   v._state = 0;