1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-25 11:13:52 +02:00

exporting addClass and removeClass. added api existence tests for fadeIn,fadeOut,addClass,removeClass

This commit is contained in:
Sean Bloomfield 2013-07-30 15:58:00 -05:00
parent 699c476575
commit f7a72b1f20
2 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,8 @@ goog.exportProperty(vjs.Component.prototype, 'dimensions', vjs.Component.prototy
goog.exportProperty(vjs.Component.prototype, 'ready', vjs.Component.prototype.ready);
goog.exportProperty(vjs.Component.prototype, 'fadeIn', vjs.Component.prototype.fadeIn);
goog.exportProperty(vjs.Component.prototype, 'fadeOut', vjs.Component.prototype.fadeOut);
goog.exportProperty(vjs.Component.prototype, 'addClass', vjs.Component.prototype.addClass);
goog.exportProperty(vjs.Component.prototype, 'removeClass', vjs.Component.prototype.removeClass);
goog.exportSymbol('videojs.Player', vjs.Player);
goog.exportProperty(vjs.Player.prototype, 'dispose', vjs.Player.prototype.dispose);

View File

@ -25,6 +25,10 @@ test('should be able to access expected player API methods', function() {
ok(player.one, 'one exists');
ok(player.bufferedPercent, 'bufferedPercent exists');
ok(player.dimensions, 'dimensions exists');
ok(player.fadeIn, 'fadeIn exists');
ok(player.fadeOut, 'fadeOut exists');
ok(player.addClass, 'addClass exists');
ok(player.removeClass, 'removeClass exists');
player.dispose();
});