From 2f05dfc8ab8eab4cf96c6617a7330ec50d9d5ca5 Mon Sep 17 00:00:00 2001 From: Aleksandr_Afanasev1 Date: Wed, 14 Nov 2018 12:15:25 +0300 Subject: [PATCH] Fixed test about SEEK_TO_END_LIMIT --- tests/unit/main_html5/wrapper-api-tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/main_html5/wrapper-api-tests.js b/tests/unit/main_html5/wrapper-api-tests.js index 6f9bfcec..9c08bd94 100644 --- a/tests/unit/main_html5/wrapper-api-tests.js +++ b/tests/unit/main_html5/wrapper-api-tests.js @@ -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);