break;
}
}
+
+ this.timeUpdate( obj, null );
// Store references to user added trackevents in ref table
if ( track._id ) {
tracksByStart = tracks.byStart;
// Playbar advancing
- if ( previousTime < currentTime ) {
+ if ( previousTime <= currentTime ) {
while ( tracksByEnd[ tracks.endIndex ] && tracksByEnd[ tracks.endIndex ].end <= currentTime ) {
// If plugin does not exist on this instance, remove it
});
+test("timeUpdate functionality", function() {
+
+ var $pop = Popcorn( "#video" ),
+ count = 0,
+ expects = 5;
+
+ expect( expects );
+
+ function plus() {
+ if ( ++count === expects ) {
+ start();
+
+ Popcorn.removeInstance( $pop );
+ }
+ }
+
+ Popcorn.plugin("timeUpdateTester", function() {
+ return {
+ start: function(){},
+ end: function(){}
+ };
+ });
+});
+
test("Index Integrity", function () {