Fix typo that was assigning to a new global
'selectPlaylist' !== 'selectedPlaylist'. Update to `selectedPlaylist`.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -249,7 +249,7 @@ test('updates the duration after switching playlists', function() { | ... | @@ -249,7 +249,7 @@ test('updates the duration after switching playlists', function() { |
249 | selectedPlaylist = false; | 249 | selectedPlaylist = false; |
250 | player.hls('manifest/master.m3u8'); | 250 | player.hls('manifest/master.m3u8'); |
251 | player.hls.selectPlaylist = function() { | 251 | player.hls.selectPlaylist = function() { |
252 | selectPlaylist = true; | 252 | selectedPlaylist = true; |
253 | return player.hls.master.playlists[1]; | 253 | return player.hls.master.playlists[1]; |
254 | }; | 254 | }; |
255 | player.duration = function(duration) { | 255 | player.duration = function(duration) { |
... | @@ -265,7 +265,7 @@ test('updates the duration after switching playlists', function() { | ... | @@ -265,7 +265,7 @@ test('updates the duration after switching playlists', function() { |
265 | type: 'sourceopen' | 265 | type: 'sourceopen' |
266 | }); | 266 | }); |
267 | 267 | ||
268 | ok(selectPlaylist, 'selected playlist'); | 268 | ok(selectedPlaylist, 'selected playlist'); |
269 | strictEqual(calls, 1, 'updates the duration'); | 269 | strictEqual(calls, 1, 'updates the duration'); |
270 | }); | 270 | }); |
271 | 271 | ... | ... |
-
Please register or sign in to post a comment