Skip to content
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

Merged
merged 7 commits into from
Sep 14, 2018
Merged

[PLAYER-4216] New unit tests for CC refactor #335

merged 7 commits into from
Sep 14, 2018

Conversation

jpfranco
Copy link
Contributor

No description provided.

@pilievOoyala
Copy link
Contributor

LGTM

}
wrapper.setClosedCaptions(targetLanguage, ccData, ccParams);
for (let textTrack of element.textTracks) {
if (textTrack.language === targetLanguage) {
Copy link
Contributor

@aeng7 aeng7 Sep 14, 2018

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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thumbs up

@aeng7
Copy link
Contributor

aeng7 commented Sep 14, 2018

LGTM

@aeng7 aeng7 merged commit 24d0024 into master Sep 14, 2018
@zelibobla zelibobla deleted the PLAYER-4216c branch April 29, 2019 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants