angular-docs-cn/packages/core/test/acceptance
Kara Erickson ca2462cff7 fix(ivy): support providing components and dirs in tests (#29945)
Previous to this commit, providing a component or directive in a test
module without @Injectable() would throw because the injectable factory
would not be found. Providing components in tests in addition to declaring
or importing them is not necessary, but it should not throw an error.

This commit ensures factory data is saved when component defs and directive
defs are created, which allows them to be processed by the module injector.

Note that bootstrapping is still required for this setup to work because
directiveInject() does not support cases where the view has not been
created. This case will be handled in a future commit.

PR Close #29945
2019-04-16 19:14:17 -07:00
..
BUILD.bazel build: rules_nodejs 0.26.0 & use @npm instead of @ngdeps now that downstream angular build uses angular bundles (#28871) 2019-02-28 12:06:36 -08:00
change_detection_spec.ts fix(ivy): should mark OnPush ancestor of dynamically created views as dirty (#28687) 2019-02-13 12:12:45 -08:00
component_spec.ts fix(ivy): component destroy hook called twice when configured as provider (#28470) 2019-02-21 09:34:26 -08:00
content_spec.ts perf(ivy): avoid storing raw selectors in projectionDef (#29578) 2019-04-11 08:09:09 -07:00
di_spec.ts fix(ivy): ChangeDetectorRef should be injectable on ng-container (#29424) 2019-03-20 15:14:21 -04:00
directive_spec.ts fix(ivy): keep i18n-annotated attributes in element attribute list (#29856) 2019-04-12 16:57:42 -07:00
exports_spec.ts fix(ivy): avoid innerHTML usage in exports test (to make it work in IE11) (#29127) 2019-03-05 21:08:08 -08:00
inherit_definition_feature_spec.ts fix(ivy): ngOnChanges hooks should be inherited from grand-superclasses (#28888) 2019-02-22 12:00:15 -08:00
integration_spec.ts fix(ivy): host attributes and @COmponentChild should be supported on the same component (#29565) 2019-03-29 10:49:35 -07:00
lifecycle_spec.ts fix(ivy): support property values changed in ngOnChanges (forward rref case) (#29054) 2019-03-05 14:27:08 -08:00
listener_spec.ts fix(ivy): coalesced listeners should preventDefault if any returns false (#29934) 2019-04-16 13:36:27 -07:00
pipe_spec.ts fix(ivy): compile pipe in context of ternary operator (#28635) 2019-02-11 14:52:13 -08:00
properties_spec.ts fixup! fix(ivy): incorrectly remapping certain properties that refer to inputs (#28765) 2019-02-21 17:59:50 -08:00
providers_spec.ts fix(ivy): support providing components and dirs in tests (#29945) 2019-04-16 19:14:17 -07:00
query_spec.ts fix(ivy): generate empty QueryList for root component content queries (#29514) 2019-03-26 12:45:21 -07:00
styling_spec.ts fix(ivy): ensure parent/sub-class components evaluate styling correctly (#29602) 2019-04-05 16:49:52 -07:00
template_ref_spec.ts fix(ivy): ViewRef.rootNodes not including projected nodes (#28951) 2019-02-26 10:49:01 -08:00
view_container_ref_spec.ts feat(ivy): support i18n without closure (#28689) 2019-04-11 08:28:45 -07:00
view_ref_spec.ts test(ivy): fix failing view ref test (#29178) 2019-03-07 18:56:22 -08:00