From: ScottDowne Date: Wed, 20 Apr 2011 23:51:39 +0000 (-0400) Subject: [#475] removed commented out code and dead code that has been retired by #475 X-Git-Tag: v0.5~8^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e4ee5bf50201766ce474618f35fdc2b02ad11a4f;p=popcorn-js.git [#475] removed commented out code and dead code that has been retired by #475 --- diff --git a/players/youtube/popcorn.youtube.unit.js b/players/youtube/popcorn.youtube.unit.js index 3632fdb..12edb7d 100644 --- a/players/youtube/popcorn.youtube.unit.js +++ b/players/youtube/popcorn.youtube.unit.js @@ -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 ) {