mirror of
https://github.com/videojs/video.js.git
synced 2024-11-30 09:06:49 +02:00
Close GH-555: Export requestFullScreen().
This commit is contained in:
parent
21cd77358a
commit
f6bd819c5c
@ -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);
|
||||
|
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user