angular-cn/packages/core/test/acceptance
crisbeto fcb03abc72 fix(ivy): injecting incorrect Renderer2 into child components (#31063)
In ViewEngine injecting a Renderer2 returns a renderer that is specific to the particular component, however in Ivy we inject the renderer for the parent view instead. This causes it to set incorrect `ngcontent` attributes when creating elements through the renderer.

The issue comes from the fact that the `Renderer2` is created according to the current `LView`, but because DI happens before we've entered the `LView` of the component that's injecting the renderer, we end up with one that's one level up. We work around the issue by finding the `LView` that corresponds to the `previousOrParentTNode` inside of the parent view and associating the `Renderer2` with it.

This PR resolves FW-1382.

PR Close #31063
2019-06-24 11:33:31 -07:00
..
BUILD.bazel fix(ivy): module with providers are processed too early (#30688) 2019-05-31 09:48:39 -07:00
attributes_spec.ts test(ivy): add attribute interpolation test (#30503) 2019-05-22 16:30:28 -07:00
change_detection_spec.ts test(core): update core tests (unrelated to queries) to use static flag (#30626) 2019-05-23 10:31:32 -07:00
common_integration_spec.ts test(ivy): move common integration tests to acceptance (#30213) 2019-05-14 11:37:50 -07:00
component_spec.ts fix(ivy): injecting incorrect Renderer2 into child components (#31063) 2019-06-24 11:33:31 -07:00
content_spec.ts test(core): update core tests (unrelated to queries) to use static flag (#30626) 2019-05-23 10:31:32 -07:00
di_spec.ts fix(ivy): sync ViewRefs between multiple ViewContainerRefs (#30985) 2019-06-21 10:18:06 -07:00
directive_spec.ts test(core): update core tests (unrelated to queries) to use static flag (#30626) 2019-05-23 10:31:32 -07:00
discover_utils_spec.ts test(core): update core tests (unrelated to queries) to use static flag (#30626) 2019-05-23 10:31:32 -07:00
embedded_views_spec.ts fix(ivy): unable to bind to implicit receiver in embedded views (#30897) 2019-06-11 14:29:42 -07:00
exports_spec.ts refactor(ivy): move exports tests to acceptance (#30157) 2019-04-26 16:37:34 -07:00
host_binding_spec.ts test(core): update core tests (unrelated to queries) to use static flag (#30626) 2019-05-23 10:31:32 -07:00
i18n_spec.ts fix(ivy): reprojected ICU expression nodes when creating embedded views (#30979) 2019-06-18 09:48:46 -07:00
inherit_definition_feature_spec.ts test(ivy): Add TODOs (#30522) 2019-05-17 09:56:49 -07:00
integration_spec.ts test(core): update core tests (unrelated to queries) to use static flag (#30626) 2019-05-23 10:31:32 -07:00
lifecycle_spec.ts test(core): update core tests (unrelated to queries) to use static flag (#30626) 2019-05-23 10:31:32 -07:00
listener_spec.ts test(core): update core tests (unrelated to queries) to use static flag (#30626) 2019-05-23 10:31:32 -07:00
outputs_spec.ts test(core): update core tests (unrelated to queries) to use static flag (#30626) 2019-05-23 10:31:32 -07:00
pipe_spec.ts test(core): update core tests (unrelated to queries) to use static flag (#30626) 2019-05-23 10:31:32 -07:00
property_binding_spec.ts test(ivy): move property render3 tests to acceptance (#30426) 2019-05-14 09:39:22 -07:00
property_interpolation_spec.ts test(ivy): move property and attribute tests to acceptance (#30321) 2019-05-09 11:23:35 -07:00
providers_spec.ts fix(ivy): support injection flags for provider deps without new (#30216) 2019-04-30 20:37:56 -07:00
pure_function_spec.ts test(ivy): pure function acceptance tests (#30406) 2019-05-13 10:55:59 -07:00
query_spec.ts test(core): update query-specific tests in core (#30626) 2019-05-23 10:31:32 -07:00
renderer_factory_spec.ts test(ivy): move render3 renderer_factory tests to acceptance (#30435) 2019-05-14 09:36:24 -07:00
router_integration_spec.ts fix(ivy): module with providers are processed too early (#30688) 2019-05-31 09:48:39 -07:00
styling_next_spec.ts feat(ivy): in `ngDevMode` use named object literals and arrays for easier debugging/profiling (#30542) 2019-06-04 12:01:46 -07:00
styling_spec.ts fix(ivy): unable to bind SafeValue to clip-path (#30491) 2019-05-16 14:40:21 -07:00
template_ref_spec.ts test(core): update core tests (unrelated to queries) to use static flag (#30626) 2019-05-23 10:31:32 -07:00
text_spec.ts perf(ivy): remove check for function type in renderStringify (#30838) 2019-06-06 13:47:41 -07:00
view_container_ref_spec.ts fix(ivy): don't throw when attempting to destroy a destroyed ComponentRef (#31022) 2019-06-14 10:44:30 -07:00
view_insertion_spec.ts test(core): add missing static flag to view_insertion test view queries (#30967) 2019-06-11 09:37:19 -07:00
view_ref_spec.ts test(ivy): fix failing view ref test (#29178) 2019-03-07 18:56:22 -08:00