]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#610] Fixes canplayall event timeout
authorrwldrn <waldron.rick@gmail.com>
Fri, 24 Jun 2011 13:10:17 +0000 (09:10 -0400)
committerrwldrn <waldron.rick@gmail.com>
Fri, 24 Jun 2011 13:10:17 +0000 (09:10 -0400)
test/popcorn.unit.js

index 6b1192b7e324452a31c5efbe7eaaedad1a000294..15178e45b79e3cf212084d69731c962b073c5523 100644 (file)
@@ -646,7 +646,7 @@ test("Popcorn.events.hooks: canplayall", function() {
     }
   }
 
-  stop( 10000 );
+  stop( 20000 );
 
   var video = document.createElement("video"),
     sources = {
@@ -658,8 +658,10 @@ test("Popcorn.events.hooks: canplayall", function() {
 
   video.id = "event-fixture";
   video.controls = true;
+  video.autoplay = true;
   video.preload = "auto";
 
+
   Popcorn.forEach( sources, function( source, type ) {
     source.src = url + type;
     video.appendChild( source );