Commit Graph

12 Commits

Author SHA1 Message Date
Joey Parrish 1076b78465 Unfork Closure base and update the compiler
The Closure Library's base.js, the Closure Compiler, and the Closure
deps-writer are all now loaded via NPM instead of commiting them
directly to the repo.  This also updates both the library and compiler
to the latest version: 20200406.

We still have a fork of the Closure Library's URI parser.  The latest
upstream version of that has too many dependencies on the rest of the
library to import directly from NPM.

Some internals of the build system have been refactored, and the
"complete" set of files in the build system now includes third_party.

Our forked URI parser does not pass lint checks yet, so the linter
does not run over third_party yet.

A couple of overly-severe sets of compiler checks have been disabled,
since even the latest Closure Library's base.js doesn't pass them.

The script-loader in load.js had to be updated for compatibility with
the new Closure Library.  If you don't return "true" now, Closure's
base.js will stop loading subsequent source files.

Some local externs that we had written are now available from the
compiler, so our local copies have been deleted.

A few type-related changes have been made as well, removing casts that
were necessary with the old compiler, but not necessary with the new
one.

Finally, this corrects some type issues in the tests using the new
"typeof" annotation from the compiler.  This allows us to type a
variable as a class defined elsewhere.  For example, after loading the
compiled library, we can reference compiledShaka.Player, which has the
type "typeof shaka.Player".  The compiler can then type-check all uses
of it in the tests.

Closes #2528 (bad polyfill code generated by the old compiler)

Change-Id: I62ec61e82d4edf342b2c576c2d4f89f11562ee65
2020-04-30 19:32:30 -07:00
Joey Parrish c7ed9d769a Update docs WRT default output name from build scripts
Closes #1929

Change-Id: Ie3a15ba3928ca21f9f4eb5c8ff423e2b5875782c
2019-06-11 19:44:52 +00:00
Joey Parrish 4d88905463 Build docs as part of build/all.py
Originally, docs were slow to build, and many people did not need a
local copy.  Now, building the docs is fast, and doing everything as
part of "all" is less surprising.

Closes #1421

Change-Id: I5ac254df9d2beca8c1c5898614782a81e662a0e9
2018-05-11 21:55:32 +00:00
Joey Parrish 1a2c88745e Upgrade the Closure compiler to v20171203
Change-Id: Id0dd4619db0c3a141d60e9e38757739e0697e6f0
2018-01-03 15:07:02 -08:00
Ignacio Carbajo e25249fbfd Fix build/README.md typo (#1139) 2017-11-20 09:37:25 -08:00
Joey Parrish 0c4f6258b3 Treat DRM license tests separately
These tests will no longer be lumped into the same group as "external"
asset tests.  This will allow us more control over test coverage in
different scenarios in our lab.

Change-Id: I0b0f2ae5ed6e74fdf87ad4ecf94ce41d94763537
2017-03-20 23:38:03 +00:00
Chad Assareh 2b13ea7d26 Add a --specFilter command line option for filtering tests.
Change-Id: I2dc8243afcc7c4009c8c142a94ae31701248becd
2016-12-15 17:04:33 +00:00
Chad Assareh 72f026df1c Set --seed automaticaly if --random is set and the seed is not already specified.
Change-Id: I0392f42ef3cf470cb9aa1c5b06b57306bacc19a2
2016-12-15 17:02:51 +00:00
Chad Assareh 5a46cde217 Add command line option for running tests with xvfb.
Change-Id: If24ca02870b5a787afa1fc3bc086a83b0ffaddbe
2016-12-09 17:07:04 +00:00
Chad Assareh 068f32d8ed Add command line option for running the tests multiple times.
Change-Id: I69d70a24ad3008bed4e8045d2c5156936b3460f7
2016-12-09 17:05:07 +00:00
Chad Assareh ff26b080d8 Expose command line options for using random test order.
Change-Id: I45a8339b35aa57514fbec2e8ab4c93ace6191c93
2016-12-02 17:49:38 +00:00
Jacob Trimble 294841de17 Add README for build files.
Change-Id: Iea23da14d2954a2d0ec5d731990a4b0f7ac45169
2016-06-06 21:41:34 +00:00