Cleanup mocked selectPlaylist (#838)
Leaving a mock version of selectPlaylist on the HlsHandler prototype leads to broken error handling in tests for encryption key fetching.
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -2551,6 +2551,7 @@ QUnit.test('uses user defined selectPlaylist from HlsHandler if specified', func | ... | @@ -2551,6 +2551,7 @@ QUnit.test('uses user defined selectPlaylist from HlsHandler if specified', func |
2551 | QUnit.equal(setSelectPlaylistCount, 1, 'uses set playlist selector'); | 2551 | QUnit.equal(setSelectPlaylistCount, 1, 'uses set playlist selector'); |
2552 | 2552 | ||
2553 | Hls.STANDARD_PLAYLIST_SELECTOR = origStandardPlaylistSelector; | 2553 | Hls.STANDARD_PLAYLIST_SELECTOR = origStandardPlaylistSelector; |
2554 | delete HlsHandler.prototype.selectPlaylist; | ||
2554 | }); | 2555 | }); |
2555 | 2556 | ||
2556 | QUnit.module('HLS - Encryption', { | 2557 | QUnit.module('HLS - Encryption', { | ... | ... |
-
Please register or sign in to post a comment