check requests length to double check we didn't queue a request for non-existent segments
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -1191,6 +1191,7 @@ test('does not break if the playlist has no segments', function() { | ... | @@ -1191,6 +1191,7 @@ test('does not break if the playlist has no segments', function() { |
1191 | throw e; | 1191 | throw e; |
1192 | } | 1192 | } |
1193 | ok(true, 'no error was thrown'); | 1193 | ok(true, 'no error was thrown'); |
1194 | strictEqual(requests.length, 1, 'no requests for non-existent segments were queued'); | ||
1194 | }); | 1195 | }); |
1195 | 1196 | ||
1196 | })(window, window.videojs); | 1197 | })(window, window.videojs); | ... | ... |
-
Please register or sign in to post a comment