1
0
mirror of https://github.com/videojs/video.js.git synced 2025-04-11 11:42:08 +02:00

Exported util namespace and mergeOptions

This commit is contained in:
Steve Heffernan 2013-12-02 17:11:08 -08:00
parent df57b302da
commit 522f45f458
2 changed files with 6 additions and 0 deletions

View File

@ -148,3 +148,6 @@ goog.exportSymbol('videojs.autoSetup', vjs.autoSetup);
goog.exportSymbol('videojs.plugin', vjs.plugin);
goog.exportSymbol('videojs.createTimeRange', vjs.createTimeRange);
goog.exportSymbol('videojs.util', vjs.util);
goog.exportProperty(vjs.util, 'mergeOptions', vjs.util.mergeOptions);

View File

@ -71,6 +71,9 @@ test('should export useful components to the public', function () {
ok(videojs.Menu, 'Menu should be public');
ok(videojs.MenuItem, 'MenuItem should be public');
ok(videojs.MenuButton, 'MenuButton should be public');
ok(videojs.util, 'util namespace should be public');
ok(videojs.util.mergeOptions, 'mergeOptions should be public');
});
test('should be able to initialize player twice on the same tag using string reference', function() {