angular-cn/packages/core/test/linker
Pawel Kozlowski 3f4e02b8c7 fix(ivy): queries should match elements inside ng-container with the descendants: false option (#35384)
Before this change content queries with the `descendants: false` option, as implemented in ivy,
would not descendinto `<ng-container>` elements. This behaviour was different from the way the
View Engine worked. This change alligns ngIvy and VE behaviours when it comes to queries and the
`<ng-container>` elements and fixes a common bugs where a query target was placed inside the
`<ng-container>` element with a * directive on it.

Before:

```html
<needs-target>
  <ng-container *ngIf="condition">
    <div #target>...</div>  <!-- this node would NOT match -->
  </ng-container>
</needs-target>
```

After:

```html
<needs-target>
  <ng-container *ngIf="condition">
    <div #target>...</div>  <!-- this node WILL match -->
  </ng-container>
</needs-target>
```

Fixes #34768

PR Close #35384
2020-02-18 17:17:46 -08:00
..
change_detection_integration_spec.ts refactor(compiler): add details while throw error during expression convert (#32760) 2019-11-18 15:47:59 -08:00
entry_components_integration_spec.ts test(ivy): ComponentFactoryResolver can resolve any component factory in Ivy (#28465) 2019-01-31 15:55:31 -05:00
inheritance_integration_spec.ts fix(ivy): proper component resolution in case of inheritance (#28439) 2019-02-05 23:29:04 -05:00
integration_spec.ts fix(ivy): shadow all DOM properties in `DebugElement.properties` (#33781) 2019-11-18 15:49:22 -08:00
jit_summaries_integration_spec.ts refactor(core): Migrate TestBed.get to TestBed.inject (#32382) 2019-09-09 19:10:54 -04:00
ng_container_integration_spec.ts feat(ivy): i18n - reorganize entry-points for better reuse (#32488) 2019-09-12 15:35:34 -07:00
ng_module_integration_spec.ts revert: fix(ivy): R3TestBed should clean up registered modules after each test (#32872) (#33663) 2019-11-12 09:53:16 -08:00
projection_integration_spec.ts refactor(core): Migrate TestBed.get to TestBed.inject (#32382) 2019-09-09 19:10:54 -04:00
query_integration_spec.ts fix(ivy): queries should match elements inside ng-container with the descendants: false option (#35384) 2020-02-18 17:17:46 -08:00
query_list_spec.ts fix(core): make QueryList implement Iterable in the type system (#33536) 2019-11-19 13:43:53 -08:00
regression_integration_spec.ts refactor(core): move Meta methods that only have one version from DomAdapter (#32408) 2019-09-03 11:59:39 -07:00
security_integration_spec.ts fix(ivy): warn instead of throwing for unknown properties (#32463) 2019-09-06 13:15:03 -04:00
source_map_integration_node_only_spec.ts refactor(core): Migrate TestBed.get to TestBed.inject (#32382) 2019-09-09 19:10:54 -04:00
system_ng_module_factory_loader_spec.ts fix(ivy): don't load factories when using Ivy (#28685) 2019-04-12 11:26:24 -07:00
view_injector_integration_spec.ts test(ivy): run view_injector_integration tests on node (#28593) 2019-02-08 09:25:50 -08:00