Commit Graph

3 Commits

Author SHA1 Message Date
Joey Parrish fbbd63d96b test: Late load tests, fix Chromecast test flake (#4115)
This change fixes tests on Chromecast by loading tests later in the process.  Test scripts are now dynamically inserted by boot.js, rather than loaded by Karma.  The bootstrapping code then awaits the completion of that before starting the Karma frameworks (Jasmine) to run the tests.

This also removes the use of goog.provide/goog.require in tests and test utils.  We don't need to load test utils or library sources dynamically in each test, and this gives us more explicit control over script loading and ordering.

Closes #4094
2022-04-11 15:47:48 -07:00
Joey Parrish 077ea2a0aa chore: Add missing license header in test/media/closed_caption_parser_unit.js
Change-Id: Iaa390a4415e42f2e447ba1df4842dc7446471af5
2021-10-14 17:56:48 +00:00
Aidan Ridley 97ba4dfd7b fix(cea): Fix BUFFER_READ_OUT_OF_BOUNDS error when CEA caption packets are empty (#3609)
Added check for empty caption packets in closed_caption_parser.

Added a unit test that verifies the closed_caption_parser now works with a video segment that contains empty caption packets.

Fixes #3608
2021-09-09 12:07:49 -07:00