1
0
mirror of https://github.com/videojs/video.js.git synced 2025-11-29 23:07:51 +02:00

Close GH-555: Export requestFullScreen().

This commit is contained in:
Steve Heffernan
2013-06-03 13:19:46 -07:00
parent 21cd77358a
commit f6bd819c5c
2 changed files with 16 additions and 0 deletions

View File

@@ -37,3 +37,17 @@ test('should be able to initialize player twice on the same tag using string ref
player = videojs('example_1');
player.dispose();
});
test('requestFullScreen and cancelFullScreen methods should exist', function() {
var videoTag = PlayerTest.makeTag();
var id = videoTag.id;
var fixture = document.getElementById('qunit-fixture');
fixture.appendChild(videoTag);
var player = videojs('example_1');
ok(player.requestFullScreen, 'requestFullScreen exists');
ok(player.requestFullScreen, 'cancelFullScreen exists');
player.dispose();
});