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
This commit is contained in:
Joey Parrish
2022-04-11 15:47:48 -07:00
committed by GitHub
parent 169943f668
commit fbbd63d96b
142 changed files with 135 additions and 1025 deletions
-2
View File
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
goog.require('shaka.util.ArrayUtils');
describe('ArrayUtils', () => {
const ArrayUtils = shaka.util.ArrayUtils;