diff --git a/src/js/exports.js b/src/js/exports.js index 33c2958737..6bcd5d8e60 100644 --- a/src/js/exports.js +++ b/src/js/exports.js @@ -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); diff --git a/test/unit/api.js b/test/unit/api.js index 98970dc9aa..ef2e0a44ae 100644 --- a/test/unit/api.js +++ b/test/unit/api.js @@ -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(); });