Skip to content

Commit

Permalink
adjust for FF
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed May 6, 2018
1 parent 372456b commit 532e285
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions test/defaults.spec.js
Expand Up @@ -11,4 +11,12 @@ describe('pluginDefaultOptions', function() {
it('returns a non-empty object', function() {
expect(pluginDefaultOptions).toBeNonEmptyObject();
});

/** @test {pluginDefaultOptions} */
it('should have correct default values', function() {
expect(pluginDefaultOptions).toEqual({
debug: false,
msDisplayMax: 3
});
});
});
12 changes: 6 additions & 6 deletions test/videojs.wavesurfer.spec.js
Expand Up @@ -81,8 +81,8 @@ describe('Wavesurfer', function() {
it('should get current time', function(done) {

player.one('playbackFinish', function() {
expect(player.wavesurfer().getCurrentTime()).toEqual(
TestHelpers.EXAMPLE_AUDIO_DURATION);
expect(player.wavesurfer().getCurrentTime()).toBeNear(
TestHelpers.EXAMPLE_AUDIO_DURATION, 0.01);
done();
});

Expand Down Expand Up @@ -119,8 +119,8 @@ describe('Wavesurfer', function() {

player.one('waveReady', function() {

expect(player.wavesurfer().getDuration()).toEqual(
TestHelpers.EXAMPLE_AUDIO_DURATION);
expect(player.wavesurfer().getDuration()).toBeNear(
TestHelpers.EXAMPLE_AUDIO_DURATION, 0.01);

done();
});
Expand All @@ -131,8 +131,8 @@ describe('Wavesurfer', function() {

player.one('waveReady', function() {

expect(player.wavesurfer().getDuration()).toEqual(
TestHelpers.EXAMPLE_AUDIO_DURATION);
expect(player.wavesurfer().getDuration()).toBeNear(
TestHelpers.EXAMPLE_AUDIO_DURATION, 0.01);
player.wavesurfer().setDuration(0.1);

// only updates player visually
Expand Down

0 comments on commit 532e285

Please sign in to comment.