]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#569] Added unit tests for added functionality, also initialized variable the create...
authorDavid Seifried <david.c.seifried@gmail.com>
Wed, 15 Jun 2011 19:24:29 +0000 (15:24 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Wed, 15 Jun 2011 19:24:29 +0000 (15:24 -0400)
players/youtube/popcorn.youtube.js
players/youtube/popcorn.youtube.unit.js

index 82394b5f8f491e3d1dd15d7b8f34d68258893bf3..8eb348584acd1fd00684f07bd5b6f650a79e9778 100644 (file)
@@ -175,7 +175,7 @@ var onYouTubePlayerReady;
     this.loadStarted = false;
     this.loadedData = false;
     this.fullyLoaded = false;
-    this.paused = true;
+    this.paused = false;
     
     // If supplied as number, append  'px' on end
     // If suppliied as '###' or '###px', convert to number and append 'px' back on end
index b79d2be52d12160e32d453a5f2b75b2cc6e3576a..c3b0543b3ede088f16523c67299e019a1255d5a3 100644 (file)
@@ -33,7 +33,7 @@ test( "Popcorn YouTube Plugin Event Tests", function() {
       set1Executed = false,
       set2Executed = false,
       set3Executed = false,
-      expects = expectedEvents.length + 5,
+      expects = expectedEvents.length + 6,
       listeners = [];
       
   stop( 15000 );
@@ -45,6 +45,8 @@ test( "Popcorn YouTube Plugin Event Tests", function() {
   popcorn.exec(2, function() {
     ok( popcorn.currentTime() >= 2, "Check time synchronization." );
     plus();
+    ok( popcorn.video.paused == false, "Video is not paused" );
+    plus();
   });
   popcorn.exec(49, function() {
     ok( popcorn.currentTime() >= 49, "Check time synchronization." );