Repository navigation
Commit 458f1d7
test(compiler-cli): deduplicate compliance goldens and run against compliance test_cases
- Remove the 1,235 duplicated compliance golden markdown files under `packages/compiler-cli/preprocessor/test/golden/ngtsc_compliance/` that were previously copied from `packages/compiler-cli/test/compliance/test_cases/`.
- Port `compliance_spec.ts` to run the hybrid preprocessor pipeline directly against `//packages/compiler-cli/test/compliance/test_cases` using `//packages/compiler-cli/test/compliance/test_helpers`.1 parent afe8486 commit 458f1d7
1,239 files changed
Lines changed: 600 additions & 117031 deletions
File tree
- packages/compiler-cli
- preprocessor/test
- golden/ngtsc_compliance
- model_inputs
- mixed_model_types
- model_component_definition
- model_directive_definition
- output_function
- mixed_variants
- output_in_component
- output_in_directive
- r3_compiler_compliance
- class_metadata
- class_decorators
- parameter_decorators
- property_decorators
- components_and_directives
- abstract_directive
- array_literals_null_vs_empty
- constant_array_literals
- constant_object_literals
- content_projection
- multiple_wildcards
- nested_template
- ng_content_fallback
- ng_content_with_structural_dir
- ng_project_as_attribute
- ng_project_as_compound_selector
- ng_project_as_selector
- project_as_ng_content
- root_and_nested
- root_template
- custom_decorator_es5
- debug_info
- export_as
- external_library.d
- forward_referenced_directive
- forward_referenced_pipe
- host_animate_enter
- lifecycle_hooks
- lifecycle_hooks
- local_reference_and_context_variables
- local_reference_nested
- local_reference
- nested_component_definition
- ng_template_empty_binding
- no_selector
- non_literal_template_with_concatenation
- non_literal_template_with_substitution
- non_literal_template
- object_literals_null_vs_empty
- object_literals_null_vs_function
- pipes
- nameless_pipe
- pipe_di_change_detector_ref
- pipe_invocation
- pipes
- queries
- content_query_for_directive
- content_query_for_local_ref
- content_query_forward_ref
- content_query_read_token
- query_with_emit_distinct_changes_only
- static_content_query
- static_view_query
- view_query_for_directive
- view_query_for_local_ref
- view_query_forward_ref
- view_query_read_token
- signals
- component
- directive
- standalone
- component
- directive
- foreign_component
- forward_ref
- imports
- module_optimization
- pipe
- recursive
- template_variables
- for_of
- let_variable_and_reference
- parent_template_variable
- svg_embedded_view
- value_composition
- array_literal_spread
- array_literals_many
- array_literals
- call_rest
- complex_selectors
- directives
- dollar_escape
- id_selector
- literal_nested_expression
- no_selector
- number_separator
- object_literal_spread
- object_literals
- regular_expression_with_global_flag
- regular_expression_with_sticky_flag
- regular_expression_without_global_flag
- structural_directives
- tagged_template_literals
- template_literals
- view_tokens_di
- elements
- class_style_bindings
- deduplicate_attributes
- dom
- empty_ng-container
- host_binding_pure_functions
- iframe_attrs
- mathml
- namespace_attr
- namespace
- ng-container
- properties
- property_pure_functions
- security_sensitive_constant_attributes
- svg_embedded_view
- svg
- ng_modules
- all_options
- basic_full
- declarations
- empty_fields
- imports_exports
- inheritance
- no_aot
- providers
- variable_providers
- r3_view_compiler_arrow_functions
- arrow_function_defined_let
- arrow_function_dollar_event
- arrow_function_host_binding
- arrow_function_host_listener
- arrow_function_inside_pure_value
- arrow_function_let_nested
- arrow_function_loop_variables
- arrow_function_nested_listeners
- arrow_function_no_context
- arrow_function_pipe
- arrow_function_pure_return_values
- arrow_function_returning_arrow_function_nested_context
- arrow_function_returning_arrow_function_no_context
- arrow_function_returning_arrow_function_top_level_context
- arrow_function_safe_access_nested_views_use_null
- arrow_function_safe_access_nested_views
- arrow_function_safe_access_use_null
- arrow_function_safe_access
- arrow_function_this_access
- arrow_function_top_level_context
- r3_view_compiler_bindings
- attribute_bindings
- chain_bindings_with_interpolations
- chain_multiple_bindings_for_multiple_elements
- chain_multiple_bindings_mixed
- chain_multiple_bindings_with_child_elements
- chain_multiple_bindings
- chain_multiple_single_interpolation
- duplicate_bindings
- exclude_bindings_from_consts
- interpolated_attributes
- control_bindings
- control_bindings
- radio_bindings
- host_bindings
- aria_bindings
- chain_attribute_bindings_all
- chain_attribute_bindings_mixed
- chain_multiple_attribute_bindings
- chain_multiple_listeners
- chain_multiple_property_bindings
- chain_property_bindings_all
- chain_property_bindings_mixed
- chain_synthetic_listeners_mixed
- chain_synthetic_listeners
- chain_synthetic_properties
- deceptive_attrs
- host_attribute_bindings
- host_attributes_with_classes_and_styles
- host_attributes
- host_bindings_primitive_names
- host_bindings_quoted_names
- host_bindings_with_pure_functions
- host_bindings_with_temporaries_use_null
- host_bindings_with_temporaries
- host_bindings
- host_class_bindings_with_temporaries
- host_dollar_any
- host_listeners
- host_style_bindings_with_temporaries
- host_with_ts_expression_node
- sanitization
- security_sensitive_constant_attributes
- security_sensitive_style_bindings
- non_bindable_behavior
- local_ref_on_host
- local_ref_on_nested
- no_child_elements
- property_bindings_and_listeners
- order_bindings
- property_bindings
- aria_dom_properties
- aria_properties
- bind
- chain_bindings_with_interpolations
- chain_multiple_bindings_for_multiple_elements
- chain_multiple_bindings_mixed
- chain_multiple_bindings_with_child_elements
- chain_multiple_bindings
- chain_ngtemplate_bindings
- chain_synthetic_bindings
- interpolated_properties
- interpolation
- mixed_one_way_two_way_property_order
- sanitization
- special_property_remapping_dom_property
- special_property_remapping_property
- synthetic_bindings_and_listeners_on_structural
- temporary_variables_use_null
- temporary_variables
- text_bindings/interpolation
- r3_view_compiler_control_flow
- basic_for
- basic_if_else_if
- basic_if_else
- basic_if
- basic_switch
- conditional_same_component_names
- else_if_multiple_with_alias
- else_if_nested_with_alias
- else_if_with_alias
- else_if_with_same_alias
- empty_switch
- for_aliased_template_variables
- for_both_aliased_and_original_variables
- for_data_slots
- for_element_root_node_at_end
- for_element_root_node
- for_impure_track_reuse
- for_pure_track_reuse
- for_template_root_node
- for_template_track_method_nested
- for_template_track_method_only_index
- for_template_track_method_root
- for_template_variables_listener
- for_template_variables_scope
- for_template_variables
- for_track_by_field
- for_track_by_index
- for_track_by_temporary_variables_use_null
- for_track_by_temporary_variables
- for_track_literals
- for_variables_expression
- for_with_empty
- for_with_pipe
- if_element_root_node_at_end
- if_element_root_node
- if_nested_alias_listeners
- if_nested_alias
- if_template_root_node
- if_with_alias
- if_with_pipe
- nested_for_computed_template_variables
- nested_for_listener_computed_template_variables
- nested_for_template_variables
- nested_for_tracking_function
- nested_for
- nested_if
- nested_switch
- switch_element_root_node_at_end
- switch_element_root_node
- switch_multiple_cases
- switch_template_root_node
- switch_with_pipe
- switch_without_default
- r3_view_compiler_deferred
- basic_deferred
- defer_default_deps
- defer_deps
- defer_hydrate_order
- defer_multiple_hydrate_single_activator
- defer_nested_hydrate
- defer_with_hydrate_triggers
- deferred_hydrate_on_viewport_with_options
- deferred_interaction_parent_view_trigger
- deferred_interaction_placeholder_trigger
- deferred_interaction_same_view_trigger
- deferred_on_idle_with_timeout
- deferred_on_viewport_with_options
- deferred_prefetch_on_viewport_with_options
- deferred_secondary_blocks
- deferred_when_with_pipe
- deferred_with_duplicate_external_dep
- deferred_with_external_deps
- deferred_with_implicit_triggers
- deferred_with_loading_params
- deferred_with_local_deps
- deferred_with_placeholder_params
- deferred_with_prefetch_triggers
- deferred_with_triggers
- deferred_without_deps_followed_by_one_with
- lazy_with_blocks
- r3_view_compiler_directives
- host_directives
- basic_host_directives
- chained_host_directives
- forward_ref_host_directives
- host_directives_with_host_aliases
- host_directives_with_inputs_outputs
- matching
- i18n_attribute_directive
- i18n_prefix_attribute_directive
- ng_container_directive
- ng_template_binding_directive
- ng_template_directive
- output_directive
- property_binding_directive
- structural_directive
- r3_view_compiler_di/di
- component_factory
- ctor_overload
- injectable_factory
- pipe_and_injectable
- providedin_forwardref
- useclass_forwardref
- useclass_with_deps
- useclass_without_deps
- usefactory_with_deps
- usefactory_without_deps
- r3_view_compiler_dom_only/dom_only_instruction_set
- r3_view_compiler_i18n
- blocks
- conditional
- defer
- for
- switch
- element_attributes
- bound_attributes
- empty_attributes
- i18n_root_node
- interpolation_basic
- interpolation_complex_expressions_use_null
- interpolation_complex_expressions
- interpolation_nested_context
- invalid_i18n_meta
- meaning_description
- ng-template_basic
- ng-template_interpolation_structural
- ng-template_interpolation
- ng-template_structural
- static_attributes_structural
- static_attributes
- es5_support/test
- icu_and_i18n
- icu_logic
- attribute_interpolation
- bare_icu
- different_contexts
- escape_quotes
- expressions
- html_content
- icu_only
- icu_with_interpolations
- keyword_spaces
- metadata
- multiple_icus
- named_interpolations
- nested_icu_in_other_block
- nested_icus
- root_icu_with_elements
- single_icu
- line_ending_normalization
- external_template_legacy_non_normalized
- external_template_legacy_normalized
- external_template_non_legacy_non_normalized
- external_template_non_legacy_normalized
- inline_template_legacy_non_normalized
- inline_template_legacy_normalized
- inline_template_non_legacy_non_normalized
- inline_template_non_legacy_normalized
- localize_legacy_message_ids
- legacy_disabled
- legacy_enabled
- multiple_pipes
- namespaces
- foreign_object
- namespaced_div
- nested_nodes
- backtick_quotes
- bindings_in_content
- comments_in_translated_text
- directives
- empty_content
- escape_quotes
- event_listeners
- i18n_after_binding
- interpolation_complex_expressions
- last_elem_inside_i18n_block
- named_interpolations
- nested_elements_with_i18n_attributes
- nested_elements
- nested_ng-content
- nested_templates_context
- nested_templates
- ng_content_with_i18n_children
- plain_text_messages
- self_closing
- ng-container_ng-template
- bare_icus
- child_elements
- duplicate_content
- icus
- nested_ng-container_const
- nested_templates
- ng-container_with_non_text_content
- self_closing_ng-container
- self_closing_tags
- sibling_i18n_blocks
- single_ng-container
- single_ng-template
- structural_directives_same_placeholder
- structural_directives
- repeated_placeholder
- self-closing_i18n_instructions
- icu_only
- ng-container_ng-template
- styles
- text_only_content
- whitespace_preserving_mode/preserve_inner_content
- r3_view_compiler_input_outputs
- component
- directive
- input_transform
- r3_view_compiler_let
- let_for_loop
- let_in_child_view_inside_i18n
- let_in_child_view_listener
- let_in_child_view
- let_in_i18n_and_child_view
- let_in_i18n
- let_in_listener
- let_invalid_forward_ref
- let_local_forward_refs
- let_local_refs
- let_multiple_optimization
- let_optimization_child_view
- let_optimization_listener
- let_partial_optimization
- let_preceded_by_i18n
- let_single_optimization
- let_with_pipe_optimization
- let_with_pipe
- multiple_let
- shadowed_let
- simple_let
- r3_view_compiler_listener
- component_listener
- cross_element_chained_listeners
- element_listener
- embedded_view_listener_context
- event_arg_host_listener_implicit_meaning
- event_arg_listener_implicit_meaning
- event_explicit_access
- event_host_explicit_access
- event_in_property_binding
- has_event_arg_host_listener
- host_listener_property
- implicit_receiver_keyed_write_inside_template
- listener_unused_let
- local_ref_before_listener
- mixed_one_way_two_way_listener_order
- multiple_statements
- nested_two_way
- no_event_arg_host_listener
- no_event_arg_listener
- same_element_chained_listeners
- simple_two_way
- template_chained_listeners
- two_way_binding_to_signal_loop_variable
- two_way_to_any
- r3_view_compiler_providers
- providers_feature_no_providers
- providers_feature_providers_and_view_providers
- providers_feature_providers_only
- providers_feature_view_providers_only
- r3_view_compiler_styling
- binding_slots
- component_host_binding_slots
- directive_host_binding_slots
- host_binding_slots
- chaining
- break_different_instructions
- break_different_interpolation_instructions
- class_bindings
- host_bindings
- interpolations_different_arity
- interpolations_equal_arity
- mixed_bindings
- style_bindings
- class_bindings
- class_binding_on_structural
- class_binding_special_chars
- class_binding
- class_ordering
- empty_class_bindings
- host_class_binding_special_chars
- static_bindings
- component_animations
- animation_host_bindings
- animation_listeners
- animation_property_bindings
- metadata_empty
- metadata
- component_styles
- encapsulation_default
- encapsulation_emulated
- encapsulation_none
- encapsulation_shadow_dom
- external_runtime_files
- host_bindings
- class_interpolation
- css_custom_properties
- important
- multiple_directives
- multiple_dynamic
- static_and_dynamic
- style_interpolation
- interpolations
- class_interpolations
- style_binding_important
- style_binding_sanitizer
- style_binding_suffixed
- style_properties
- invalid/individual_class_binding
- mixed_style_and_class
- mixed
- multiple_elements
- pipe_bindings_slots
- pipe_bindings
- style_bindings
- binding_slots_interpolations
- binding_slots
- colon_style
- css_custom_properties
- duplicate_style_bindings
- empty_style_bindings
- style_binding_suffixed
- style_binding
- style_ordering
- r3_view_compiler_template
- attr_binding_on_structural_inside_ng_template
- create_many_elements
- implicit_receiver
- nested_template_context_many_bindings
- nested_template_context
- nested_ternary_operation_use_null
- nested_ternary_operation
- ng_for_context_in_attr_binding
- ng_for_context_variables
- ng_for_parent_context_variables
- ng_template_bindings
- ng_template_implicit
- ng_template_interpolated_prop_with_structural_directive
- ng_template_interpolated_prop
- ng_template_local_ref
- ng_template_output
- ng_template
- self_closing_structural_directives
- self_closing_tags_nested
- self_closing_tags
- shorthand_property_declaration
- template_binding_pipe
- template_context_skip
- template_with_structural_directive
- unique_listener_function_names
- unique_template_function_names_ng_content
- unique_template_function_names
- r3_view_compiler
- animations
- animate_enter_with_binding
- animate_enter_with_event_host_bindings
- animate_enter_with_event_listener
- animate_enter_with_string_host_bindings
- animate_enter_with_string
- animate_enter_with_structural_directive
- animate_leave_with_binding
- animate_leave_with_event_host_bindings
- animate_leave_with_event_listener
- animate_leave_with_string_host_bindings
- animate_leave_with_string
- animate_prefix_with_event_listener
- any
- basic_any_cast
- this_any_access
- hello_world/test
- interpolations/test
- legacy_animations
- duplicate_animation_listeners
- static_animation_attribute
- nullish_coalescing
- nullish_coalescing_host
- nullish_coalescing_interpolation
- nullish_coalescing_parens_use_null
- nullish_coalescing_parens
- nullish_coalescing_property
- operators_use_null
- operators
- safe_access
- safe_access_deep_use_null
- safe_access_deep
- safe_access_non_null_use_null
- safe_access_non_null
- safe_access_temporaries_use_null
- safe_access_temporaries
- safe_call_use_null
- safe_call
- safe_keyed_read_use_null
- safe_keyed_read
- safe_method_call_use_null
- safe_method_call
- todo_example
- service_decorator
- basic_service
- explicitly_provided_service
- generic_service
- not_provided_service
- service_with_factory
- signal_inputs
- complex_transform_functions
- input_component_definition
- input_directive_definition
- mixed_input_types
- transform_not_captured
- signal_queries
- mixed_query_variants
- query_in_component
- query_in_directive
- source_mapping
- external_templates
- escaped_chars
- external_template
- extra_root_dir
- inline_templates
- escape_sequences
- i18n_message_container_tag
- i18n_message_element_whitespace
- i18n_message_interpolation_whitespace
- i18n_message_placeholder_entities
- i18n_message_placeholder
- i18n_message_simple
- input_binding_class
- input_binding_complex
- input_binding_longhand
- input_binding_simple
- interpolation_basic
- interpolation_complex
- interpolation_properties
- interpolation_with_pipe
- ng_for_simple
- ng_for_templated
- ng_if_simple
- ng_if_templated
- output_binding_complex
- output_binding_longhand
- output_binding_simple
- projection
- simple_element
- two_way_binding_longhand
- two_way_binding_simple
- update_mode
- void_element
- test/compliance
- test_cases
- test_helpers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
0 commit comments