From 557127c0d42a6161abde708dfff8825d4ae76ce7 Mon Sep 17 00:00:00 2001 From: David Seifried Date: Wed, 7 Sep 2011 11:35:19 -0400 Subject: [PATCH] More work on unit tests and such --- popcorn.js | 2 +- test/popcorn.unit.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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(); -- 2.43.0