From e4ee5bf50201766ce474618f35fdc2b02ad11a4f Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Wed, 20 Apr 2011 19:51:39 -0400 Subject: [PATCH] [#475] removed commented out code and dead code that has been retired by #475 --- players/youtube/popcorn.youtube.unit.js | 40 ++----------------------- 1 file changed, 2 insertions(+), 38 deletions(-) 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 ) { -- 2.43.0