From f7a72b1f201f05b92227a2a66683d5b57d5c274f Mon Sep 17 00:00:00 2001 From: Sean Bloomfield Date: Tue, 30 Jul 2013 15:58:00 -0500 Subject: [PATCH] exporting addClass and removeClass. added api existence tests for fadeIn,fadeOut,addClass,removeClass --- src/js/exports.js | 2 ++ test/unit/api.js | 4 ++++ 2 files changed, 6 insertions(+) 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(); });