]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
More work on unit tests and such
authorDavid Seifried <david.c.seifried@gmail.com>
Wed, 7 Sep 2011 15:35:19 +0000 (11:35 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Wed, 7 Sep 2011 15:35:19 +0000 (11:35 -0400)
popcorn.js
test/popcorn.unit.js

index 2021603f406a1d56988c43ab8b536143f7c83fbf..9f6b0913db0b4e57fc2257aaf57ed2b5b3a214fc 100644 (file)
       }
     }
     
-    //this.timeUpdate( obj, null );
+    this.timeUpdate( obj, null );
 
     // Store references to user added trackevents in ref table
     if ( track._id ) {
index 1fecb607a23039195b9e10e662da974100582877..e618179ca021ffa448294f16dd262178e2812712 100644 (file)
@@ -2597,8 +2597,8 @@ test("Index Integrity", function () {
 
   stop( 10000 );
 
-  equals(p.data.trackEvents.endIndex, 0, "p.data.trackEvents.endIndex is 0");
-  equals(p.data.trackEvents.startIndex, 0, "p.data.trackEvents.startIndex is 0");
+  equals(p.data.trackEvents.endIndex, 1, "p.data.trackEvents.endIndex is 1");
+  equals(p.data.trackEvents.startIndex, 1, "p.data.trackEvents.startIndex is 1");
   equals(p.data.trackEvents.byStart.length, 3, "p.data.trackEvents.byStart.length is 3 - before play" );
 
 
@@ -2658,6 +2658,8 @@ test("Popcorn.disable/enable/toggle", function() {
 
   expect( expects );
 
+  $pop.currentTime(39).play();
+
   function plus() {
     if ( ++count === expects ) {
       start();