1
0
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:
Pat O'Neill 2022-03-21 14:20:18 -04:00 committed by GitHub
parent 5af81cad2e
commit 58a8bd01b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');