mirror of
https://github.com/videojs/video.js.git
synced 2024-11-28 08:58:46 +02:00
Update tests to grab/restore progressEventsFeature
This commit is contained in:
parent
e60f2eef5c
commit
599217f158
@ -1,14 +1,14 @@
|
||||
var noop = function() {}, clock, features;
|
||||
var noop = function() {}, clock, progessEventsFeature;
|
||||
|
||||
module('Media Tech', {
|
||||
'setup': function() {
|
||||
clock = sinon.useFakeTimers();
|
||||
features = videojs.util.mergeOptions({}, videojs.MediaTechController.prototype.features);
|
||||
videojs.MediaTechController.prototype.features['progressEvents'] = false;
|
||||
progessEventsFeature = videojs.MediaTechController.prototype['progessEventsFeature'];
|
||||
videojs.MediaTechController.prototype['progressEventsFeature'] = false;
|
||||
},
|
||||
'teardown': function() {
|
||||
clock.restore();
|
||||
videojs.MediaTechController.prototype.features = features;
|
||||
videojs.MediaTechController.prototype['progessEventsFeature'] = progessEventsFeature;
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user