1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-27 02:43:45 +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

@ -56,6 +56,8 @@ goog.exportProperty(vjs.Component.prototype, 'ready', vjs.Component.prototype.re
goog.exportSymbol('videojs.Player', vjs.Player);
goog.exportProperty(vjs.Player.prototype, 'dispose', vjs.Player.prototype.dispose);
goog.exportProperty(vjs.Player.prototype, 'requestFullScreen', vjs.Player.prototype.requestFullScreen);
goog.exportProperty(vjs.Player.prototype, 'cancelFullScreen', vjs.Player.prototype.cancelFullScreen);
goog.exportSymbol('videojs.MediaLoader', vjs.MediaLoader);
goog.exportSymbol('videojs.TextTrackDisplay', vjs.TextTrackDisplay);

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();
});