6c08a3ae by Gary Katsevman

check requests length to double check we didn't queue a request for non-existent segments

1 parent 6e7f77c8
...@@ -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);
......