mirror of
https://github.com/videojs/video.js.git
synced 2024-12-27 02:43:45 +02:00
Remove unneeded html5Mock
This commit is contained in:
parent
49f58e0bbd
commit
c4b4ebea4a
@ -525,9 +525,6 @@ test('should honor default inactivity timeout', function() {
|
|||||||
|
|
||||||
// default timeout is 2000ms
|
// default timeout is 2000ms
|
||||||
player = PlayerTest.makePlayer({});
|
player = PlayerTest.makePlayer({});
|
||||||
html5Mock = { player_: player };
|
|
||||||
|
|
||||||
vjs.Html5.prototype.createEl.call(html5Mock);
|
|
||||||
|
|
||||||
equal(player.userActive(), true, 'User is active on creation');
|
equal(player.userActive(), true, 'User is active on creation');
|
||||||
clock.tick(1800);
|
clock.tick(1800);
|
||||||
@ -546,9 +543,6 @@ test('should honor configured inactivity timeout', function() {
|
|||||||
player = PlayerTest.makePlayer({
|
player = PlayerTest.makePlayer({
|
||||||
'inactivityTimeout': 200
|
'inactivityTimeout': 200
|
||||||
});
|
});
|
||||||
html5Mock = { player_: player };
|
|
||||||
|
|
||||||
vjs.Html5.prototype.createEl.call(html5Mock);
|
|
||||||
|
|
||||||
equal(player.userActive(), true, 'User is active on creation');
|
equal(player.userActive(), true, 'User is active on creation');
|
||||||
clock.tick(150);
|
clock.tick(150);
|
||||||
@ -568,9 +562,6 @@ test('should honor disabled inactivity timeout', function() {
|
|||||||
player = PlayerTest.makePlayer({
|
player = PlayerTest.makePlayer({
|
||||||
'inactivityTimeout': 0
|
'inactivityTimeout': 0
|
||||||
});
|
});
|
||||||
html5Mock = { player_: player };
|
|
||||||
|
|
||||||
vjs.Html5.prototype.createEl.call(html5Mock);
|
|
||||||
|
|
||||||
equal(player.userActive(), true, 'User is active on creation');
|
equal(player.userActive(), true, 'User is active on creation');
|
||||||
clock.tick(5000);
|
clock.tick(5000);
|
||||||
|
Loading…
Reference in New Issue
Block a user