-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PLAYER-4216] New unit tests for CC refactor #335
Conversation
LGTM |
} | ||
wrapper.setClosedCaptions(targetLanguage, ccData, ccParams); | ||
for (let textTrack of element.textTracks) { | ||
if (textTrack.language === targetLanguage) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this if statement return true for this test case? All the text track languages are "" vs the targetLanguage of 'en'
Edit: Nevermind, missed the setClosedCaptions call above.
const captionsFoundCount = spy.args.reduce((result, args) => ( | ||
result += args[0] === vtc.interface.EVENTS.CAPTIONS_FOUND_ON_PLAYING ? 1 : 0 | ||
), 0); | ||
// Explanation: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thumbs up
LGTM |
No description provided.