angular-cn/packages/platform-browser/test/browser
Andrew Kushnir f9bb53a761 fix(ivy): allow TestBed.createComponent to create components in isolation (#29981)
Prior to this change, components created via TestBed.createComponent in the same test were placed into the same root context, which caused problems in conjunction with fixture.autoDetectChanges usage in the same test. Specifically, change detection was triggered immediately for created component (starting from the 2nd one) even if it was not required/desired. This commit makes Ivy and VE behavior consistent: now every component created via TestBed.createComponent is isolated from each other. Current solution uses host element id naming convention, which is not ideal, but helps avoid public API surface changes at this point (we might revisit this approach later).

Note: this commit also adds extra tests to verify bootstrap and change detection behavior in case of multiple components in `bootstrap` array in @NgModule, to make sure this behavior is aligned between Ivy and VE.

PR Close #29981
2019-04-19 09:45:52 -07:00
..
static_assets refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
tools build(platform-browser): exclude node incompatible tests from :test target. (#21053) 2017-12-22 13:10:51 -08:00
bootstrap_spec.ts fix(ivy): allow TestBed.createComponent to create components in isolation (#29981) 2019-04-19 09:45:52 -07:00
browser_adapter_spec.ts build(platform-browser): exclude node incompatible tests from :test target. (#21053) 2017-12-22 13:10:51 -08:00
meta_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
rectangle_mock.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
title_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
transfer_state_spec.ts refactor: move DOCUMENT imports from platform-browser to common (#29237) 2019-03-14 16:01:57 -04:00