Skip to content

Commit

Permalink
exporting addClass and removeClass. added api existence tests for fad…
Browse files Browse the repository at this point in the history
…eIn,fadeOut,addClass,removeClass
  • Loading branch information
Sean Bloomfield committed Jul 30, 2013
1 parent 699c476 commit f7a72b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 4 additions & 0 deletions test/unit/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit f7a72b1

Please sign in to comment.