Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
Fix unreachable segment tests after rebase on async monitor buffer ch…
Browse files Browse the repository at this point in the history
…ange
  • Loading branch information
gesinger committed Jan 24, 2017
1 parent c3cf3f7 commit c4a3f26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/segment-loader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,7 @@ function(assert) {
loader.playlist(playlist);
loader.mimeType(this.mimeType);
loader.load();
this.clock.tick(1);

assert.equal(loader.state, 'WAITING', 'in waiting state');
assert.equal(loader.pendingSegment_.uri, '0.ts', 'first segment pending');
Expand All @@ -1103,6 +1104,7 @@ function(assert) {
this.requests.shift().respond(200, null, '');
mediaSource.sourceBuffers[0].buffered = videojs.createTimeRanges([[0, 10]]);
mediaSource.sourceBuffers[0].trigger('updateend');
this.clock.tick(1);

assert.equal(loader.state, 'WAITING', 'in waiting state');
assert.equal(loader.pendingSegment_.uri, '1.ts', 'second segment pending');
Expand Down Expand Up @@ -1139,6 +1141,7 @@ function(assert) {
loader.playlist(playlist);
loader.mimeType(this.mimeType);
loader.load();
this.clock.tick(1);

assert.equal(loader.state, 'WAITING', 'in waiting state');
assert.equal(loader.pendingSegment_.uri, '0.ts', 'first segment pending');
Expand All @@ -1149,6 +1152,7 @@ function(assert) {
this.requests.shift().respond(200, null, '');
mediaSource.sourceBuffers[0].buffered = videojs.createTimeRanges([[0, 10]]);
mediaSource.sourceBuffers[0].trigger('updateend');
this.clock.tick(1);

assert.equal(loader.state, 'WAITING', 'in waiting state');
assert.equal(loader.pendingSegment_.uri, '1.ts', 'second segment pending');
Expand Down Expand Up @@ -1193,6 +1197,7 @@ function(assert) {
loader.playlist(playlist);
loader.mimeType(this.mimeType);
loader.load();
this.clock.tick(1);

assert.equal(loader.state, 'WAITING', 'in waiting state');
assert.equal(loader.pendingSegment_.uri, '0.ts', 'first segment pending');
Expand All @@ -1203,6 +1208,7 @@ function(assert) {
this.requests.shift().respond(200, null, '');
mediaSource.sourceBuffers[0].buffered = videojs.createTimeRanges([[0, 10]]);
mediaSource.sourceBuffers[0].trigger('updateend');
this.clock.tick(1);

assert.equal(loader.state, 'WAITING', 'in waiting state');
assert.equal(loader.pendingSegment_.uri, '1.ts', 'second segment pending');
Expand Down

0 comments on commit c4a3f26

Please sign in to comment.