angular-cn/packages/compiler-cli/test/compliance
Matias Niemelä 693045165c refactor(ivy): remove def.attributes in favor of the `elementHostAttrs` instruction (#28089)
Up until this point, all static attribute values (things like `title` and `id`)
defined within the `host` are of a Component/Directive definition were
generated into a `def.attributes` array and then processed at runtime.
This design decision does not lend itself well to tree-shaking and is
inconsistent with other static values such as styles and classes.

This fix ensures that all static attribute values (attributes, classes,
and styles) that exist within a host definition for components and
directives are all assigned via the `elementHostAttrs` instruction.

```
// before
defineDirective({
  ...
  attributes: ['title', 'my title']
  ...
})

//now
defineDirective({
  ...
  hostBindings: function() {
    if (create) {
      elementHostAttrs(..., ['title', 'my-title']);
    }
    ...
  }
  ...
})
```

PR Close #28089
2019-01-15 09:45:41 -08:00
..
BUILD.bazel test(ivy): mark failing test targets with fixme-ivy-jit and fixme-ivy-local tags (#26471) 2018-10-23 08:57:42 -07:00
README.md build: use bazel version from node modules (#26691) 2018-10-30 16:19:13 -04:00
mock_compile.ts test(ivy): compiler compliance tests should support ? (#25435) 2018-08-10 17:12:18 -07:00
mock_compiler_spec.ts refactor(ivy): remove short instruction names as they provide no value (#25493) 2018-08-16 11:04:34 -07:00
r3_compiler_compliance_spec.ts fix(ivy): ngOnChanges only runs for binding updates (#27965) 2019-01-11 14:28:35 -08:00
r3_view_compiler_binding_spec.ts refactor(ivy): remove def.attributes in favor of the `elementHostAttrs` instruction (#28089) 2019-01-15 09:45:41 -08:00
r3_view_compiler_di_spec.ts feat(ivy): enable inheritance of factory functions in definitions (#25392) 2018-08-09 09:58:13 -07:00
r3_view_compiler_directives_spec.ts fix(ivy): ensure unique template and listener function identifiers (#27766) 2019-01-04 12:28:11 -08:00
r3_view_compiler_i18n_spec.ts test(ivy): add i18n integration tests via TestBed (#27852) 2019-01-07 14:47:24 -08:00
r3_view_compiler_input_outputs_spec.ts fix(compiler): generate inputs with aliases properly (#26774) 2018-10-26 17:23:45 -04:00
r3_view_compiler_listener_spec.ts fix(ivy): ensure unique template and listener function identifiers (#27766) 2019-01-04 12:28:11 -08:00
r3_view_compiler_providers_spec.ts feat(ivy): support providers and viewProviders (#25803) 2018-10-25 12:58:40 -04:00
r3_view_compiler_spec.ts fix(ivy): ensure @animation host bindings/listeners work properly (#27896) 2019-01-04 14:12:29 -08:00
r3_view_compiler_styling_spec.ts refactor(ivy): remove def.attributes in favor of the `elementHostAttrs` instruction (#28089) 2019-01-15 09:45:41 -08:00
r3_view_compiler_template_spec.ts fix(ivy): ensure unique template and listener function identifiers (#27766) 2019-01-04 12:28:11 -08:00

README.md

Tests in this directory should be run with:

yarn bazel test --define=compile=aot  packages/compiler-cli/test/compliance:compliance