Skip to content

Commit

Permalink
Fixed test about SEEK_TO_END_LIMIT
Browse files Browse the repository at this point in the history
  • Loading branch information
ALexanderSPB committed Nov 14, 2018
1 parent a1a202c commit 2f05dfc
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 2f05dfc

Please sign in to comment.