From 58a8bd01b251cd4d29ef6fc6854533d73738ed63 Mon Sep 17 00:00:00 2001 From: Pat O'Neill Date: Mon, 21 Mar 2022 14:20:18 -0400 Subject: [PATCH] test(text-track-controls): fix failing test caused by incompatibility between PRs (#7686) --- test/unit/tracks/text-track-controls.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/tracks/text-track-controls.test.js b/test/unit/tracks/text-track-controls.test.js index 2e36170ca..e96ff94d1 100644 --- a/test/unit/tracks/text-track-controls.test.js +++ b/test/unit/tracks/text-track-controls.test.js @@ -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');