@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
package/fesm5/testing.js
CHANGED
|
@@ -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
|
*/
|
|
@@ -130,7 +130,7 @@ function runInTestZone(fn, context, finishCallback, failCallback) {
|
|
|
130
130
|
* });
|
|
131
131
|
* ```
|
|
132
132
|
*
|
|
133
|
-
*
|
|
133
|
+
* @publicApi
|
|
134
134
|
*/
|
|
135
135
|
function async(fn) {
|
|
136
136
|
var _Zone = typeof Zone !== 'undefined' ? Zone : null;
|
|
@@ -160,7 +160,7 @@ function async(fn) {
|
|
|
160
160
|
/**
|
|
161
161
|
* Fixture for debugging and testing a component.
|
|
162
162
|
*
|
|
163
|
-
*
|
|
163
|
+
* @publicApi
|
|
164
164
|
*/
|
|
165
165
|
var ComponentFixture = /** @class */ (function () {
|
|
166
166
|
function ComponentFixture(componentRef, ngZone, _autoDetect) {
|
|
@@ -352,7 +352,7 @@ var _fakeAsyncTestZoneSpec = null;
|
|
|
352
352
|
* Clears out the shared fake async zone for a test.
|
|
353
353
|
* To be called in a global `beforeEach`.
|
|
354
354
|
*
|
|
355
|
-
* @
|
|
355
|
+
* @publicApi
|
|
356
356
|
*/
|
|
357
357
|
function resetFakeAsyncZoneFallback() {
|
|
358
358
|
_fakeAsyncTestZoneSpec = null;
|
|
@@ -377,7 +377,7 @@ var _inFakeAsyncCall = false;
|
|
|
377
377
|
* @param fn
|
|
378
378
|
* @returns The function wrapped to be executed in the fakeAsync zone
|
|
379
379
|
*
|
|
380
|
-
* @
|
|
380
|
+
* @publicApi
|
|
381
381
|
*/
|
|
382
382
|
function fakeAsyncFallback(fn) {
|
|
383
383
|
// Not using an arrow function to preserve context passed from call site
|
|
@@ -440,7 +440,7 @@ function _getFakeAsyncZoneSpec() {
|
|
|
440
440
|
*
|
|
441
441
|
* {@example core/testing/ts/fake_async.ts region='basic'}
|
|
442
442
|
*
|
|
443
|
-
* @
|
|
443
|
+
* @publicApi
|
|
444
444
|
*/
|
|
445
445
|
function tickFallback(millis) {
|
|
446
446
|
if (millis === void 0) { millis = 0; }
|
|
@@ -454,7 +454,7 @@ function tickFallback(millis) {
|
|
|
454
454
|
* @param maxTurns
|
|
455
455
|
* @returns The simulated time elapsed, in millis.
|
|
456
456
|
*
|
|
457
|
-
* @
|
|
457
|
+
* @publicApi
|
|
458
458
|
*/
|
|
459
459
|
function flushFallback(maxTurns) {
|
|
460
460
|
return _getFakeAsyncZoneSpec().flush(maxTurns);
|
|
@@ -462,7 +462,7 @@ function flushFallback(maxTurns) {
|
|
|
462
462
|
/**
|
|
463
463
|
* Discard all remaining periodic tasks.
|
|
464
464
|
*
|
|
465
|
-
* @
|
|
465
|
+
* @publicApi
|
|
466
466
|
*/
|
|
467
467
|
function discardPeriodicTasksFallback() {
|
|
468
468
|
var zoneSpec = _getFakeAsyncZoneSpec();
|
|
@@ -471,7 +471,7 @@ function discardPeriodicTasksFallback() {
|
|
|
471
471
|
/**
|
|
472
472
|
* Flush any pending microtasks.
|
|
473
473
|
*
|
|
474
|
-
* @
|
|
474
|
+
* @publicApi
|
|
475
475
|
*/
|
|
476
476
|
function flushMicrotasksFallback() {
|
|
477
477
|
_getFakeAsyncZoneSpec().flushMicrotasks();
|
|
@@ -490,7 +490,7 @@ var fakeAsyncTestModule = _Zone$1 && _Zone$1[_Zone$1.__symbol__('fakeAsyncTest')
|
|
|
490
490
|
* Clears out the shared fake async zone for a test.
|
|
491
491
|
* To be called in a global `beforeEach`.
|
|
492
492
|
*
|
|
493
|
-
* @
|
|
493
|
+
* @publicApi
|
|
494
494
|
*/
|
|
495
495
|
function resetFakeAsyncZone() {
|
|
496
496
|
if (fakeAsyncTestModule) {
|
|
@@ -517,7 +517,7 @@ function resetFakeAsyncZone() {
|
|
|
517
517
|
* @param fn
|
|
518
518
|
* @returns The function wrapped to be executed in the fakeAsync zone
|
|
519
519
|
*
|
|
520
|
-
* @
|
|
520
|
+
* @publicApi
|
|
521
521
|
*/
|
|
522
522
|
function fakeAsync(fn) {
|
|
523
523
|
if (fakeAsyncTestModule) {
|
|
@@ -538,7 +538,7 @@ function fakeAsync(fn) {
|
|
|
538
538
|
*
|
|
539
539
|
* {@example core/testing/ts/fake_async.ts region='basic'}
|
|
540
540
|
*
|
|
541
|
-
* @
|
|
541
|
+
* @publicApi
|
|
542
542
|
*/
|
|
543
543
|
function tick(millis) {
|
|
544
544
|
if (millis === void 0) { millis = 0; }
|
|
@@ -557,7 +557,7 @@ function tick(millis) {
|
|
|
557
557
|
* @param maxTurns
|
|
558
558
|
* @returns The simulated time elapsed, in millis.
|
|
559
559
|
*
|
|
560
|
-
* @
|
|
560
|
+
* @publicApi
|
|
561
561
|
*/
|
|
562
562
|
function flush(maxTurns) {
|
|
563
563
|
if (fakeAsyncTestModule) {
|
|
@@ -570,7 +570,7 @@ function flush(maxTurns) {
|
|
|
570
570
|
/**
|
|
571
571
|
* Discard all remaining periodic tasks.
|
|
572
572
|
*
|
|
573
|
-
* @
|
|
573
|
+
* @publicApi
|
|
574
574
|
*/
|
|
575
575
|
function discardPeriodicTasks() {
|
|
576
576
|
if (fakeAsyncTestModule) {
|
|
@@ -583,7 +583,7 @@ function discardPeriodicTasks() {
|
|
|
583
583
|
/**
|
|
584
584
|
* Flush any pending microtasks.
|
|
585
585
|
*
|
|
586
|
-
* @
|
|
586
|
+
* @publicApi
|
|
587
587
|
*/
|
|
588
588
|
function flushMicrotasks() {
|
|
589
589
|
if (fakeAsyncTestModule) {
|
|
@@ -847,7 +847,7 @@ var NgModuleResolver = /** @class */ (function (_super) {
|
|
|
847
847
|
/**
|
|
848
848
|
* An abstract class for inserting the root test component element in a platform independent way.
|
|
849
849
|
*
|
|
850
|
-
* @
|
|
850
|
+
* @publicApi
|
|
851
851
|
*/
|
|
852
852
|
var TestComponentRenderer = /** @class */ (function () {
|
|
853
853
|
function TestComponentRenderer() {
|
|
@@ -856,11 +856,11 @@ var TestComponentRenderer = /** @class */ (function () {
|
|
|
856
856
|
return TestComponentRenderer;
|
|
857
857
|
}());
|
|
858
858
|
/**
|
|
859
|
-
* @
|
|
859
|
+
* @publicApi
|
|
860
860
|
*/
|
|
861
861
|
var ComponentFixtureAutoDetect = new InjectionToken('ComponentFixtureAutoDetect');
|
|
862
862
|
/**
|
|
863
|
-
* @
|
|
863
|
+
* @publicApi
|
|
864
864
|
*/
|
|
865
865
|
var ComponentFixtureNoNgZone = new InjectionToken('ComponentFixtureNoNgZone');
|
|
866
866
|
|
|
@@ -914,7 +914,7 @@ var TestBedRender3 = /** @class */ (function () {
|
|
|
914
914
|
* Test modules and platforms for individual platforms are available from
|
|
915
915
|
* '@angular/<platform_name>/testing'.
|
|
916
916
|
*
|
|
917
|
-
* @
|
|
917
|
+
* @publicApi
|
|
918
918
|
*/
|
|
919
919
|
TestBedRender3.initTestEnvironment = function (ngModule, platform, aotSummaries) {
|
|
920
920
|
var testBed = _getTestBedRender3();
|
|
@@ -924,7 +924,7 @@ var TestBedRender3 = /** @class */ (function () {
|
|
|
924
924
|
/**
|
|
925
925
|
* Reset the providers for the test injector.
|
|
926
926
|
*
|
|
927
|
-
* @
|
|
927
|
+
* @publicApi
|
|
928
928
|
*/
|
|
929
929
|
TestBedRender3.resetTestEnvironment = function () { _getTestBedRender3().resetTestEnvironment(); };
|
|
930
930
|
TestBedRender3.configureCompiler = function (config) {
|
|
@@ -1007,7 +1007,7 @@ var TestBedRender3 = /** @class */ (function () {
|
|
|
1007
1007
|
* Test modules and platforms for individual platforms are available from
|
|
1008
1008
|
* '@angular/<platform_name>/testing'.
|
|
1009
1009
|
*
|
|
1010
|
-
* @
|
|
1010
|
+
* @publicApi
|
|
1011
1011
|
*/
|
|
1012
1012
|
TestBedRender3.prototype.initTestEnvironment = function (ngModule, platform, aotSummaries) {
|
|
1013
1013
|
if (this.platform || this.ngModule) {
|
|
@@ -1019,7 +1019,7 @@ var TestBedRender3 = /** @class */ (function () {
|
|
|
1019
1019
|
/**
|
|
1020
1020
|
* Reset the providers for the test injector.
|
|
1021
1021
|
*
|
|
1022
|
-
* @
|
|
1022
|
+
* @publicApi
|
|
1023
1023
|
*/
|
|
1024
1024
|
TestBedRender3.prototype.resetTestEnvironment = function () {
|
|
1025
1025
|
this.resetTestingModule();
|
|
@@ -1073,9 +1073,10 @@ var TestBedRender3 = /** @class */ (function () {
|
|
|
1073
1073
|
(_d = this._schemas).push.apply(_d, __spread(moduleDef.schemas));
|
|
1074
1074
|
}
|
|
1075
1075
|
};
|
|
1076
|
-
// TODO(vicb): implement
|
|
1077
1076
|
TestBedRender3.prototype.compileComponents = function () {
|
|
1078
|
-
|
|
1077
|
+
// assume for now that components don't use templateUrl / stylesUrl to unblock further testing
|
|
1078
|
+
// TODO(pk): plug into the ivy's resource fetching pipeline
|
|
1079
|
+
return Promise.resolve();
|
|
1079
1080
|
};
|
|
1080
1081
|
TestBedRender3.prototype.get = function (token, notFoundValue) {
|
|
1081
1082
|
if (notFoundValue === void 0) { notFoundValue = Injector.THROW_IF_NOT_FOUND; }
|
|
@@ -1345,7 +1346,7 @@ function unimplemented() {
|
|
|
1345
1346
|
/**
|
|
1346
1347
|
* Special interface to the compiler only used by testing
|
|
1347
1348
|
*
|
|
1348
|
-
* @
|
|
1349
|
+
* @publicApi
|
|
1349
1350
|
*/
|
|
1350
1351
|
var TestingCompiler = /** @class */ (function (_super) {
|
|
1351
1352
|
__extends(TestingCompiler, _super);
|
|
@@ -1393,7 +1394,7 @@ var TestingCompiler = /** @class */ (function (_super) {
|
|
|
1393
1394
|
/**
|
|
1394
1395
|
* A factory for creating a Compiler
|
|
1395
1396
|
*
|
|
1396
|
-
* @
|
|
1397
|
+
* @publicApi
|
|
1397
1398
|
*/
|
|
1398
1399
|
var TestingCompilerFactory = /** @class */ (function () {
|
|
1399
1400
|
function TestingCompilerFactory() {
|
|
@@ -1455,7 +1456,7 @@ var TestBedViewEngine = /** @class */ (function () {
|
|
|
1455
1456
|
* Test modules and platforms for individual platforms are available from
|
|
1456
1457
|
* '@angular/<platform_name>/testing'.
|
|
1457
1458
|
*
|
|
1458
|
-
* @
|
|
1459
|
+
* @publicApi
|
|
1459
1460
|
*/
|
|
1460
1461
|
TestBedViewEngine.initTestEnvironment = function (ngModule, platform, aotSummaries) {
|
|
1461
1462
|
var testBed = _getTestBedViewEngine();
|
|
@@ -1465,7 +1466,7 @@ var TestBedViewEngine = /** @class */ (function () {
|
|
|
1465
1466
|
/**
|
|
1466
1467
|
* Reset the providers for the test injector.
|
|
1467
1468
|
*
|
|
1468
|
-
* @
|
|
1469
|
+
* @publicApi
|
|
1469
1470
|
*/
|
|
1470
1471
|
TestBedViewEngine.resetTestEnvironment = function () { _getTestBedViewEngine().resetTestEnvironment(); };
|
|
1471
1472
|
TestBedViewEngine.resetTestingModule = function () {
|
|
@@ -1550,7 +1551,7 @@ var TestBedViewEngine = /** @class */ (function () {
|
|
|
1550
1551
|
* Test modules and platforms for individual platforms are available from
|
|
1551
1552
|
* '@angular/<platform_name>/testing'.
|
|
1552
1553
|
*
|
|
1553
|
-
* @
|
|
1554
|
+
* @publicApi
|
|
1554
1555
|
*/
|
|
1555
1556
|
TestBedViewEngine.prototype.initTestEnvironment = function (ngModule, platform, aotSummaries) {
|
|
1556
1557
|
if (this.platform || this.ngModule) {
|
|
@@ -1565,7 +1566,7 @@ var TestBedViewEngine = /** @class */ (function () {
|
|
|
1565
1566
|
/**
|
|
1566
1567
|
* Reset the providers for the test injector.
|
|
1567
1568
|
*
|
|
1568
|
-
* @
|
|
1569
|
+
* @publicApi
|
|
1569
1570
|
*/
|
|
1570
1571
|
TestBedViewEngine.prototype.resetTestEnvironment = function () {
|
|
1571
1572
|
this.resetTestingModule();
|
|
@@ -1874,6 +1875,8 @@ var TestBedViewEngine = /** @class */ (function () {
|
|
|
1874
1875
|
*
|
|
1875
1876
|
* Note: Use `TestBed` in tests. It will be set to either `TestBedViewEngine` or `TestBedRender3`
|
|
1876
1877
|
* according to the compiler used.
|
|
1878
|
+
*
|
|
1879
|
+
* @publicApi
|
|
1877
1880
|
*/
|
|
1878
1881
|
var TestBed = ɵivyEnabled ? TestBedRender3 : TestBedViewEngine;
|
|
1879
1882
|
/**
|
|
@@ -1881,7 +1884,7 @@ var TestBed = ɵivyEnabled ? TestBedRender3 : TestBedViewEngine;
|
|
|
1881
1884
|
*
|
|
1882
1885
|
* It will be either an instance of `TestBedViewEngine` or `TestBedRender3`.
|
|
1883
1886
|
*
|
|
1884
|
-
* @
|
|
1887
|
+
* @publicApi
|
|
1885
1888
|
*/
|
|
1886
1889
|
var getTestBed = ɵivyEnabled ? _getTestBedRender3 : _getTestBedViewEngine;
|
|
1887
1890
|
var testBed$1;
|
|
@@ -1910,7 +1913,7 @@ function _getTestBedViewEngine() {
|
|
|
1910
1913
|
* eventually
|
|
1911
1914
|
* becomes `it('...', @Inject (object: AClass, async: AsyncTestCompleter) => { ... });`
|
|
1912
1915
|
*
|
|
1913
|
-
*
|
|
1916
|
+
* @publicApi
|
|
1914
1917
|
*/
|
|
1915
1918
|
function inject(tokens, fn) {
|
|
1916
1919
|
var testBed = getTestBed();
|
|
@@ -1933,7 +1936,7 @@ function inject(tokens, fn) {
|
|
|
1933
1936
|
}
|
|
1934
1937
|
}
|
|
1935
1938
|
/**
|
|
1936
|
-
* @
|
|
1939
|
+
* @publicApi
|
|
1937
1940
|
*/
|
|
1938
1941
|
var InjectSetupWrapper = /** @class */ (function () {
|
|
1939
1942
|
function InjectSetupWrapper(_moduleDef) {
|