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:
@ -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;
|
||||
|
Reference in New Issue
Block a user