Skip to content

Commit

Permalink
Fix bad cherry-picks in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish committed Jun 5, 2017
1 parent f11a54a commit 93bcd0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/player_unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2044,8 +2044,8 @@ describe('Player', function() {
.build();

parser = new shaka.test.FakeManifestParser(manifest);
parserFactory = function() { return parser; };
player.load('', 0, parserFactory).then(function() {
factory = function() { return parser; };
player.load('', 0, factory).then(function() {
// "initialize" the current period.
chooseStreams();
canSwitch();
Expand Down Expand Up @@ -2130,6 +2130,8 @@ describe('Player', function() {
*/
function chooseStreams() {
var period = manifest.periods[0];
player.manifest_ = manifest;
player.streamingEngine_ = player.createStreamingEngine();
return player.onChooseStreams_(period);
}

Expand Down

0 comments on commit 93bcd0e

Please sign in to comment.