]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#475] removed commented out code and dead code that has been retired by #475
authorScottDowne <sdowne@learn.senecac.on.ca>
Wed, 20 Apr 2011 23:51:39 +0000 (19:51 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Wed, 20 Apr 2011 23:51:39 +0000 (19:51 -0400)
players/youtube/popcorn.youtube.unit.js

index 3632fdbef000b0e51c9dc289a7444b650fbd0126..12edb7d72523c4f3813a1a71623dd4e35cd2723e 100644 (file)
@@ -1,42 +1,6 @@
-var ytReady = true; /*
-    popcorn = Popcorn( Popcorn.youtube( 'video' ) );
-
-popcorn.listen( "load", function onYouTubePlayerReady() {
-  ytReady = true;
-});*/
-
-test( "Popcorn YouTube Plugin Startup", function() {
-  var time = 0,
-      wait = 100,
-      timeout = 10000;
-      
-  // wait for YouTube to start
-  stop( timeout + wait );
-
-  // run in an interval check if YouTube has started
-  var interval = setInterval(function() {
-    time += wait;
-
-    if ( ytReady ) {
-      start();
-      ok( true, "YouTube has started." );
-      clearInterval( interval );
-      return;
-    }
-
-    if ( time > timeout ) {
-      ok( false, "YouTube cannot be started." );
-      clearInterval( interval );
-    }
-  }, wait);
-});
-
 test( "Popcorn YouTube Plugin Event Tests", function() {
-  /*if ( !ytReady ) {
-    ok( false, "YouTube did not start." );
-    return;
-  }*/
-var popcorn = Popcorn( Popcorn.youtube( 'video', "http://www.youtube.com/e/ac7KhViaVqc" ) );
+
+  var popcorn = Popcorn( Popcorn.youtube( 'video', "http://www.youtube.com/e/ac7KhViaVqc" ) );
   
   function plus(){ 
     if ( ++count == expects ) {