1
0
mirror of https://github.com/videojs/video.js.git synced 2025-07-05 00:58:52 +02:00

@heff converted all classes to use ES6 classes. closes #1993

This commit is contained in:
heff
2015-04-14 13:08:32 -07:00
parent 7f70f09621
commit a02ee27802
74 changed files with 6364 additions and 6449 deletions

View File

@ -73,7 +73,8 @@ test('should be able to access expected player API methods', function() {
});
test('should be able to access expected component API methods', function() {
var comp = videojs.getComponent('Component').create({ id: function(){ return 1; }, reportUserActivity: function(){} });
var Component = videojs.getComponent('Component');
var comp = new Component({ id: function(){ return 1; }, reportUserActivity: function(){} });
// Component methods
ok(comp.player, 'player exists');
@ -110,7 +111,7 @@ test('should be able to access expected component API methods', function() {
});
test('should be able to access expected MediaTech API methods', function() {
var media = videojs.getComponent('MediaTechController');
var media = videojs.getComponent('Tech');
var mediaProto = media.prototype;
var html5 = videojs.getComponent('Html5');
var html5Proto = html5.prototype;