Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor CompilerTypeTestCase to fix a problem with TypeCheckTest
1. Disconnect CompilerTypeTestCase from BaseJSTypeTestCase and add methods for getting the correct native types in tests. BaseJSTypeTestCase artificially constructs native types in a way that conflicts with using externs in the normal fashion. This leads to confusing unit test behavior, causing incorrect behavior for one test case in TypeCheckTest and correct behavior for the wrong reason in others. 2. Also create TestExternsBuilder class. This class provides a way to build exactly the externs definitions needed for a test case rather than continually adding definitions to one or more "default" externs variables that grow ever larger creating a performance drain on test cases that don't need most of the definitions they contain. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=193379201
- Loading branch information