1
0
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:
Gary Katsevman 2014-09-02 14:57:29 -04:00
parent e60f2eef5c
commit 599217f158

View File

@ -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;
}
});