Merge pull request #14365 from edx/na/TNL-6333
TNL-6333 Log play_video event after seek_video event
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -94,6 +94,7 @@
|
||||
new_time: time,
|
||||
type: type
|
||||
});
|
||||
this.emitPlayVideoEvent = true;
|
||||
},
|
||||
|
||||
onSpeedChange: function(event, newSpeed, oldSpeed) {
|
||||
|
||||
Reference in New Issue
Block a user