Bug 969392 - Remove the check for 'canplaythrough' in 'ended' event handler. r=kinetik, a=test-only
authorJW Wang <jwwang@mozilla.com>
Sat, 26 Apr 2014 00:46:32 -0400
changeset 193181 00f528e4aaa6466d4b1d8eefd8fa77ce8480aa36
parent 193180 dc37cd737acd4143d3f2c0d25d1dde32e7f603c4
child 193182 971c128f84bb04db922d28437d38e7f6f05bb389
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik, test-only
bugs969392
milestone30.0a2
Bug 969392 - Remove the check for 'canplaythrough' in 'ended' event handler. r=kinetik, a=test-only
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;