b2b19c42 by David LaPalomento

Restore global HLS options after the test completes

One test case was modifying the page-level hls options but failing to restore the old values. This leaked environment issues into other tests.
1 parent 66a0f5ef
......@@ -1526,6 +1526,7 @@ test('reloads out-of-date live playlists when switching variants', function() {
});
test('if withCredentials global option is used, withCredentials is set on the XHR object', function() {
var hlsOptions = videojs.options.hls;
player.dispose();
videojs.options.hls = {
withCredentials: true
......@@ -1538,6 +1539,7 @@ test('if withCredentials global option is used, withCredentials is set on the XH
openMediaSource(player);
ok(requests[0].withCredentials,
'with credentials should be set to true if that option is passed in');
videojs.options.hls = hlsOptions;
});
test('if withCredentials src option is used, withCredentials is set on the XHR object', function() {
......