angular-docs-cn/modules/@angular/core/testing
Miško Hevery 8a5eb08672 fix(fakeAsync): have fakeAsync use Proxy zone. (#10797)
Closes #10503

It is possible for code in `beforeEach` to capture and fork a zone
(for example creating `NgZone` in `beforeEach`). Subsequently the code
in `it` may chose to do `fakeAsync`. The issue is that because the
code in `it` can use `NgZone` from the `beforeEach`. it effectively can
escape the `fakeAsync` zone. A solution is to run all of the test in
`ProxyZone` which allows a test to dynamically replace the rules at any
time. This allows the `beforeEach` to fork a zone, and then `it` to
retroactively became `fakeAsync` zone.
2016-08-19 12:10:53 -07:00
..
async.ts fix(fakeAsync): have fakeAsync use Proxy zone. (#10797) 2016-08-19 12:10:53 -07:00
async_test_completer.ts chore(facade): remove most facade/async functions 2016-08-05 12:26:28 -07:00
component_fixture.ts refactor(chore): remove deprecated NgZoneError (#10822) 2016-08-15 16:10:30 -07:00
fake_async.ts fix(fakeAsync): have fakeAsync use Proxy zone. (#10797) 2016-08-19 12:10:53 -07:00
lang_utils.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
logger.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
metadata_override.ts refactor(testing): introduce new testing api to support ng modules 2016-07-29 04:47:18 -07:00
mock_animation_player.ts refactor(animations): move MockAnimationPlayer back into core (#9966) 2016-07-11 10:55:47 -07:00
ng_zone_mock.ts chore(facade): remove most facade/async functions 2016-08-05 12:26:28 -07:00
test_bed.ts feat(testing): add TestBed.get 2016-08-17 08:06:32 -07:00
test_compiler.ts refactor(Type): merge Type and ConcreType<?> into Type<?> (#10616) 2016-08-10 18:21:28 -07:00
test_component_builder.ts refactor(core/testing): remove deprecated ViewMetadata (#10837) 2016-08-16 13:59:06 -07:00
testing.ts refactor(testing): remove deprecated testing functions (#10832) 2016-08-15 21:40:37 -07:00
testing_internal.ts fix(fakeAsync): have fakeAsync use Proxy zone. (#10797) 2016-08-19 12:10:53 -07:00