Skip to content

Commit

Permalink
test(text-track-controls): fix failing test caused by incompatibility…
Browse files Browse the repository at this point in the history
… between PRs (#7686)
  • Loading branch information
misteroneill authored Mar 21, 2022
1 parent 5af81ca commit 58a8bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/tracks/text-track-controls.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,12 +559,12 @@ QUnit.test('chapters button should update selected menu item', function(assert)
assert.ok(menuItems.find(i => i.isSelected_) === menuItems[0], 'item with startTime 0 selected on init');

player.currentTime(4);
player.trigger('timeupdate');
chaptersEl.track.timeupdateHandler();

assert.ok(menuItems.find(i => i.isSelected_) === menuItems[1], 'second item selected on cuechange');

player.currentTime(1);
player.trigger('timeupdate');
chaptersEl.track.timeupdateHandler();

assert.ok(menuItems.find(i => i.isSelected_) === menuItems[0], 'first item selected on cuechange');

Expand Down

0 comments on commit 58a8bd0

Please sign in to comment.