mirror of
https://github.com/videojs/video.js.git
synced 2024-12-12 11:15:04 +02:00
test(text-track-controls): fix failing test caused by incompatibility between PRs (#7686)
This commit is contained in:
parent
5af81cad2e
commit
58a8bd01b2
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user