angular-cn/packages/upgrade/static/test/integration
George Kalpakas c1ae6124c8 fix(upgrade): compile downgraded components synchronously (if possible) (#31840)
AngularJS compilation is a synchronous operation (unless having to fetch
a template, which is not supported for downgraded components).
Previously, ngUpgrade tried to retain the synchronous nature of the
compilation for downgraded components (when possible), by using a
synchronous thenable implementation (`ParentInjectorPromise`). This was
accidentally broken in #27217 by replacing a call to
`ParentInjectorPromise#then()` (which can be synchronous) with a call to
`Promise.all()` (which is asynchronous).

This commit fixes this by introducing a `SyncPromise.all()` static
method; similar to `Promise.all()` but retaining the synchronous
capabilities of `SyncPromise` (which `ParentInjectorPromise` inherits
from).

Fixes #30330

PR Close #31840
2019-08-01 10:09:02 -07:00
..
change_detection_spec.ts test(upgrade): rename `angular.module()` to `angular.module_()` (#30126) 2019-04-25 12:01:18 -07:00
content_projection_spec.ts refactor(upgrade): rename `module` constant to avoid webpack bug (#30058) 2019-04-24 17:03:51 -07:00
downgrade_component_spec.ts fix(upgrade): compile downgraded components synchronously (if possible) (#31840) 2019-08-01 10:09:02 -07:00
downgrade_module_spec.ts refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
examples_spec.ts refactor(upgrade): rename `module` constant to avoid webpack bug (#30058) 2019-04-24 17:03:51 -07:00
injection_spec.ts refactor(upgrade): rename `module` constant to avoid webpack bug (#30058) 2019-04-24 17:03:51 -07:00
static_test_helpers.ts refactor(upgrade): use Bazel packages to avoid symlinks in the source (#29466) 2019-04-02 10:38:01 -07:00
testability_spec.ts refactor(upgrade): rename `module` constant to avoid webpack bug (#30058) 2019-04-24 17:03:51 -07:00
upgrade_component_spec.ts feat(upgrade): support $element in upgraded component template/templateUrl functions (#31637) 2019-07-24 14:34:20 -07:00