Added test for Flash video player.

Fix for video and captions sync. Test for this fix.
This commit is contained in:
Valera Rozuvan
2013-08-16 16:59:40 +03:00
committed by Jay Zoldak
parent 6bc8d3273d
commit a5a6d2d54a

View File

@@ -443,7 +443,7 @@
});
it('trigger seek event with the correct time', function() {
expect(videoPlayer.currentTime).toEqual(15);
expect(videoPlayer.currentTime).toEqual(14.91);
});
});
@@ -455,7 +455,20 @@
});
it('trigger seek event with the correct time', function() {
expect(videoPlayer.currentTime).toEqual(15);
expect(videoPlayer.currentTime).toEqual(14.91);
});
});
describe('when the player type is Flash at speed 0.75x', function () {
beforeEach(function () {
initialize();
videoSpeedControl.currentSpeed = '0.75';
state.currentPlayerMode = 'flash';
$('.subtitles li[data-start="14910"]').trigger('click');
});
it('trigger seek event with the correct time', function () {
expect(videoPlayer.currentTime).toEqual(15);
});
});
});