Skip to content

Commit

Permalink
add ended to test faker to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Aug 2, 2019
1 parent f07a341 commit baf4c23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/control-bar/progress-control/seek-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class SeekBar extends Slider {

this.requestAnimationFrame(() => {
const currentTime = this.player_.ended() ?
this.player.duration() : this.getCurrentTime_();
this.player_.duration() : this.getCurrentTime_();
const liveTracker = this.player_.liveTracker;
let duration = this.player_.duration();

Expand Down
3 changes: 3 additions & 0 deletions test/unit/tech/tech-faker.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ class TechFaker extends Tech {
controls() {
return false;
}
ended() {
return false;
}

// Support everything except for "video/unsupported-format"
static isSupported() {
Expand Down

0 comments on commit baf4c23

Please sign in to comment.