Merge pull request #14365 from edx/na/TNL-6333

TNL-6333 Log play_video event after seek_video event
This commit is contained in:
noraiz-anwar
2017-01-24 20:26:19 +05:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -78,6 +78,13 @@
new_time: 1,
type: 'any'
});
expect(state.videoEventsPlugin.emitPlayVideoEvent).toBeTruthy();
});
it('can emit "play_video" event after "seek_video" event ', function() {
state.videoEventsPlugin.emitPlayVideoEvent = false;
state.el.trigger('seek', [1, 0, 'any']);
expect(state.videoEventsPlugin.emitPlayVideoEvent).toBeTruthy();
});
it('can emit "stop_video" event', function() {

View File

@@ -94,6 +94,7 @@
new_time: time,
type: type
});
this.emitPlayVideoEvent = true;
},
onSpeedChange: function(event, newSpeed, oldSpeed) {