Skip to content

Commit

Permalink
Merge pull request #343 from ooyala/bugfix/PLAYER-4679
Browse files Browse the repository at this point in the history
Fixed test about SEEK_TO_END_LIMIT
  • Loading branch information
zelibobla authored Nov 14, 2018
2 parents badb7a4 + 2f05dfc commit b9edfaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/main_html5/wrapper-api-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,10 @@ describe('main_html5 wrapper tests', function () {
it('should force seeks within SEEK_TO_END_LIMIT to seek to duration - 0.01', function(){
var duration = 10;
setFullSeekRange(duration);
var returns = wrapper.seek(duration - 3);
var returns = wrapper.seek(duration - 2.99);
expect(returns).to.be(true);
expect(element.currentTime).to.eql(duration - 0.01);
var returns = wrapper.seek(duration - 2.99);
var returns = wrapper.seek(duration - 2);
expect(returns).to.be(true);
expect(element.currentTime).to.eql(duration - 0.01);
var returns = wrapper.seek(duration - 1);
Expand Down

0 comments on commit b9edfaf

Please sign in to comment.