From: David Seifried Date: Wed, 7 Sep 2011 15:35:19 +0000 (-0400) Subject: More work on unit tests and such X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=557127c0d42a6161abde708dfff8825d4ae76ce7;p=popcorn-js.git More work on unit tests and such --- diff --git a/popcorn.js b/popcorn.js index 2021603..9f6b091 100644 --- a/popcorn.js +++ b/popcorn.js @@ -756,7 +756,7 @@ } } - //this.timeUpdate( obj, null ); + this.timeUpdate( obj, null ); // Store references to user added trackevents in ref table if ( track._id ) { diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index 1fecb60..e618179 100644 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -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();