86e8ccfc by Gary Katsevman

We always have an additional call to selectPlaylist

1 parent 6ca15caa
...@@ -454,7 +454,7 @@ test('selects a playlist after segment downloads', function() { ...@@ -454,7 +454,7 @@ test('selects a playlist after segment downloads', function() {
454 standardXHRResponse(requests[1]); 454 standardXHRResponse(requests[1]);
455 standardXHRResponse(requests[2]); 455 standardXHRResponse(requests[2]);
456 456
457 strictEqual(calls, 1, 'selects after the initial segment'); 457 strictEqual(calls, 2, 'selects after the initial segment');
458 player.currentTime = function() { 458 player.currentTime = function() {
459 return 1; 459 return 1;
460 }; 460 };
...@@ -464,7 +464,8 @@ test('selects a playlist after segment downloads', function() { ...@@ -464,7 +464,8 @@ test('selects a playlist after segment downloads', function() {
464 player.trigger('timeupdate'); 464 player.trigger('timeupdate');
465 465
466 standardXHRResponse(requests[3]); 466 standardXHRResponse(requests[3]);
467 strictEqual(calls, 2, 'selects after additional segments'); 467
468 strictEqual(calls, 3, 'selects after additional segments');
468 }); 469 });
469 470
470 test('moves to the next segment if there is a network error', function() { 471 test('moves to the next segment if there is a network error', function() {
......