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 198905 3b22ff21d731b8ee6e5afe85f9577c93faa1ad4c
parent 198904 169eaed7017b4a14f0e029361d729f83fcc41cca
child 198906 6ee5752cdf5be5f7b10ef60f976dc326a667e24c
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs969392
milestone31.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 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;