@angular/core 7.0.0-rc.1 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/core-testing.umd.js +36 -33
- package/bundles/core-testing.umd.js.map +1 -1
- package/bundles/core-testing.umd.min.js +3 -3
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +1856 -1463
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +155 -94
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +7 -6
- package/core.metadata.json +1 -1
- package/esm2015/core.externs.js +0 -3
- package/esm2015/core.js +6 -6
- package/esm2015/index.js +2 -2
- package/esm2015/public_api.js +2 -2
- package/esm2015/src/application_init.js +5 -1
- package/esm2015/src/application_module.js +2 -2
- package/esm2015/src/application_ref.js +11 -9
- package/esm2015/src/application_tokens.js +7 -7
- package/esm2015/src/change_detection/change_detection_util.js +3 -1
- package/esm2015/src/change_detection/change_detector_ref.js +2 -1
- package/esm2015/src/change_detection/constants.js +1 -1
- package/esm2015/src/change_detection/differs/default_iterable_differ.js +2 -1
- package/esm2015/src/change_detection/differs/iterable_differs.js +8 -6
- package/esm2015/src/change_detection/differs/keyvalue_differs.js +6 -5
- package/esm2015/src/change_detection/pipe_transform.js +2 -2
- package/esm2015/src/core.js +2 -2
- package/esm2015/src/core_render3_private_export.js +5 -4
- package/esm2015/src/debug/debug_node.js +6 -6
- package/esm2015/src/di/defs.js +5 -5
- package/esm2015/src/di/forward_ref.js +4 -4
- package/esm2015/src/di/injectable.js +5 -2
- package/esm2015/src/di/injection_token.js +3 -1
- package/esm2015/src/di/injector.js +3 -3
- package/esm2015/src/di/metadata.js +16 -1
- package/esm2015/src/di/provider.js +16 -6
- package/esm2015/src/di/r3_injector.js +2 -2
- package/esm2015/src/di/reflective_injector.js +2 -2
- package/esm2015/src/di/reflective_key.js +3 -1
- package/esm2015/src/di/reflective_provider.js +3 -3
- package/esm2015/src/error_handler.js +3 -1
- package/esm2015/src/event_emitter.js +2 -1
- package/esm2015/src/i18n/tokens.js +4 -4
- package/esm2015/src/is_dev_mode.js +4 -2
- package/esm2015/src/ivy_switch/runtime/index.js +2 -2
- package/esm2015/src/ivy_switch/runtime/ivy_switch_on.js +4 -2
- package/esm2015/src/ivy_switch/runtime/jit.js +2 -2
- package/esm2015/src/ivy_switch/runtime/legacy.js +7 -1
- package/esm2015/src/ivy_switch/runtime/local.js +2 -2
- package/esm2015/src/linker/compiler.js +5 -4
- package/esm2015/src/linker/component_factory.js +4 -2
- package/esm2015/src/linker/component_factory_resolver.js +2 -1
- package/esm2015/src/linker/element_ref.js +2 -2
- package/esm2015/src/linker/ng_module_factory.js +3 -3
- package/esm2015/src/linker/ng_module_factory_loader.js +4 -3
- package/esm2015/src/linker/query_list.js +3 -1
- package/esm2015/src/linker/system_js_ng_module_factory_loader.js +3 -3
- package/esm2015/src/linker/template_ref.js +2 -1
- package/esm2015/src/linker/view_container_ref.js +2 -1
- package/esm2015/src/linker/view_ref.js +4 -2
- package/esm2015/src/metadata/di.js +13 -5
- package/esm2015/src/metadata/directives.js +20 -7
- package/esm2015/src/metadata/lifecycle_hooks.js +10 -5
- package/esm2015/src/metadata/ng_module.js +8 -6
- package/esm2015/src/metadata/view.js +1 -1
- package/esm2015/src/platform_core_providers.js +2 -2
- package/esm2015/src/profile/profile.js +5 -5
- package/esm2015/src/profile/wtf_impl.js +2 -2
- package/esm2015/src/r3_symbols.js +1 -1
- package/esm2015/src/reflection/reflection_capabilities.js +3 -3
- package/esm2015/src/render/api.js +20 -7
- package/esm2015/src/render3/component.js +52 -18
- package/esm2015/src/render3/component_ref.js +15 -15
- package/esm2015/src/render3/context_discovery.js +35 -126
- package/esm2015/src/render3/debug.js +33 -56
- package/esm2015/src/render3/definition.js +42 -37
- package/esm2015/src/render3/di.js +4 -28
- package/esm2015/src/render3/discovery_utils.js +10 -7
- package/esm2015/src/render3/i18n.js +60 -34
- package/esm2015/src/render3/index.js +3 -3
- package/esm2015/src/render3/instructions.js +162 -275
- package/esm2015/src/render3/interfaces/container.js +7 -5
- package/esm2015/src/render3/interfaces/context.js +60 -0
- package/esm2015/src/render3/interfaces/definition.js +7 -1
- package/esm2015/src/render3/interfaces/i18n.js +338 -0
- package/esm2015/src/render3/interfaces/node.js +12 -126
- package/esm2015/src/render3/interfaces/player.js +73 -1
- package/esm2015/src/render3/interfaces/styling.js +18 -22
- package/esm2015/src/render3/interfaces/view.js +19 -26
- package/esm2015/src/render3/jit/compiler_facade.js +22 -0
- package/esm2015/src/render3/jit/compiler_facade_interface.js +229 -0
- package/esm2015/src/render3/jit/directive.js +57 -93
- package/esm2015/src/render3/jit/environment.js +7 -3
- package/esm2015/src/render3/jit/injectable.js +21 -46
- package/esm2015/src/render3/jit/module.js +16 -43
- package/esm2015/src/render3/jit/pipe.js +6 -12
- package/esm2015/src/render3/jit/util.js +14 -17
- package/esm2015/src/render3/node_assert.js +1 -1
- package/esm2015/src/render3/node_manipulation.js +99 -109
- package/esm2015/src/render3/players.js +67 -0
- package/esm2015/src/render3/styling/class_and_style_bindings.js +347 -88
- package/esm2015/src/render3/styling/core_player_handler.js +2 -2
- package/esm2015/src/render3/styling/player_factory.js +48 -0
- package/esm2015/src/render3/styling/util.js +165 -17
- package/esm2015/src/render3/util.js +73 -20
- package/esm2015/src/render3/view_engine_compatibility.js +56 -40
- package/esm2015/src/sanitization/security.js +2 -2
- package/esm2015/src/testability/testability.js +5 -6
- package/esm2015/src/type.js +5 -2
- package/esm2015/src/util/decorators.js +2 -1
- package/esm2015/src/util.js +15 -1
- package/esm2015/src/version.js +6 -4
- package/esm2015/src/view/refs.js +3 -3
- package/esm2015/src/view/services.js +8 -6
- package/esm2015/src/zone/ng_zone.js +2 -2
- package/esm2015/testing/src/async.js +2 -2
- package/esm2015/testing/src/component_fixture.js +2 -2
- package/esm2015/testing/src/fake_async.js +7 -7
- package/esm2015/testing/src/fake_async_fallback.js +7 -7
- package/esm2015/testing/src/metadata_override.js +1 -1
- package/esm2015/testing/src/r3_test_bed.js +8 -6
- package/esm2015/testing/src/test_bed.js +10 -8
- package/esm2015/testing/src/test_bed_common.js +6 -6
- package/esm2015/testing/src/test_compiler.js +3 -3
- package/esm5/core.js +6 -6
- package/esm5/src/application_init.js +5 -1
- package/esm5/src/application_module.js +2 -2
- package/esm5/src/application_ref.js +11 -9
- package/esm5/src/application_tokens.js +7 -7
- package/esm5/src/change_detection/change_detection_util.js +3 -1
- package/esm5/src/change_detection/change_detector_ref.js +2 -1
- package/esm5/src/change_detection/constants.js +2 -1
- package/esm5/src/change_detection/differs/default_iterable_differ.js +2 -1
- package/esm5/src/change_detection/differs/iterable_differs.js +2 -1
- package/esm5/src/change_detection/differs/keyvalue_differs.js +2 -1
- package/esm5/src/change_detection/pipe_transform.js +1 -1
- package/esm5/src/core_render3_private_export.js +5 -4
- package/esm5/src/debug/debug_node.js +5 -5
- package/esm5/src/di/defs.js +3 -3
- package/esm5/src/di/forward_ref.js +3 -3
- package/esm5/src/di/injectable.js +6 -5
- package/esm5/src/di/injection_token.js +3 -1
- package/esm5/src/di/injector.js +3 -3
- package/esm5/src/di/metadata.js +6 -1
- package/esm5/src/di/provider.js +1 -1
- package/esm5/src/di/r3_injector.js +2 -2
- package/esm5/src/di/reflective_injector.js +2 -2
- package/esm5/src/di/reflective_key.js +3 -1
- package/esm5/src/di/reflective_provider.js +2 -2
- package/esm5/src/error_handler.js +3 -1
- package/esm5/src/event_emitter.js +2 -1
- package/esm5/src/i18n/tokens.js +5 -5
- package/esm5/src/is_dev_mode.js +4 -2
- package/esm5/src/ivy_switch/runtime/ivy_switch_on.js +3 -2
- package/esm5/src/ivy_switch/runtime/legacy.js +4 -1
- package/esm5/src/linker/compiler.js +5 -4
- package/esm5/src/linker/component_factory.js +5 -1
- package/esm5/src/linker/component_factory_resolver.js +4 -1
- package/esm5/src/linker/element_ref.js +2 -2
- package/esm5/src/linker/ng_module_factory.js +3 -3
- package/esm5/src/linker/ng_module_factory_loader.js +4 -3
- package/esm5/src/linker/query_list.js +3 -1
- package/esm5/src/linker/system_js_ng_module_factory_loader.js +3 -3
- package/esm5/src/linker/template_ref.js +2 -1
- package/esm5/src/linker/view_container_ref.js +2 -1
- package/esm5/src/linker/view_ref.js +4 -2
- package/esm5/src/metadata/di.js +10 -3
- package/esm5/src/metadata/directives.js +9 -6
- package/esm5/src/metadata/lifecycle_hooks.js +1 -1
- package/esm5/src/metadata/ng_module.js +4 -3
- package/esm5/src/metadata/view.js +4 -1
- package/esm5/src/platform_core_providers.js +2 -2
- package/esm5/src/profile/profile.js +5 -5
- package/esm5/src/profile/wtf_impl.js +1 -1
- package/esm5/src/r3_symbols.js +1 -1
- package/esm5/src/reflection/reflection_capabilities.js +3 -3
- package/esm5/src/render/api.js +11 -5
- package/esm5/src/render3/component.js +45 -16
- package/esm5/src/render3/component_ref.js +12 -13
- package/esm5/src/render3/context_discovery.js +33 -65
- package/esm5/src/render3/debug.js +31 -50
- package/esm5/src/render3/definition.js +35 -31
- package/esm5/src/render3/di.js +4 -20
- package/esm5/src/render3/discovery_utils.js +12 -7
- package/esm5/src/render3/i18n.js +40 -30
- package/esm5/src/render3/index.js +3 -3
- package/esm5/src/render3/instructions.js +143 -230
- package/esm5/src/render3/interfaces/container.js +6 -5
- package/esm5/src/render3/interfaces/context.js +13 -0
- package/esm5/src/render3/interfaces/definition.js +1 -1
- package/esm5/src/render3/interfaces/i18n.js +25 -0
- package/esm5/src/render3/interfaces/node.js +1 -1
- package/esm5/src/render3/interfaces/player.js +1 -1
- package/esm5/src/render3/interfaces/styling.js +1 -8
- package/esm5/src/render3/interfaces/view.js +18 -17
- package/esm5/src/render3/jit/compiler_facade.js +21 -0
- package/esm5/src/render3/jit/compiler_facade_interface.js +15 -0
- package/esm5/src/render3/jit/directive.js +44 -79
- package/esm5/src/render3/jit/environment.js +7 -3
- package/esm5/src/render3/jit/injectable.js +26 -46
- package/esm5/src/render3/jit/module.js +16 -31
- package/esm5/src/render3/jit/pipe.js +6 -9
- package/esm5/src/render3/jit/util.js +12 -17
- package/esm5/src/render3/node_assert.js +1 -1
- package/esm5/src/render3/node_manipulation.js +89 -101
- package/esm5/src/render3/players.js +59 -0
- package/esm5/src/render3/styling/class_and_style_bindings.js +248 -85
- package/esm5/src/render3/styling/core_player_handler.js +2 -2
- package/esm5/src/render3/styling/player_factory.js +29 -0
- package/esm5/src/render3/styling/util.js +132 -14
- package/esm5/src/render3/util.js +54 -21
- package/esm5/src/render3/view_engine_compatibility.js +46 -32
- package/esm5/src/sanitization/security.js +3 -3
- package/esm5/src/testability/testability.js +4 -4
- package/esm5/src/type.js +2 -2
- package/esm5/src/util/decorators.js +1 -1
- package/esm5/src/util.js +13 -1
- package/esm5/src/version.js +6 -3
- package/esm5/src/view/refs.js +1 -1
- package/esm5/src/view/services.js +7 -10
- package/esm5/src/zone/ng_zone.js +2 -2
- package/esm5/testing/src/async.js +2 -2
- package/esm5/testing/src/component_fixture.js +2 -2
- package/esm5/testing/src/fake_async.js +7 -7
- package/esm5/testing/src/fake_async_fallback.js +7 -7
- package/esm5/testing/src/metadata_override.js +1 -1
- package/esm5/testing/src/r3_test_bed.js +8 -7
- package/esm5/testing/src/test_bed.js +10 -8
- package/esm5/testing/src/test_bed_common.js +4 -4
- package/esm5/testing/src/test_compiler.js +3 -3
- package/fesm2015/core.js +2486 -1951
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +36 -32
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/core.js +1830 -1439
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +36 -33
- package/fesm5/testing.js.map +1 -1
- package/package.json +1 -2
- package/src/application_init.d.ts +4 -0
- package/src/application_module.d.ts +1 -1
- package/src/application_ref.d.ts +10 -8
- package/src/application_tokens.d.ts +6 -6
- package/src/change_detection/change_detection_util.d.ts +2 -0
- package/src/change_detection/change_detector_ref.d.ts +1 -0
- package/src/change_detection/constants.d.ts +1 -0
- package/src/change_detection/differs/default_iterable_differ.d.ts +1 -0
- package/src/change_detection/differs/iterable_differs.d.ts +8 -6
- package/src/change_detection/differs/keyvalue_differs.d.ts +5 -4
- package/src/change_detection/pipe_transform.d.ts +1 -1
- package/src/core_render3_private_export.d.ts +7 -5
- package/src/debug/debug_node.d.ts +5 -5
- package/src/di/defs.d.ts +4 -4
- package/src/di/forward_ref.d.ts +3 -3
- package/src/di/injectable.d.ts +10 -7
- package/src/di/injection_token.d.ts +2 -0
- package/src/di/injector.d.ts +5 -3
- package/src/di/metadata.d.ts +24 -1
- package/src/di/provider.d.ts +19 -5
- package/src/di/r3_injector.d.ts +1 -1
- package/src/di/reflective_injector.d.ts +1 -1
- package/src/di/reflective_key.d.ts +2 -0
- package/src/di/reflective_provider.d.ts +2 -2
- package/src/error_handler.d.ts +2 -0
- package/src/event_emitter.d.ts +1 -0
- package/src/i18n/tokens.d.ts +4 -4
- package/src/is_dev_mode.d.ts +3 -1
- package/src/ivy_switch/runtime/ivy_switch_on.d.ts +2 -1
- package/src/ivy_switch/runtime/legacy.d.ts +3 -0
- package/src/linker/compiler.d.ts +5 -4
- package/src/linker/component_factory.d.ts +5 -1
- package/src/linker/component_factory_resolver.d.ts +3 -0
- package/src/linker/element_ref.d.ts +1 -1
- package/src/linker/ng_module_factory.d.ts +2 -2
- package/src/linker/ng_module_factory_loader.d.ts +3 -2
- package/src/linker/query_list.d.ts +2 -0
- package/src/linker/system_js_ng_module_factory_loader.d.ts +2 -2
- package/src/linker/template_ref.d.ts +1 -0
- package/src/linker/view_container_ref.d.ts +1 -0
- package/src/linker/view_ref.d.ts +3 -1
- package/src/metadata/di.d.ts +13 -5
- package/src/metadata/directives.d.ts +19 -6
- package/src/metadata/lifecycle_hooks.d.ts +9 -4
- package/src/metadata/ng_module.d.ts +7 -7
- package/src/metadata/view.d.ts +3 -0
- package/src/platform_core_providers.d.ts +1 -1
- package/src/profile/profile.d.ts +4 -4
- package/src/profile/wtf_impl.d.ts +1 -1
- package/src/r3_symbols.d.ts +1 -1
- package/src/render/api.d.ts +10 -7
- package/src/render3/component.d.ts +14 -3
- package/src/render3/context_discovery.d.ts +6 -58
- package/src/render3/definition.d.ts +0 -4
- package/src/render3/di.d.ts +1 -3
- package/src/render3/discovery_utils.d.ts +7 -1
- package/src/render3/i18n.d.ts +4 -0
- package/src/render3/index.d.ts +2 -2
- package/src/render3/instructions.d.ts +43 -50
- package/src/render3/interfaces/container.d.ts +36 -22
- package/src/render3/interfaces/context.d.ts +52 -0
- package/src/render3/interfaces/definition.d.ts +8 -3
- package/src/render3/interfaces/i18n.d.ts +326 -0
- package/src/render3/interfaces/node.d.ts +12 -89
- package/src/render3/interfaces/player.d.ts +58 -4
- package/src/render3/interfaces/styling.d.ts +17 -15
- package/src/render3/interfaces/view.d.ts +28 -28
- package/src/render3/jit/compiler_facade.d.ts +3 -0
- package/src/render3/jit/compiler_facade_interface.d.ts +131 -0
- package/src/render3/jit/directive.d.ts +3 -0
- package/src/render3/jit/util.d.ts +3 -3
- package/src/render3/node_manipulation.d.ts +21 -22
- package/src/render3/players.d.ts +32 -0
- package/src/render3/styling/class_and_style_bindings.d.ts +31 -24
- package/src/render3/styling/player_factory.d.ts +31 -0
- package/src/render3/styling/util.d.ts +31 -9
- package/src/render3/util.d.ts +32 -15
- package/src/render3/view_engine_compatibility.d.ts +3 -0
- package/src/sanitization/security.d.ts +2 -2
- package/src/testability/testability.d.ts +5 -6
- package/src/type.d.ts +6 -1
- package/src/util/decorators.d.ts +1 -0
- package/src/util.d.ts +10 -0
- package/src/version.d.ts +4 -1
- package/src/view/services.d.ts +2 -2
- package/src/zone/ng_zone.d.ts +1 -1
- package/testing/src/async.d.ts +1 -1
- package/testing/src/component_fixture.d.ts +1 -1
- package/testing/src/fake_async.d.ts +6 -6
- package/testing/src/fake_async_fallback.d.ts +6 -6
- package/testing/src/metadata_override.d.ts +1 -1
- package/testing/src/r3_test_bed.d.ts +4 -4
- package/testing/src/test_bed.d.ts +12 -10
- package/testing/src/test_bed_common.d.ts +6 -6
- package/testing/src/test_compiler.d.ts +2 -2
- package/testing/testing.metadata.json +1 -1
- package/esm2015/src/render3/player.js +0 -51
- package/esm5/src/render3/player.js +0 -39
- package/src/render3/player.d.ts +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v7.0.
|
|
2
|
+
* @license Angular v7.0.3
|
|
3
3
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
* });
|
|
134
134
|
* ```
|
|
135
135
|
*
|
|
136
|
-
*
|
|
136
|
+
* @publicApi
|
|
137
137
|
*/
|
|
138
138
|
function async(fn) {
|
|
139
139
|
var _Zone = typeof Zone !== 'undefined' ? Zone : null;
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
/**
|
|
164
164
|
* Fixture for debugging and testing a component.
|
|
165
165
|
*
|
|
166
|
-
*
|
|
166
|
+
* @publicApi
|
|
167
167
|
*/
|
|
168
168
|
var ComponentFixture = /** @class */ (function () {
|
|
169
169
|
function ComponentFixture(componentRef, ngZone, _autoDetect) {
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
* Clears out the shared fake async zone for a test.
|
|
356
356
|
* To be called in a global `beforeEach`.
|
|
357
357
|
*
|
|
358
|
-
* @
|
|
358
|
+
* @publicApi
|
|
359
359
|
*/
|
|
360
360
|
function resetFakeAsyncZoneFallback() {
|
|
361
361
|
_fakeAsyncTestZoneSpec = null;
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
* @param fn
|
|
381
381
|
* @returns The function wrapped to be executed in the fakeAsync zone
|
|
382
382
|
*
|
|
383
|
-
* @
|
|
383
|
+
* @publicApi
|
|
384
384
|
*/
|
|
385
385
|
function fakeAsyncFallback(fn) {
|
|
386
386
|
// Not using an arrow function to preserve context passed from call site
|
|
@@ -443,7 +443,7 @@
|
|
|
443
443
|
*
|
|
444
444
|
* {@example core/testing/ts/fake_async.ts region='basic'}
|
|
445
445
|
*
|
|
446
|
-
* @
|
|
446
|
+
* @publicApi
|
|
447
447
|
*/
|
|
448
448
|
function tickFallback(millis) {
|
|
449
449
|
if (millis === void 0) { millis = 0; }
|
|
@@ -457,7 +457,7 @@
|
|
|
457
457
|
* @param maxTurns
|
|
458
458
|
* @returns The simulated time elapsed, in millis.
|
|
459
459
|
*
|
|
460
|
-
* @
|
|
460
|
+
* @publicApi
|
|
461
461
|
*/
|
|
462
462
|
function flushFallback(maxTurns) {
|
|
463
463
|
return _getFakeAsyncZoneSpec().flush(maxTurns);
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
/**
|
|
466
466
|
* Discard all remaining periodic tasks.
|
|
467
467
|
*
|
|
468
|
-
* @
|
|
468
|
+
* @publicApi
|
|
469
469
|
*/
|
|
470
470
|
function discardPeriodicTasksFallback() {
|
|
471
471
|
var zoneSpec = _getFakeAsyncZoneSpec();
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
/**
|
|
475
475
|
* Flush any pending microtasks.
|
|
476
476
|
*
|
|
477
|
-
* @
|
|
477
|
+
* @publicApi
|
|
478
478
|
*/
|
|
479
479
|
function flushMicrotasksFallback() {
|
|
480
480
|
_getFakeAsyncZoneSpec().flushMicrotasks();
|
|
@@ -493,7 +493,7 @@
|
|
|
493
493
|
* Clears out the shared fake async zone for a test.
|
|
494
494
|
* To be called in a global `beforeEach`.
|
|
495
495
|
*
|
|
496
|
-
* @
|
|
496
|
+
* @publicApi
|
|
497
497
|
*/
|
|
498
498
|
function resetFakeAsyncZone() {
|
|
499
499
|
if (fakeAsyncTestModule) {
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
* @param fn
|
|
521
521
|
* @returns The function wrapped to be executed in the fakeAsync zone
|
|
522
522
|
*
|
|
523
|
-
* @
|
|
523
|
+
* @publicApi
|
|
524
524
|
*/
|
|
525
525
|
function fakeAsync(fn) {
|
|
526
526
|
if (fakeAsyncTestModule) {
|
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
*
|
|
542
542
|
* {@example core/testing/ts/fake_async.ts region='basic'}
|
|
543
543
|
*
|
|
544
|
-
* @
|
|
544
|
+
* @publicApi
|
|
545
545
|
*/
|
|
546
546
|
function tick(millis) {
|
|
547
547
|
if (millis === void 0) { millis = 0; }
|
|
@@ -560,7 +560,7 @@
|
|
|
560
560
|
* @param maxTurns
|
|
561
561
|
* @returns The simulated time elapsed, in millis.
|
|
562
562
|
*
|
|
563
|
-
* @
|
|
563
|
+
* @publicApi
|
|
564
564
|
*/
|
|
565
565
|
function flush(maxTurns) {
|
|
566
566
|
if (fakeAsyncTestModule) {
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
/**
|
|
574
574
|
* Discard all remaining periodic tasks.
|
|
575
575
|
*
|
|
576
|
-
* @
|
|
576
|
+
* @publicApi
|
|
577
577
|
*/
|
|
578
578
|
function discardPeriodicTasks() {
|
|
579
579
|
if (fakeAsyncTestModule) {
|
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
/**
|
|
587
587
|
* Flush any pending microtasks.
|
|
588
588
|
*
|
|
589
|
-
* @
|
|
589
|
+
* @publicApi
|
|
590
590
|
*/
|
|
591
591
|
function flushMicrotasks() {
|
|
592
592
|
if (fakeAsyncTestModule) {
|
|
@@ -920,7 +920,7 @@
|
|
|
920
920
|
/**
|
|
921
921
|
* An abstract class for inserting the root test component element in a platform independent way.
|
|
922
922
|
*
|
|
923
|
-
* @
|
|
923
|
+
* @publicApi
|
|
924
924
|
*/
|
|
925
925
|
var TestComponentRenderer = /** @class */ (function () {
|
|
926
926
|
function TestComponentRenderer() {
|
|
@@ -929,11 +929,11 @@
|
|
|
929
929
|
return TestComponentRenderer;
|
|
930
930
|
}());
|
|
931
931
|
/**
|
|
932
|
-
* @
|
|
932
|
+
* @publicApi
|
|
933
933
|
*/
|
|
934
934
|
var ComponentFixtureAutoDetect = new core.InjectionToken('ComponentFixtureAutoDetect');
|
|
935
935
|
/**
|
|
936
|
-
* @
|
|
936
|
+
* @publicApi
|
|
937
937
|
*/
|
|
938
938
|
var ComponentFixtureNoNgZone = new core.InjectionToken('ComponentFixtureNoNgZone');
|
|
939
939
|
|
|
@@ -987,7 +987,7 @@
|
|
|
987
987
|
* Test modules and platforms for individual platforms are available from
|
|
988
988
|
* '@angular/<platform_name>/testing'.
|
|
989
989
|
*
|
|
990
|
-
* @
|
|
990
|
+
* @publicApi
|
|
991
991
|
*/
|
|
992
992
|
TestBedRender3.initTestEnvironment = function (ngModule, platform, aotSummaries) {
|
|
993
993
|
var testBed = _getTestBedRender3();
|
|
@@ -997,7 +997,7 @@
|
|
|
997
997
|
/**
|
|
998
998
|
* Reset the providers for the test injector.
|
|
999
999
|
*
|
|
1000
|
-
* @
|
|
1000
|
+
* @publicApi
|
|
1001
1001
|
*/
|
|
1002
1002
|
TestBedRender3.resetTestEnvironment = function () { _getTestBedRender3().resetTestEnvironment(); };
|
|
1003
1003
|
TestBedRender3.configureCompiler = function (config) {
|
|
@@ -1080,7 +1080,7 @@
|
|
|
1080
1080
|
* Test modules and platforms for individual platforms are available from
|
|
1081
1081
|
* '@angular/<platform_name>/testing'.
|
|
1082
1082
|
*
|
|
1083
|
-
* @
|
|
1083
|
+
* @publicApi
|
|
1084
1084
|
*/
|
|
1085
1085
|
TestBedRender3.prototype.initTestEnvironment = function (ngModule, platform, aotSummaries) {
|
|
1086
1086
|
if (this.platform || this.ngModule) {
|
|
@@ -1092,7 +1092,7 @@
|
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Reset the providers for the test injector.
|
|
1094
1094
|
*
|
|
1095
|
-
* @
|
|
1095
|
+
* @publicApi
|
|
1096
1096
|
*/
|
|
1097
1097
|
TestBedRender3.prototype.resetTestEnvironment = function () {
|
|
1098
1098
|
this.resetTestingModule();
|
|
@@ -1146,9 +1146,10 @@
|
|
|
1146
1146
|
(_d = this._schemas).push.apply(_d, __spread(moduleDef.schemas));
|
|
1147
1147
|
}
|
|
1148
1148
|
};
|
|
1149
|
-
// TODO(vicb): implement
|
|
1150
1149
|
TestBedRender3.prototype.compileComponents = function () {
|
|
1151
|
-
|
|
1150
|
+
// assume for now that components don't use templateUrl / stylesUrl to unblock further testing
|
|
1151
|
+
// TODO(pk): plug into the ivy's resource fetching pipeline
|
|
1152
|
+
return Promise.resolve();
|
|
1152
1153
|
};
|
|
1153
1154
|
TestBedRender3.prototype.get = function (token, notFoundValue) {
|
|
1154
1155
|
if (notFoundValue === void 0) { notFoundValue = core.Injector.THROW_IF_NOT_FOUND; }
|
|
@@ -1418,7 +1419,7 @@
|
|
|
1418
1419
|
/**
|
|
1419
1420
|
* Special interface to the compiler only used by testing
|
|
1420
1421
|
*
|
|
1421
|
-
* @
|
|
1422
|
+
* @publicApi
|
|
1422
1423
|
*/
|
|
1423
1424
|
var TestingCompiler = /** @class */ (function (_super) {
|
|
1424
1425
|
__extends(TestingCompiler, _super);
|
|
@@ -1466,7 +1467,7 @@
|
|
|
1466
1467
|
/**
|
|
1467
1468
|
* A factory for creating a Compiler
|
|
1468
1469
|
*
|
|
1469
|
-
* @
|
|
1470
|
+
* @publicApi
|
|
1470
1471
|
*/
|
|
1471
1472
|
var TestingCompilerFactory = /** @class */ (function () {
|
|
1472
1473
|
function TestingCompilerFactory() {
|
|
@@ -1528,7 +1529,7 @@
|
|
|
1528
1529
|
* Test modules and platforms for individual platforms are available from
|
|
1529
1530
|
* '@angular/<platform_name>/testing'.
|
|
1530
1531
|
*
|
|
1531
|
-
* @
|
|
1532
|
+
* @publicApi
|
|
1532
1533
|
*/
|
|
1533
1534
|
TestBedViewEngine.initTestEnvironment = function (ngModule, platform, aotSummaries) {
|
|
1534
1535
|
var testBed = _getTestBedViewEngine();
|
|
@@ -1538,7 +1539,7 @@
|
|
|
1538
1539
|
/**
|
|
1539
1540
|
* Reset the providers for the test injector.
|
|
1540
1541
|
*
|
|
1541
|
-
* @
|
|
1542
|
+
* @publicApi
|
|
1542
1543
|
*/
|
|
1543
1544
|
TestBedViewEngine.resetTestEnvironment = function () { _getTestBedViewEngine().resetTestEnvironment(); };
|
|
1544
1545
|
TestBedViewEngine.resetTestingModule = function () {
|
|
@@ -1623,7 +1624,7 @@
|
|
|
1623
1624
|
* Test modules and platforms for individual platforms are available from
|
|
1624
1625
|
* '@angular/<platform_name>/testing'.
|
|
1625
1626
|
*
|
|
1626
|
-
* @
|
|
1627
|
+
* @publicApi
|
|
1627
1628
|
*/
|
|
1628
1629
|
TestBedViewEngine.prototype.initTestEnvironment = function (ngModule, platform, aotSummaries) {
|
|
1629
1630
|
if (this.platform || this.ngModule) {
|
|
@@ -1638,7 +1639,7 @@
|
|
|
1638
1639
|
/**
|
|
1639
1640
|
* Reset the providers for the test injector.
|
|
1640
1641
|
*
|
|
1641
|
-
* @
|
|
1642
|
+
* @publicApi
|
|
1642
1643
|
*/
|
|
1643
1644
|
TestBedViewEngine.prototype.resetTestEnvironment = function () {
|
|
1644
1645
|
this.resetTestingModule();
|
|
@@ -1947,6 +1948,8 @@
|
|
|
1947
1948
|
*
|
|
1948
1949
|
* Note: Use `TestBed` in tests. It will be set to either `TestBedViewEngine` or `TestBedRender3`
|
|
1949
1950
|
* according to the compiler used.
|
|
1951
|
+
*
|
|
1952
|
+
* @publicApi
|
|
1950
1953
|
*/
|
|
1951
1954
|
var TestBed = core.ɵivyEnabled ? TestBedRender3 : TestBedViewEngine;
|
|
1952
1955
|
/**
|
|
@@ -1954,7 +1957,7 @@
|
|
|
1954
1957
|
*
|
|
1955
1958
|
* It will be either an instance of `TestBedViewEngine` or `TestBedRender3`.
|
|
1956
1959
|
*
|
|
1957
|
-
* @
|
|
1960
|
+
* @publicApi
|
|
1958
1961
|
*/
|
|
1959
1962
|
var getTestBed = core.ɵivyEnabled ? _getTestBedRender3 : _getTestBedViewEngine;
|
|
1960
1963
|
var testBed$1;
|
|
@@ -1983,7 +1986,7 @@
|
|
|
1983
1986
|
* eventually
|
|
1984
1987
|
* becomes `it('...', @Inject (object: AClass, async: AsyncTestCompleter) => { ... });`
|
|
1985
1988
|
*
|
|
1986
|
-
*
|
|
1989
|
+
* @publicApi
|
|
1987
1990
|
*/
|
|
1988
1991
|
function inject(tokens, fn) {
|
|
1989
1992
|
var testBed = getTestBed();
|
|
@@ -2006,7 +2009,7 @@
|
|
|
2006
2009
|
}
|
|
2007
2010
|
}
|
|
2008
2011
|
/**
|
|
2009
|
-
* @
|
|
2012
|
+
* @publicApi
|
|
2010
2013
|
*/
|
|
2011
2014
|
var InjectSetupWrapper = /** @class */ (function () {
|
|
2012
2015
|
function InjectSetupWrapper(_moduleDef) {
|