From 41c8c309730d36e46012f6461e8c94d84b13554d Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Tue, 27 Sep 2016 17:12:25 -0700 Subject: [PATCH] chore(lint): remove unused imports (#11923) This was done automatically by tslint, which can now fix issues it finds. The fixer is still pending in PR https://github.com/palantir/tslint/pull/1568 Also I have a local bugfix for https://github.com/palantir/tslint/issues/1569 which causes too many imports to be deleted. --- .../@angular/benchpress/src/reporter/console_reporter.ts | 5 +---- .../@angular/benchpress/src/reporter/json_file_reporter.ts | 2 +- modules/@angular/benchpress/src/runner.ts | 2 +- modules/@angular/benchpress/src/web_driver_extension.ts | 2 +- .../@angular/benchpress/test/metric/multi_metric_spec.ts | 2 +- .../@angular/benchpress/test/metric/perflog_metric_spec.ts | 2 +- .../@angular/benchpress/test/metric/user_metric_spec.ts | 7 +++---- .../benchpress/test/reporter/console_reporter_spec.ts | 2 +- .../benchpress/test/reporter/json_file_reporter_spec.ts | 2 +- .../benchpress/test/reporter/multi_reporter_spec.ts | 2 +- modules/@angular/benchpress/test/runner_spec.ts | 2 +- modules/@angular/benchpress/test/sampler_spec.ts | 2 +- modules/@angular/benchpress/test/statistic_spec.ts | 2 +- .../test/validator/regression_slope_validator_spec.ts | 2 +- .../benchpress/test/validator/size_validator_spec.ts | 2 +- .../@angular/benchpress/test/web_driver_extension_spec.ts | 2 +- .../test/webdriver/chrome_driver_extension_spec.ts | 2 +- .../benchpress/test/webdriver/ios_driver_extension_spec.ts | 4 ++-- modules/@angular/common/test/directives/ng_class_spec.ts | 2 +- modules/@angular/common/test/localization_spec.ts | 2 +- modules/@angular/common/test/pipes/async_pipe_spec.ts | 2 +- modules/@angular/common/test/pipes/date_pipe_spec.ts | 2 +- .../@angular/common/test/pipes/i18n_plural_pipe_spec.ts | 2 +- .../@angular/common/test/pipes/i18n_select_pipe_spec.ts | 2 +- modules/@angular/common/test/pipes/lowercase_pipe_spec.ts | 2 +- modules/@angular/common/test/pipes/number_pipe_spec.ts | 2 +- modules/@angular/common/test/pipes/slice_pipe_spec.ts | 1 - modules/@angular/common/test/pipes/uppercase_pipe_spec.ts | 2 +- modules/@angular/common/test/spies.ts | 2 +- modules/@angular/compiler-cli/src/static_reflector.ts | 2 +- modules/@angular/compiler/src/compile_metadata.ts | 5 ++--- modules/@angular/compiler/src/compiler.ts | 2 +- modules/@angular/compiler/src/expression_parser/ast.ts | 2 +- modules/@angular/compiler/src/ng_module_compiler.ts | 2 +- modules/@angular/compiler/src/offline_compiler.ts | 2 +- modules/@angular/compiler/src/output/js_emitter.ts | 2 +- modules/@angular/compiler/src/output/output_ast.ts | 2 -- modules/@angular/compiler/src/provider_analyzer.ts | 2 +- modules/@angular/compiler/src/runtime_compiler.ts | 2 +- .../@angular/compiler/src/view_compiler/compile_pipe.ts | 4 ++-- .../@angular/compiler/src/view_compiler/compile_query.ts | 2 +- .../@angular/compiler/src/view_compiler/compile_view.ts | 5 ++--- modules/@angular/compiler/src/view_compiler/constants.ts | 1 - .../@angular/compiler/src/view_compiler/event_binder.ts | 4 ++-- modules/@angular/compiler/src/view_compiler/view_binder.ts | 5 ++--- .../compiler/test/animation/animation_compiler_spec.ts | 6 ++---- .../compiler/test/animation/animation_parser_spec.ts | 7 +++---- .../@angular/compiler/test/css_parser/css_lexer_spec.ts | 2 +- .../@angular/compiler/test/css_parser/css_parser_spec.ts | 2 +- .../@angular/compiler/test/css_parser/css_visitor_spec.ts | 4 ++-- modules/@angular/compiler/test/directive_lifecycle_spec.ts | 2 +- .../@angular/compiler/test/directive_normalizer_spec.ts | 2 +- .../@angular/compiler/test/expression_parser/unparser.ts | 4 ++-- .../@angular/compiler/test/expression_parser/validator.ts | 2 +- modules/@angular/compiler/test/i18n/digest_spec.ts | 2 +- .../@angular/compiler/test/i18n/extractor_merger_spec.ts | 2 +- modules/@angular/compiler/test/i18n/i18n_parser_spec.ts | 2 +- modules/@angular/compiler/test/i18n/message_bundle_spec.ts | 2 +- .../compiler/test/i18n/serializers/placeholder_spec.ts | 2 +- .../@angular/compiler/test/i18n/serializers/xliff_spec.ts | 2 +- .../@angular/compiler/test/i18n/serializers/xmb_spec.ts | 2 +- .../compiler/test/i18n/serializers/xml_helper_spec.ts | 2 +- .../@angular/compiler/test/i18n/serializers/xtb_spec.ts | 2 +- .../compiler/test/ml_parser/ast_serializer_spec.ts | 2 +- .../@angular/compiler/test/ml_parser/html_parser_spec.ts | 2 +- .../compiler/test/ml_parser/icu_ast_expander_spec.ts | 2 +- modules/@angular/compiler/test/ml_parser/lexer_spec.ts | 2 +- .../@angular/compiler/test/ng_module_resolver_mock_spec.ts | 4 +--- .../@angular/compiler/test/output/abstract_emitter_spec.ts | 2 +- modules/@angular/compiler/test/output/js_emitter_spec.ts | 2 +- .../compiler/test/output/output_emitter_codegen_typed.ts | 2 +- .../@angular/compiler/test/output/output_emitter_spec.ts | 2 +- modules/@angular/compiler/test/output/ts_emitter_spec.ts | 2 +- modules/@angular/compiler/test/pipe_resolver_mock_spec.ts | 4 +--- .../@angular/compiler/test/resource_loader_mock_spec.ts | 2 +- modules/@angular/compiler/test/runtime_compiler_spec.ts | 6 +++--- .../test/schema/dom_element_schema_registry_spec.ts | 2 +- modules/@angular/compiler/test/shadow_css_spec.ts | 2 +- modules/@angular/compiler/test/spies.ts | 2 +- .../compiler/test/template_parser/template_parser_spec.ts | 2 +- .../test/template_parser/template_preparser_spec.ts | 2 +- modules/@angular/compiler/test/url_resolver_spec.ts | 2 +- modules/@angular/compiler/test/util_spec.ts | 2 +- modules/@angular/core/src/animation/view_animation_map.ts | 2 +- modules/@angular/core/src/linker/view.ts | 2 +- modules/@angular/core/src/metadata/directives.ts | 3 +-- .../test/animation/active_animations_players_map_spec.ts | 4 +--- .../core/test/animation/animation_group_player_spec.ts | 2 +- .../@angular/core/test/animation/animation_player_spec.ts | 4 ++-- .../core/test/animation/animation_sequence_player_spec.ts | 3 +-- .../core/test/animation/animation_style_util_spec.ts | 2 +- modules/@angular/core/test/application_init_spec.ts | 2 +- modules/@angular/core/test/application_module_spec.ts | 2 +- modules/@angular/core/test/application_ref_spec.ts | 2 +- .../test/change_detection/change_detector_util_spec.ts | 2 +- .../differs/default_iterable_differ_spec.ts | 2 +- .../differs/default_keyvalue_differ_spec.ts | 2 +- .../test/change_detection/differs/iterable_differs_spec.ts | 4 ++-- modules/@angular/core/test/debug/debug_node_spec.ts | 2 +- modules/@angular/core/test/di/forward_ref_spec.ts | 2 +- modules/@angular/core/test/di/injector_spec.ts | 2 +- modules/@angular/core/test/di/reflective_key_spec.ts | 2 +- modules/@angular/core/test/dom/dom_adapter_spec.ts | 2 +- modules/@angular/core/test/dom/shim_spec.ts | 2 +- modules/@angular/core/test/facade/observable_spec.ts | 2 +- modules/@angular/core/test/fake_async_spec.ts | 2 +- .../core/test/linker/change_detection_integration_spec.ts | 6 +++--- .../core/test/linker/entry_components_integration_spec.ts | 2 +- modules/@angular/core/test/linker/integration_spec.ts | 2 +- .../core/test/linker/ng_container_integration_spec.ts | 6 +++--- .../core/test/linker/projection_integration_spec.ts | 2 +- modules/@angular/core/test/linker/query_list_spec.ts | 2 +- .../core/test/linker/regression_integration_spec.ts | 2 +- .../@angular/core/test/linker/security_integration_spec.ts | 2 +- .../test/linker/system_ng_module_factory_loader_spec.ts | 2 +- .../core/test/linker/view_injector_integration_spec.ts | 6 +++--- modules/@angular/core/test/metadata/decorators_spec.ts | 2 +- modules/@angular/core/test/reflection/reflector_spec.ts | 5 ++--- modules/@angular/core/test/testability/testability_spec.ts | 4 ++-- modules/@angular/core/test/util/decorators_spec.ts | 4 ++-- modules/@angular/core/test/zone/ng_zone_spec.ts | 2 +- modules/@angular/core/testing/test_bed.ts | 2 +- modules/@angular/examples/common/pipes/ts/async_pipe.ts | 4 +--- modules/@angular/examples/common/pipes/ts/date_pipe.ts | 4 +--- modules/@angular/examples/common/pipes/ts/i18n_pipe.ts | 6 +----- modules/@angular/examples/common/pipes/ts/json_pipe.ts | 4 +--- .../@angular/examples/common/pipes/ts/lowerupper_pipe.ts | 4 +--- modules/@angular/examples/common/pipes/ts/number_pipe.ts | 4 +--- modules/@angular/examples/common/pipes/ts/slice_pipe.ts | 4 +--- .../core/di/ts/contentChild/content_child_howto.ts | 2 +- .../core/di/ts/contentChildren/content_children_howto.ts | 2 +- .../examples/core/di/ts/forward_ref/forward_ref_spec.ts | 2 +- modules/@angular/examples/core/di/ts/provider_spec.ts | 2 +- .../examples/core/di/ts/viewChild/view_child_example.ts | 2 +- .../examples/core/di/ts/viewChild/view_child_howto.ts | 2 +- .../examples/core/ts/metadata/lifecycle_hooks_spec.ts | 2 +- modules/@angular/examples/core/ts/platform/platform.ts | 3 +-- .../forms/ts/nestedFormArray/nested_form_array_example.ts | 2 +- modules/@angular/facade/src/collection.ts | 2 +- modules/@angular/facade/test/async_spec.ts | 5 ++--- .../forms/src/directives/radio_control_value_accessor.ts | 1 - modules/@angular/forms/test/directives_spec.ts | 2 +- modules/@angular/forms/test/form_array_spec.ts | 2 +- modules/@angular/forms/test/form_builder_spec.ts | 2 +- modules/@angular/forms/test/form_control_spec.ts | 2 +- modules/@angular/forms/test/form_group_spec.ts | 2 +- modules/@angular/forms/test/spies.ts | 2 +- modules/@angular/forms/test/validators_spec.ts | 2 +- modules/@angular/http/src/backends/jsonp_backend.ts | 2 +- modules/@angular/http/src/base_response_options.ts | 2 +- modules/@angular/http/src/http.ts | 1 - modules/@angular/http/src/static_response.ts | 3 +-- modules/@angular/http/test/backends/jsonp_backend_spec.ts | 3 +-- modules/@angular/http/test/backends/mock_backend_spec.ts | 2 +- modules/@angular/http/test/backends/xhr_backend_spec.ts | 2 +- modules/@angular/http/test/base_request_options_spec.ts | 2 +- modules/@angular/http/test/headers_spec.ts | 2 +- modules/@angular/http/test/http_spec.ts | 2 +- modules/@angular/http/test/url_search_params_spec.ts | 2 +- .../src/platform-browser-dynamic.ts | 3 +-- .../platform-browser-dynamic/src/private_export.ts | 2 +- .../test/resource_loader/resource_loader_impl_spec.ts | 2 +- modules/@angular/platform-browser-dynamic/testing/index.ts | 2 +- modules/@angular/platform-browser/src/browser.ts | 2 +- .../platform-browser/src/browser/browser_adapter.ts | 1 - .../src/browser/location/browser_platform_location.ts | 1 - .../@angular/platform-browser/src/browser/testability.ts | 2 +- modules/@angular/platform-browser/src/dom/dom_renderer.ts | 4 +--- .../platform-browser/src/dom/web_animations_driver.ts | 3 +-- modules/@angular/platform-browser/src/private_export.ts | 2 +- .../platform-browser/test/browser/bootstrap_spec.ts | 2 +- .../platform-browser/test/browser/browser_adapter_spec.ts | 2 +- .../platform-browser/test/browser/tools/tools_spec.ts | 2 +- .../test/dom/dom_renderer_integration_spec.ts | 2 +- .../platform-browser/test/dom/events/event_manager_spec.ts | 2 +- .../platform-browser/test/dom/events/key_events_spec.ts | 2 +- .../platform-browser/test/dom/shared_styles_host_spec.ts | 2 +- .../test/dom/web_animations_driver_spec.ts | 2 +- .../test/dom/web_animations_player_spec.ts | 2 +- modules/@angular/platform-browser/testing/browser.ts | 2 +- modules/@angular/platform-browser/testing/browser_util.ts | 2 +- modules/@angular/platform-server/src/private_export.ts | 2 +- modules/@angular/platform-server/src/server.ts | 2 +- modules/@angular/platform-server/testing/server.ts | 2 +- .../src/platform-webworker-dynamic.ts | 2 +- modules/@angular/platform-webworker/src/worker_app.ts | 2 +- modules/@angular/platform-webworker/src/worker_render.ts | 2 +- .../test/web_workers/shared/message_bus_spec.ts | 2 +- .../test/web_workers/shared/service_message_broker_spec.ts | 2 +- .../test/web_workers/shared/web_worker_test_util.ts | 1 - .../test/web_workers/worker/platform_location_spec.ts | 2 +- .../platform-webworker/test/web_workers/worker/spies.ts | 2 +- .../@angular/router/src/directives/router_link_active.ts | 1 - modules/@angular/router/src/private_export.ts | 2 +- modules/@angular/router/src/router_preloader.ts | 3 +-- modules/@angular/router/src/router_state.ts | 2 +- modules/@angular/router/test/create_router_state.spec.ts | 2 +- modules/@angular/router/test/create_url_tree.spec.ts | 2 +- modules/@angular/router/test/router_preloader.spec.ts | 2 +- modules/@angular/router/test/url_serializer.spec.ts | 2 +- modules/@angular/router/test/url_tree.spec.ts | 2 +- modules/@angular/router/testing/router_testing_module.ts | 2 +- modules/@angular/upgrade/src/upgrade_adapter.ts | 2 +- modules/@angular/upgrade/test/metadata_spec.ts | 4 ++-- modules/@angular/upgrade/test/upgrade_spec.ts | 2 +- modules/benchmarks/src/largetable/ng2/index.ts | 2 +- modules/benchmarks/src/largetable/ng2_switch/index.ts | 2 +- modules/benchmarks/src/tree/baseline/index.ts | 2 +- modules/benchmarks/src/tree/incremental_dom/index.ts | 2 +- modules/benchmarks/src/tree/ng2/index.ts | 4 ++-- modules/benchmarks/src/tree/ng2_static/index.ts | 4 ++-- modules/benchmarks/src/tree/ng2_switch/index.ts | 4 ++-- modules/benchmarks/src/tree/ng2_switch/tree.ts | 2 +- modules/benchmarks/src/tree/polymer_leaves/index.ts | 2 +- modules/playground/e2e_test/sourcemap/sourcemap_spec.ts | 2 +- modules/playground/src/animate/app/animate-app.ts | 2 +- modules/playground/src/animate/index.ts | 2 +- modules/playground/src/model_driven_forms/index.ts | 2 +- modules/playground/src/routing/app/inbox-app.ts | 2 +- modules/playground/src/template_driven_forms/index.ts | 4 ++-- modules/playground/src/web_workers/images/index_common.ts | 1 - modules/playground/src/web_workers/images/single_thread.ts | 2 +- 222 files changed, 244 insertions(+), 299 deletions(-) diff --git a/modules/@angular/benchpress/src/reporter/console_reporter.ts b/modules/@angular/benchpress/src/reporter/console_reporter.ts index 8a4a5198af..96187a311f 100644 --- a/modules/@angular/benchpress/src/reporter/console_reporter.ts +++ b/modules/@angular/benchpress/src/reporter/console_reporter.ts @@ -7,10 +7,7 @@ */ import {Inject, Injectable, OpaqueToken} from '@angular/core'; - -import {ListWrapper, StringMapWrapper} from '../facade/collection'; -import {NumberWrapper, isBlank, isPresent, print} from '../facade/lang'; -import {Math} from '../facade/math'; +import {print} from '../facade/lang'; import {MeasureValues} from '../measure_values'; import {Reporter} from '../reporter'; import {SampleDescription} from '../sample_description'; diff --git a/modules/@angular/benchpress/src/reporter/json_file_reporter.ts b/modules/@angular/benchpress/src/reporter/json_file_reporter.ts index 814aac37bc..db64677881 100644 --- a/modules/@angular/benchpress/src/reporter/json_file_reporter.ts +++ b/modules/@angular/benchpress/src/reporter/json_file_reporter.ts @@ -9,7 +9,7 @@ import {Inject, Injectable, OpaqueToken} from '@angular/core'; import {Options} from '../common_options'; -import {DateWrapper, Json, isBlank, isPresent} from '../facade/lang'; +import {DateWrapper, Json} from '../facade/lang'; import {MeasureValues} from '../measure_values'; import {Reporter} from '../reporter'; import {SampleDescription} from '../sample_description'; diff --git a/modules/@angular/benchpress/src/runner.ts b/modules/@angular/benchpress/src/runner.ts index 5ad1674c99..f684cb12a5 100644 --- a/modules/@angular/benchpress/src/runner.ts +++ b/modules/@angular/benchpress/src/runner.ts @@ -9,7 +9,7 @@ import {Provider, ReflectiveInjector} from '@angular/core'; import {Options} from './common_options'; -import {isBlank, isPresent} from './facade/lang'; +import {isPresent} from './facade/lang'; import {Metric} from './metric'; import {MultiMetric} from './metric/multi_metric'; import {PerflogMetric} from './metric/perflog_metric'; diff --git a/modules/@angular/benchpress/src/web_driver_extension.ts b/modules/@angular/benchpress/src/web_driver_extension.ts index afd680f372..06030e17a4 100644 --- a/modules/@angular/benchpress/src/web_driver_extension.ts +++ b/modules/@angular/benchpress/src/web_driver_extension.ts @@ -9,7 +9,7 @@ import {Injector, OpaqueToken} from '@angular/core'; import {Options} from './common_options'; -import {isBlank, isPresent} from './facade/lang'; +import {isBlank} from './facade/lang'; export type PerfLogEvent = { [key: string]: any diff --git a/modules/@angular/benchpress/test/metric/multi_metric_spec.ts b/modules/@angular/benchpress/test/metric/multi_metric_spec.ts index 95c05220d7..445a318369 100644 --- a/modules/@angular/benchpress/test/metric/multi_metric_spec.ts +++ b/modules/@angular/benchpress/test/metric/multi_metric_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {Metric, MultiMetric, ReflectiveInjector} from '../../index'; export function main() { diff --git a/modules/@angular/benchpress/test/metric/perflog_metric_spec.ts b/modules/@angular/benchpress/test/metric/perflog_metric_spec.ts index 43f1a5ea44..84f113e3a1 100644 --- a/modules/@angular/benchpress/test/metric/perflog_metric_spec.ts +++ b/modules/@angular/benchpress/test/metric/perflog_metric_spec.ts @@ -7,7 +7,7 @@ */ import {Provider} from '@angular/core'; -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {Metric, Options, PerfLogEvent, PerfLogFeatures, PerflogMetric, ReflectiveInjector, WebDriverExtension} from '../../index'; import {StringMapWrapper} from '../../src/facade/collection'; diff --git a/modules/@angular/benchpress/test/metric/user_metric_spec.ts b/modules/@angular/benchpress/test/metric/user_metric_spec.ts index 9f034c56a5..5680e216d8 100644 --- a/modules/@angular/benchpress/test/metric/user_metric_spec.ts +++ b/modules/@angular/benchpress/test/metric/user_metric_spec.ts @@ -7,11 +7,10 @@ */ import {Provider, ReflectiveInjector} from '@angular/core'; -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; -import {Injector, Metric, MultiMetric, Options, PerfLogEvent, PerfLogFeatures, PerflogMetric, UserMetric, WebDriverAdapter, WebDriverExtension} from '../../index'; -import {StringMapWrapper} from '../../src/facade/collection'; -import {Json, isBlank, isPresent} from '../../src/facade/lang'; +import {Options, PerfLogEvent, PerfLogFeatures, UserMetric, WebDriverAdapter} from '../../index'; +import {isBlank} from '../../src/facade/lang'; export function main() { var wdAdapter: MockDriverAdapter; diff --git a/modules/@angular/benchpress/test/reporter/console_reporter_spec.ts b/modules/@angular/benchpress/test/reporter/console_reporter_spec.ts index 12ee9b7df9..5fc5ae3798 100644 --- a/modules/@angular/benchpress/test/reporter/console_reporter_spec.ts +++ b/modules/@angular/benchpress/test/reporter/console_reporter_spec.ts @@ -7,7 +7,7 @@ */ import {Provider} from '@angular/core'; -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {ConsoleReporter, MeasureValues, ReflectiveInjector, SampleDescription} from '../../index'; import {DateWrapper, isBlank, isPresent} from '../../src/facade/lang'; diff --git a/modules/@angular/benchpress/test/reporter/json_file_reporter_spec.ts b/modules/@angular/benchpress/test/reporter/json_file_reporter_spec.ts index ba3f181d75..f5ce8027d9 100644 --- a/modules/@angular/benchpress/test/reporter/json_file_reporter_spec.ts +++ b/modules/@angular/benchpress/test/reporter/json_file_reporter_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {JsonFileReporter, MeasureValues, Options, ReflectiveInjector, SampleDescription} from '../../index'; import {DateWrapper, Json, isPresent} from '../../src/facade/lang'; diff --git a/modules/@angular/benchpress/test/reporter/multi_reporter_spec.ts b/modules/@angular/benchpress/test/reporter/multi_reporter_spec.ts index 9d4c1b9ac1..89b0c371f4 100644 --- a/modules/@angular/benchpress/test/reporter/multi_reporter_spec.ts +++ b/modules/@angular/benchpress/test/reporter/multi_reporter_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {MeasureValues, MultiReporter, ReflectiveInjector, Reporter} from '../../index'; import {DateWrapper} from '../../src/facade/lang'; diff --git a/modules/@angular/benchpress/test/runner_spec.ts b/modules/@angular/benchpress/test/runner_spec.ts index f63a8a5694..6121ac6bcd 100644 --- a/modules/@angular/benchpress/test/runner_spec.ts +++ b/modules/@angular/benchpress/test/runner_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {Injector, Metric, Options, ReflectiveInjector, Runner, SampleDescription, SampleState, Sampler, Validator, WebDriverAdapter} from '../index'; import {isBlank} from '../src/facade/lang'; diff --git a/modules/@angular/benchpress/test/sampler_spec.ts b/modules/@angular/benchpress/test/sampler_spec.ts index c9653aed3f..4d91120e7c 100644 --- a/modules/@angular/benchpress/test/sampler_spec.ts +++ b/modules/@angular/benchpress/test/sampler_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {MeasureValues, Metric, Options, ReflectiveInjector, Reporter, Sampler, Validator, WebDriverAdapter} from '../index'; import {DateWrapper, isBlank, isPresent} from '../src/facade/lang'; diff --git a/modules/@angular/benchpress/test/statistic_spec.ts b/modules/@angular/benchpress/test/statistic_spec.ts index 075023d503..23124061a0 100644 --- a/modules/@angular/benchpress/test/statistic_spec.ts +++ b/modules/@angular/benchpress/test/statistic_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {Statistic} from '../src/statistic'; export function main() { diff --git a/modules/@angular/benchpress/test/validator/regression_slope_validator_spec.ts b/modules/@angular/benchpress/test/validator/regression_slope_validator_spec.ts index 76305fb467..66e2a262db 100644 --- a/modules/@angular/benchpress/test/validator/regression_slope_validator_spec.ts +++ b/modules/@angular/benchpress/test/validator/regression_slope_validator_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {MeasureValues, ReflectiveInjector, RegressionSlopeValidator} from '../../index'; import {ListWrapper} from '../../src/facade/collection'; diff --git a/modules/@angular/benchpress/test/validator/size_validator_spec.ts b/modules/@angular/benchpress/test/validator/size_validator_spec.ts index bc8c35dc8e..b75358798b 100644 --- a/modules/@angular/benchpress/test/validator/size_validator_spec.ts +++ b/modules/@angular/benchpress/test/validator/size_validator_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {MeasureValues, ReflectiveInjector, SizeValidator} from '../../index'; import {ListWrapper} from '../../src/facade/collection'; diff --git a/modules/@angular/benchpress/test/web_driver_extension_spec.ts b/modules/@angular/benchpress/test/web_driver_extension_spec.ts index 5eaa2865d5..ed70dc5fda 100644 --- a/modules/@angular/benchpress/test/web_driver_extension_spec.ts +++ b/modules/@angular/benchpress/test/web_driver_extension_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {Options, ReflectiveInjector, WebDriverExtension} from '../index'; import {StringWrapper, isPresent} from '../src/facade/lang'; diff --git a/modules/@angular/benchpress/test/webdriver/chrome_driver_extension_spec.ts b/modules/@angular/benchpress/test/webdriver/chrome_driver_extension_spec.ts index ac7f054b86..3f28baa57c 100644 --- a/modules/@angular/benchpress/test/webdriver/chrome_driver_extension_spec.ts +++ b/modules/@angular/benchpress/test/webdriver/chrome_driver_extension_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {ChromeDriverExtension, Options, ReflectiveInjector, WebDriverAdapter, WebDriverExtension} from '../../index'; import {Json, isBlank} from '../../src/facade/lang'; diff --git a/modules/@angular/benchpress/test/webdriver/ios_driver_extension_spec.ts b/modules/@angular/benchpress/test/webdriver/ios_driver_extension_spec.ts index b749e939a5..242fef4073 100644 --- a/modules/@angular/benchpress/test/webdriver/ios_driver_extension_spec.ts +++ b/modules/@angular/benchpress/test/webdriver/ios_driver_extension_spec.ts @@ -6,10 +6,10 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {IOsDriverExtension, ReflectiveInjector, WebDriverAdapter, WebDriverExtension} from '../../index'; -import {Json, isBlank, isPresent} from '../../src/facade/lang'; +import {Json, isBlank} from '../../src/facade/lang'; import {TraceEventFactory} from '../trace_event_factory'; export function main() { diff --git a/modules/@angular/common/test/directives/ng_class_spec.ts b/modules/@angular/common/test/directives/ng_class_spec.ts index 5c962840c0..1536939055 100644 --- a/modules/@angular/common/test/directives/ng_class_spec.ts +++ b/modules/@angular/common/test/directives/ng_class_spec.ts @@ -8,7 +8,7 @@ import {Component} from '@angular/core'; import {ComponentFixture, TestBed, async} from '@angular/core/testing'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; export function main() { describe('binding to CSS class list', () => { diff --git a/modules/@angular/common/test/localization_spec.ts b/modules/@angular/common/test/localization_spec.ts index afec2c0dcb..28d82716fd 100644 --- a/modules/@angular/common/test/localization_spec.ts +++ b/modules/@angular/common/test/localization_spec.ts @@ -8,7 +8,7 @@ import {LOCALE_ID} from '@angular/core'; import {TestBed} from '@angular/core/testing'; -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, inject, it} from '@angular/core/testing/testing_internal'; import {expect} from '@angular/platform-browser/testing/matchers'; import {NgLocaleLocalization, NgLocalization, getPluralCategory} from '../src/localization'; diff --git a/modules/@angular/common/test/pipes/async_pipe_spec.ts b/modules/@angular/common/test/pipes/async_pipe_spec.ts index a0240a89e1..d125c41613 100644 --- a/modules/@angular/common/test/pipes/async_pipe_spec.ts +++ b/modules/@angular/common/test/pipes/async_pipe_spec.ts @@ -8,7 +8,7 @@ import {AsyncPipe} from '@angular/common'; import {WrappedValue} from '@angular/core'; -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {browserDetection} from '@angular/platform-browser/testing/browser_util'; diff --git a/modules/@angular/common/test/pipes/date_pipe_spec.ts b/modules/@angular/common/test/pipes/date_pipe_spec.ts index 25e58c8beb..32c88cf203 100644 --- a/modules/@angular/common/test/pipes/date_pipe_spec.ts +++ b/modules/@angular/common/test/pipes/date_pipe_spec.ts @@ -8,7 +8,7 @@ import {DatePipe} from '@angular/common'; import {PipeResolver} from '@angular/compiler/src/pipe_resolver'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {browserDetection} from '@angular/platform-browser/testing/browser_util'; import {DateWrapper} from '../../src/facade/lang'; diff --git a/modules/@angular/common/test/pipes/i18n_plural_pipe_spec.ts b/modules/@angular/common/test/pipes/i18n_plural_pipe_spec.ts index 5f0198bc13..f042f777bf 100644 --- a/modules/@angular/common/test/pipes/i18n_plural_pipe_spec.ts +++ b/modules/@angular/common/test/pipes/i18n_plural_pipe_spec.ts @@ -8,7 +8,7 @@ import {I18nPluralPipe, NgLocalization} from '@angular/common'; import {PipeResolver} from '@angular/compiler/src/pipe_resolver'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; export function main() { describe('I18nPluralPipe', () => { diff --git a/modules/@angular/common/test/pipes/i18n_select_pipe_spec.ts b/modules/@angular/common/test/pipes/i18n_select_pipe_spec.ts index bd4874deda..2cecbf1bfd 100644 --- a/modules/@angular/common/test/pipes/i18n_select_pipe_spec.ts +++ b/modules/@angular/common/test/pipes/i18n_select_pipe_spec.ts @@ -8,7 +8,7 @@ import {I18nSelectPipe} from '@angular/common'; import {PipeResolver} from '@angular/compiler/src/pipe_resolver'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; export function main() { describe('I18nSelectPipe', () => { diff --git a/modules/@angular/common/test/pipes/lowercase_pipe_spec.ts b/modules/@angular/common/test/pipes/lowercase_pipe_spec.ts index 31d699007c..c508525e3f 100644 --- a/modules/@angular/common/test/pipes/lowercase_pipe_spec.ts +++ b/modules/@angular/common/test/pipes/lowercase_pipe_spec.ts @@ -7,7 +7,7 @@ */ import {LowerCasePipe} from '@angular/common'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; export function main() { describe('LowerCasePipe', () => { diff --git a/modules/@angular/common/test/pipes/number_pipe_spec.ts b/modules/@angular/common/test/pipes/number_pipe_spec.ts index e19a9e8786..29c8e80206 100644 --- a/modules/@angular/common/test/pipes/number_pipe_spec.ts +++ b/modules/@angular/common/test/pipes/number_pipe_spec.ts @@ -7,7 +7,7 @@ */ import {CurrencyPipe, DecimalPipe, PercentPipe} from '@angular/common'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {browserDetection} from '@angular/platform-browser/testing/browser_util'; export function main() { diff --git a/modules/@angular/common/test/pipes/slice_pipe_spec.ts b/modules/@angular/common/test/pipes/slice_pipe_spec.ts index 683f9bb5a6..c3cbdea10e 100644 --- a/modules/@angular/common/test/pipes/slice_pipe_spec.ts +++ b/modules/@angular/common/test/pipes/slice_pipe_spec.ts @@ -9,7 +9,6 @@ import {CommonModule, SlicePipe} from '@angular/common'; import {Component} from '@angular/core'; import {TestBed, async} from '@angular/core/testing'; -import {browserDetection} from '@angular/platform-browser/testing/browser_util'; import {expect} from '@angular/platform-browser/testing/matchers'; export function main() { diff --git a/modules/@angular/common/test/pipes/uppercase_pipe_spec.ts b/modules/@angular/common/test/pipes/uppercase_pipe_spec.ts index e8bb9a4694..c4e391c78d 100644 --- a/modules/@angular/common/test/pipes/uppercase_pipe_spec.ts +++ b/modules/@angular/common/test/pipes/uppercase_pipe_spec.ts @@ -7,7 +7,7 @@ */ import {UpperCasePipe} from '@angular/common'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; export function main() { describe('UpperCasePipe', () => { diff --git a/modules/@angular/common/test/spies.ts b/modules/@angular/common/test/spies.ts index 6c4d6bb722..6338e5252c 100644 --- a/modules/@angular/common/test/spies.ts +++ b/modules/@angular/common/test/spies.ts @@ -7,7 +7,7 @@ */ import {ChangeDetectorRef} from '@angular/core/src/change_detection/change_detector_ref'; -import {SpyObject, proxy} from '@angular/core/testing/testing_internal'; +import {SpyObject} from '@angular/core/testing/testing_internal'; export class SpyChangeDetectorRef extends SpyObject { constructor() { diff --git a/modules/@angular/compiler-cli/src/static_reflector.ts b/modules/@angular/compiler-cli/src/static_reflector.ts index 4bd14ddd40..eac7121917 100644 --- a/modules/@angular/compiler-cli/src/static_reflector.ts +++ b/modules/@angular/compiler-cli/src/static_reflector.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Attribute, Component, ContentChild, ContentChildren, Directive, Host, HostBinding, HostListener, Inject, Injectable, Input, NgModule, Optional, Output, Pipe, Query, Self, SkipSelf, ViewChild, ViewChildren, animate, group, keyframes, sequence, state, style, transition, trigger} from '@angular/core'; +import {Attribute, Component, ContentChild, ContentChildren, Directive, Host, HostBinding, HostListener, Inject, Injectable, Input, NgModule, Optional, Output, Pipe, Self, SkipSelf, ViewChild, ViewChildren, animate, group, keyframes, sequence, state, style, transition, trigger} from '@angular/core'; import {ReflectorReader} from './private_import_core'; diff --git a/modules/@angular/compiler/src/compile_metadata.ts b/modules/@angular/compiler/src/compile_metadata.ts index e7eddf4f4a..94db25d418 100644 --- a/modules/@angular/compiler/src/compile_metadata.ts +++ b/modules/@angular/compiler/src/compile_metadata.ts @@ -9,10 +9,9 @@ import {ChangeDetectionStrategy, SchemaMetadata, Type, ViewEncapsulation} from '@angular/core'; import {ListWrapper, MapWrapper, StringMapWrapper} from './facade/collection'; -import {isBlank, isPresent, isStringMap, normalizeBlank, normalizeBool} from './facade/lang'; -import {LifecycleHooks, reflector} from './private_import_core'; +import {isPresent, isStringMap, normalizeBlank, normalizeBool} from './facade/lang'; +import {LifecycleHooks} from './private_import_core'; import {CssSelector} from './selector'; -import {getUrlScheme} from './url_resolver'; import {sanitizeIdentifier, splitAtColon} from './util'; function unimplemented(): any { diff --git a/modules/@angular/compiler/src/compiler.ts b/modules/@angular/compiler/src/compiler.ts index f23e7f20f6..b0f2633695 100644 --- a/modules/@angular/compiler/src/compiler.ts +++ b/modules/@angular/compiler/src/compiler.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {COMPILER_OPTIONS, ClassProvider, Compiler, CompilerFactory, CompilerOptions, Component, ExistingProvider, FactoryProvider, Inject, Injectable, Optional, PLATFORM_INITIALIZER, PlatformRef, Provider, ReflectiveInjector, TRANSLATIONS, TRANSLATIONS_FORMAT, Type, TypeProvider, ValueProvider, ViewEncapsulation, createPlatformFactory, isDevMode, platformCore} from '@angular/core'; +import {COMPILER_OPTIONS, Compiler, CompilerFactory, CompilerOptions, Inject, Injectable, Optional, PLATFORM_INITIALIZER, PlatformRef, Provider, ReflectiveInjector, TRANSLATIONS, TRANSLATIONS_FORMAT, Type, ViewEncapsulation, createPlatformFactory, isDevMode, platformCore} from '@angular/core'; export * from './template_parser/template_ast'; export {TEMPLATE_TRANSFORMS} from './template_parser/template_parser'; diff --git a/modules/@angular/compiler/src/expression_parser/ast.ts b/modules/@angular/compiler/src/expression_parser/ast.ts index 8c65ead52f..340c47981e 100644 --- a/modules/@angular/compiler/src/expression_parser/ast.ts +++ b/modules/@angular/compiler/src/expression_parser/ast.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {ListWrapper} from '../facade/collection'; + import {isBlank} from '../facade/lang'; export class ParserError { diff --git a/modules/@angular/compiler/src/ng_module_compiler.ts b/modules/@angular/compiler/src/ng_module_compiler.ts index 4c0871818f..42e4910d92 100644 --- a/modules/@angular/compiler/src/ng_module_compiler.ts +++ b/modules/@angular/compiler/src/ng_module_compiler.ts @@ -10,7 +10,7 @@ import {Injectable} from '@angular/core'; import {CompileDiDependencyMetadata, CompileIdentifierMetadata, CompileNgModuleMetadata, CompileProviderMetadata, CompileTokenMetadata} from './compile_metadata'; import {isBlank, isPresent} from './facade/lang'; -import {Identifiers, identifierToken, resolveIdentifier, resolveIdentifierToken} from './identifiers'; +import {Identifiers, resolveIdentifier, resolveIdentifierToken} from './identifiers'; import * as o from './output/output_ast'; import {convertValueToOutputAst} from './output/value_util'; import {ParseLocation, ParseSourceFile, ParseSourceSpan} from './parse_util'; diff --git a/modules/@angular/compiler/src/offline_compiler.ts b/modules/@angular/compiler/src/offline_compiler.ts index 65a9bb2856..e7cdaeb34f 100644 --- a/modules/@angular/compiler/src/offline_compiler.ts +++ b/modules/@angular/compiler/src/offline_compiler.ts @@ -10,7 +10,7 @@ import {SchemaMetadata} from '@angular/core'; import {AnimationCompiler} from './animation/animation_compiler'; import {AnimationParser} from './animation/animation_parser'; -import {CompileDirectiveMetadata, CompileIdentifierMetadata, CompileNgModuleMetadata, CompilePipeMetadata, CompileProviderMetadata, CompileTokenMetadata, StaticSymbol, createHostComponentMeta} from './compile_metadata'; +import {CompileDirectiveMetadata, CompileIdentifierMetadata, CompileNgModuleMetadata, CompilePipeMetadata, CompileProviderMetadata, StaticSymbol, createHostComponentMeta} from './compile_metadata'; import {DirectiveNormalizer} from './directive_normalizer'; import {Identifiers, resolveIdentifier, resolveIdentifierToken} from './identifiers'; import {CompileMetadataResolver} from './metadata_resolver'; diff --git a/modules/@angular/compiler/src/output/js_emitter.ts b/modules/@angular/compiler/src/output/js_emitter.ts index c59e558417..2a34751137 100644 --- a/modules/@angular/compiler/src/output/js_emitter.ts +++ b/modules/@angular/compiler/src/output/js_emitter.ts @@ -7,7 +7,7 @@ */ -import {StringWrapper, evalExpression, isBlank, isPresent, isString} from '../facade/lang'; +import {isBlank, isPresent} from '../facade/lang'; import {EmitterVisitorContext, OutputEmitter} from './abstract_emitter'; import {AbstractJsEmitterVisitor} from './abstract_js_emitter'; diff --git a/modules/@angular/compiler/src/output/output_ast.ts b/modules/@angular/compiler/src/output/output_ast.ts index f148d402b3..f81c5278d7 100644 --- a/modules/@angular/compiler/src/output/output_ast.ts +++ b/modules/@angular/compiler/src/output/output_ast.ts @@ -8,9 +8,7 @@ import {CompileIdentifierMetadata} from '../compile_metadata'; -import {StringMapWrapper} from '../facade/collection'; import {isBlank, isPresent, isString} from '../facade/lang'; -import {ValueTransformer, visitValue} from '../util'; diff --git a/modules/@angular/compiler/src/provider_analyzer.ts b/modules/@angular/compiler/src/provider_analyzer.ts index b6160788da..91575e1329 100644 --- a/modules/@angular/compiler/src/provider_analyzer.ts +++ b/modules/@angular/compiler/src/provider_analyzer.ts @@ -12,7 +12,7 @@ import {ListWrapper, MapWrapper} from './facade/collection'; import {isArray, isBlank, isPresent, normalizeBlank} from './facade/lang'; import {Identifiers, resolveIdentifierToken} from './identifiers'; import {ParseError, ParseSourceSpan} from './parse_util'; -import {AttrAst, DirectiveAst, ProviderAst, ProviderAstType, ReferenceAst, VariableAst} from './template_parser/template_ast'; +import {AttrAst, DirectiveAst, ProviderAst, ProviderAstType, ReferenceAst} from './template_parser/template_ast'; export class ProviderError extends ParseError { constructor(message: string, span: ParseSourceSpan) { super(span, message); } diff --git a/modules/@angular/compiler/src/runtime_compiler.ts b/modules/@angular/compiler/src/runtime_compiler.ts index 1ca88871c3..80c96eaf29 100644 --- a/modules/@angular/compiler/src/runtime_compiler.ts +++ b/modules/@angular/compiler/src/runtime_compiler.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Compiler, ComponentFactory, Injectable, Injector, ModuleWithComponentFactories, NgModuleFactory, Optional, Provider, SchemaMetadata, SkipSelf, Type} from '@angular/core'; +import {Compiler, ComponentFactory, Injectable, Injector, ModuleWithComponentFactories, NgModuleFactory, SchemaMetadata, Type} from '@angular/core'; import {AnimationCompiler} from './animation/animation_compiler'; import {AnimationParser} from './animation/animation_parser'; import {CompileDirectiveMetadata, CompileIdentifierMetadata, CompileNgModuleMetadata, CompilePipeMetadata, ProviderMeta, createHostComponentMeta} from './compile_metadata'; diff --git a/modules/@angular/compiler/src/view_compiler/compile_pipe.ts b/modules/@angular/compiler/src/view_compiler/compile_pipe.ts index 56ba18b939..ec02559bb7 100644 --- a/modules/@angular/compiler/src/view_compiler/compile_pipe.ts +++ b/modules/@angular/compiler/src/view_compiler/compile_pipe.ts @@ -8,8 +8,8 @@ import {CompilePipeMetadata} from '../compile_metadata'; -import {isBlank, isPresent} from '../facade/lang'; -import {Identifiers, identifierToken, resolveIdentifier, resolveIdentifierToken} from '../identifiers'; +import {isBlank} from '../facade/lang'; +import {Identifiers, resolveIdentifier, resolveIdentifierToken} from '../identifiers'; import * as o from '../output/output_ast'; import {CompileView} from './compile_view'; diff --git a/modules/@angular/compiler/src/view_compiler/compile_query.ts b/modules/@angular/compiler/src/view_compiler/compile_query.ts index 1069455bfa..0fba9175b3 100644 --- a/modules/@angular/compiler/src/view_compiler/compile_query.ts +++ b/modules/@angular/compiler/src/view_compiler/compile_query.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {CompileQueryMetadata, CompileTokenMetadata} from '../compile_metadata'; +import {CompileQueryMetadata} from '../compile_metadata'; import {ListWrapper} from '../facade/collection'; import {isBlank, isPresent} from '../facade/lang'; import {Identifiers, resolveIdentifier} from '../identifiers'; diff --git a/modules/@angular/compiler/src/view_compiler/compile_view.ts b/modules/@angular/compiler/src/view_compiler/compile_view.ts index 7d429211cc..5b5b4b1bf2 100644 --- a/modules/@angular/compiler/src/view_compiler/compile_view.ts +++ b/modules/@angular/compiler/src/view_compiler/compile_view.ts @@ -7,14 +7,13 @@ */ import {AnimationEntryCompileResult} from '../animation/animation_compiler'; -import {CompileDirectiveMetadata, CompileIdentifierMetadata, CompilePipeMetadata, CompileTokenMetadata} from '../compile_metadata'; +import {CompileDirectiveMetadata, CompileIdentifierMetadata, CompilePipeMetadata} from '../compile_metadata'; import {CompilerConfig} from '../config'; import {ListWrapper, MapWrapper} from '../facade/collection'; import {isBlank, isPresent} from '../facade/lang'; import {Identifiers, resolveIdentifier} from '../identifiers'; import * as o from '../output/output_ast'; import {ViewType} from '../private_import_core'; -import {createDiTokenExpression} from '../util'; import {CompileBinding} from './compile_binding'; import {CompileElement, CompileNode} from './compile_element'; @@ -23,7 +22,7 @@ import {CompilePipe} from './compile_pipe'; import {CompileQuery, addQueryToTokenMap, createQueryList} from './compile_query'; import {EventHandlerVars} from './constants'; import {NameResolver} from './expression_converter'; -import {createPureProxy, getPropertyInView, getViewFactoryName, injectFromViewParentInjector} from './util'; +import {createPureProxy, getPropertyInView, getViewFactoryName} from './util'; export class CompileView implements NameResolver { public viewType: ViewType; diff --git a/modules/@angular/compiler/src/view_compiler/constants.ts b/modules/@angular/compiler/src/view_compiler/constants.ts index b6dc075f14..f97a4ff565 100644 --- a/modules/@angular/compiler/src/view_compiler/constants.ts +++ b/modules/@angular/compiler/src/view_compiler/constants.ts @@ -9,7 +9,6 @@ import {ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core'; import {CompileIdentifierMetadata} from '../compile_metadata'; -import {isBlank} from '../facade/lang'; import {Identifiers, resolveEnumIdentifier, resolveIdentifier} from '../identifiers'; import * as o from '../output/output_ast'; diff --git a/modules/@angular/compiler/src/view_compiler/event_binder.ts b/modules/@angular/compiler/src/view_compiler/event_binder.ts index 72a8a3de2b..b491c4daa8 100644 --- a/modules/@angular/compiler/src/view_compiler/event_binder.ts +++ b/modules/@angular/compiler/src/view_compiler/event_binder.ts @@ -7,9 +7,9 @@ */ import {CompileDirectiveMetadata} from '../compile_metadata'; -import {ListWrapper, StringMapWrapper} from '../facade/collection'; +import {StringMapWrapper} from '../facade/collection'; import {StringWrapper, isBlank, isPresent} from '../facade/lang'; -import {Identifiers, identifierToken, resolveIdentifier} from '../identifiers'; +import {identifierToken} from '../identifiers'; import * as o from '../output/output_ast'; import {BoundEventAst, DirectiveAst} from '../template_parser/template_ast'; diff --git a/modules/@angular/compiler/src/view_compiler/view_binder.ts b/modules/@angular/compiler/src/view_compiler/view_binder.ts index 2f98f0f151..5c81bbef54 100644 --- a/modules/@angular/compiler/src/view_compiler/view_binder.ts +++ b/modules/@angular/compiler/src/view_compiler/view_binder.ts @@ -5,11 +5,10 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -import {ListWrapper} from '../facade/collection'; -import {identifierToken} from '../identifiers'; + import {AttrAst, BoundDirectivePropertyAst, BoundElementPropertyAst, BoundEventAst, BoundTextAst, DirectiveAst, ElementAst, EmbeddedTemplateAst, NgContentAst, ReferenceAst, TemplateAst, TemplateAstVisitor, TextAst, VariableAst, templateVisitAll} from '../template_parser/template_ast'; -import {CompileElement, CompileNode} from './compile_element'; +import {CompileElement} from './compile_element'; import {CompileView} from './compile_view'; import {CompileEventListener, bindDirectiveOutputs, bindRenderOutputs, collectEventListeners} from './event_binder'; import {bindDirectiveAfterContentLifecycleCallbacks, bindDirectiveAfterViewLifecycleCallbacks, bindDirectiveDetectChangesLifecycleCallbacks, bindInjectableDestroyLifecycleCallbacks, bindPipeDestroyLifecycleCallbacks} from './lifecycle_binder'; diff --git a/modules/@angular/compiler/test/animation/animation_compiler_spec.ts b/modules/@angular/compiler/test/animation/animation_compiler_spec.ts index bdb6b4f221..ca758524fb 100644 --- a/modules/@angular/compiler/test/animation/animation_compiler_spec.ts +++ b/modules/@angular/compiler/test/animation/animation_compiler_spec.ts @@ -6,10 +6,8 @@ * found in the LICENSE file at https://angular.io/license */ -import {AnimationMetadata, animate, group, sequence, style, transition, trigger} from '@angular/core'; -import {AsyncTestCompleter, beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; - -import {StringMapWrapper} from '../../../platform-browser-dynamic/src/facade/collection'; +import {AnimationMetadata, animate, sequence, style, transition, trigger} from '@angular/core'; +import {beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {AnimationCompiler, AnimationEntryCompileResult} from '../../src/animation/animation_compiler'; import {AnimationParser} from '../../src/animation/animation_parser'; import {CompileAnimationEntryMetadata, CompileDirectiveMetadata, CompileTemplateMetadata, CompileTypeMetadata} from '../../src/compile_metadata'; diff --git a/modules/@angular/compiler/test/animation/animation_parser_spec.ts b/modules/@angular/compiler/test/animation/animation_parser_spec.ts index 1e0fd72455..9958eaa010 100644 --- a/modules/@angular/compiler/test/animation/animation_parser_spec.ts +++ b/modules/@angular/compiler/test/animation/animation_parser_spec.ts @@ -6,13 +6,12 @@ * found in the LICENSE file at https://angular.io/license */ -import {AnimationAnimateMetadata, AnimationGroupMetadata, AnimationMetadata, AnimationSequenceMetadata, AnimationStyleMetadata, AnimationWithStepsMetadata, animate, group, keyframes, sequence, state, style, transition, trigger} from '@angular/core'; -import {AsyncTestCompleter, beforeEach, beforeEachProviders, ddescribe, describe, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {AnimationMetadata, animate, group, keyframes, sequence, style, transition, trigger} from '@angular/core'; +import {beforeEach, describe, inject, it} from '@angular/core/testing/testing_internal'; import {expect} from '@angular/platform-browser/testing/matchers'; -import {AnimationAst, AnimationEntryAst, AnimationGroupAst, AnimationKeyframeAst, AnimationSequenceAst, AnimationStateTransitionAst, AnimationStepAst, AnimationStylesAst} from '../../src/animation/animation_ast'; +import {AnimationEntryAst, AnimationGroupAst, AnimationKeyframeAst, AnimationSequenceAst, AnimationStepAst, AnimationStylesAst} from '../../src/animation/animation_ast'; import {AnimationParser} from '../../src/animation/animation_parser'; -import {CompileDirectiveMetadata, CompileTemplateMetadata, CompileTypeMetadata} from '../../src/compile_metadata'; import {StringMapWrapper} from '../../src/facade/collection'; import {CompileMetadataResolver} from '../../src/metadata_resolver'; import {FILL_STYLE_FLAG, flattenStyles} from '../private_import_core'; diff --git a/modules/@angular/compiler/test/css_parser/css_lexer_spec.ts b/modules/@angular/compiler/test/css_parser/css_lexer_spec.ts index 04539fbdde..781a44a2d6 100644 --- a/modules/@angular/compiler/test/css_parser/css_lexer_spec.ts +++ b/modules/@angular/compiler/test/css_parser/css_lexer_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '../../../core/testing/testing_internal'; +import {describe, expect, it} from '../../../core/testing/testing_internal'; import {CssLexer, CssLexerMode, CssScannerError, CssToken, CssTokenType} from '../../src/css_parser/css_lexer'; import {isPresent} from '../../src/facade/lang'; diff --git a/modules/@angular/compiler/test/css_parser/css_parser_spec.ts b/modules/@angular/compiler/test/css_parser/css_parser_spec.ts index 86710adfb9..024f59f03a 100644 --- a/modules/@angular/compiler/test/css_parser/css_parser_spec.ts +++ b/modules/@angular/compiler/test/css_parser/css_parser_spec.ts @@ -7,7 +7,7 @@ */ -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '../../../core/testing/testing_internal'; +import {describe, expect, it} from '../../../core/testing/testing_internal'; import {CssBlockAst, CssBlockDefinitionRuleAst, CssBlockRuleAst, CssDefinitionAst, CssInlineRuleAst, CssKeyframeDefinitionAst, CssKeyframeRuleAst, CssMediaQueryRuleAst, CssSelectorRuleAst, CssStyleSheetAst, CssStyleValueAst} from '../../src/css_parser/css_ast'; import {BlockType, CssParseError, CssParser, CssToken, ParsedCssResult} from '../../src/css_parser/css_parser'; import {ParseLocation} from '../../src/parse_util'; diff --git a/modules/@angular/compiler/test/css_parser/css_visitor_spec.ts b/modules/@angular/compiler/test/css_parser/css_visitor_spec.ts index e59014822e..19d2a63bf3 100644 --- a/modules/@angular/compiler/test/css_parser/css_visitor_spec.ts +++ b/modules/@angular/compiler/test/css_parser/css_visitor_spec.ts @@ -7,8 +7,8 @@ */ -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '../../../core/testing/testing_internal'; -import {CssAst, CssAstVisitor, CssAtRulePredicateAst, CssBlockAst, CssBlockDefinitionRuleAst, CssBlockRuleAst, CssDefinitionAst, CssInlineRuleAst, CssKeyframeDefinitionAst, CssKeyframeRuleAst, CssMediaQueryRuleAst, CssPseudoSelectorAst, CssRuleAst, CssSelectorAst, CssSelectorRuleAst, CssSimpleSelectorAst, CssStyleSheetAst, CssStyleValueAst, CssStylesBlockAst, CssUnknownRuleAst, CssUnknownTokenListAst} from '../../src/css_parser/css_ast'; +import {beforeEach, describe, expect, it} from '../../../core/testing/testing_internal'; +import {CssAst, CssAstVisitor, CssAtRulePredicateAst, CssBlockAst, CssDefinitionAst, CssInlineRuleAst, CssKeyframeDefinitionAst, CssKeyframeRuleAst, CssMediaQueryRuleAst, CssPseudoSelectorAst, CssRuleAst, CssSelectorAst, CssSelectorRuleAst, CssSimpleSelectorAst, CssStyleSheetAst, CssStyleValueAst, CssStylesBlockAst, CssUnknownRuleAst, CssUnknownTokenListAst} from '../../src/css_parser/css_ast'; import {BlockType, CssParseError, CssParser, CssToken} from '../../src/css_parser/css_parser'; import {isPresent} from '../../src/facade/lang'; diff --git a/modules/@angular/compiler/test/directive_lifecycle_spec.ts b/modules/@angular/compiler/test/directive_lifecycle_spec.ts index d4b62ba40b..aaee9d17ed 100644 --- a/modules/@angular/compiler/test/directive_lifecycle_spec.ts +++ b/modules/@angular/compiler/test/directive_lifecycle_spec.ts @@ -8,7 +8,7 @@ import {hasLifecycleHook} from '@angular/compiler/src/lifecycle_reflector'; import {LifecycleHooks} from '@angular/core/src/metadata/lifecycle_hooks'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; export function main() { describe('Create Directive', () => { diff --git a/modules/@angular/compiler/test/directive_normalizer_spec.ts b/modules/@angular/compiler/test/directive_normalizer_spec.ts index 839b0be862..6e5ca95474 100644 --- a/modules/@angular/compiler/test/directive_normalizer_spec.ts +++ b/modules/@angular/compiler/test/directive_normalizer_spec.ts @@ -14,7 +14,7 @@ import {MockResourceLoader} from '@angular/compiler/testing/resource_loader_mock import {TEST_COMPILER_PROVIDERS} from '@angular/compiler/testing/test_bindings'; import {ViewEncapsulation} from '@angular/core/src/metadata/view'; import {TestBed} from '@angular/core/testing'; -import {AsyncTestCompleter, beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {SpyResourceLoader} from './spies'; diff --git a/modules/@angular/compiler/test/expression_parser/unparser.ts b/modules/@angular/compiler/test/expression_parser/unparser.ts index 6d1c835d9c..54ddf0790c 100644 --- a/modules/@angular/compiler/test/expression_parser/unparser.ts +++ b/modules/@angular/compiler/test/expression_parser/unparser.ts @@ -6,8 +6,8 @@ * found in the LICENSE file at https://angular.io/license */ -import {AST, AstVisitor, Binary, BindingPipe, Chain, Conditional, EmptyExpr, FunctionCall, ImplicitReceiver, Interpolation, KeyedRead, KeyedWrite, LiteralArray, LiteralMap, LiteralPrimitive, MethodCall, PrefixNot, PropertyRead, PropertyWrite, Quote, SafeMethodCall, SafePropertyRead} from '../../src/expression_parser/ast'; -import {StringWrapper, isPresent, isString} from '../../src/facade/lang'; +import {AST, AstVisitor, Binary, BindingPipe, Chain, Conditional, FunctionCall, ImplicitReceiver, Interpolation, KeyedRead, KeyedWrite, LiteralArray, LiteralMap, LiteralPrimitive, MethodCall, PrefixNot, PropertyRead, PropertyWrite, Quote, SafeMethodCall, SafePropertyRead} from '../../src/expression_parser/ast'; +import {StringWrapper, isString} from '../../src/facade/lang'; import {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from '../../src/ml_parser/interpolation_config'; class Unparser implements AstVisitor { diff --git a/modules/@angular/compiler/test/expression_parser/validator.ts b/modules/@angular/compiler/test/expression_parser/validator.ts index f386352bf5..5b176976b3 100644 --- a/modules/@angular/compiler/test/expression_parser/validator.ts +++ b/modules/@angular/compiler/test/expression_parser/validator.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AST, Binary, BindingPipe, Chain, Conditional, EmptyExpr, FunctionCall, ImplicitReceiver, Interpolation, KeyedRead, KeyedWrite, LiteralArray, LiteralMap, LiteralPrimitive, MethodCall, ParseSpan, PrefixNot, PropertyRead, PropertyWrite, Quote, RecursiveAstVisitor, SafeMethodCall, SafePropertyRead} from '../../src/expression_parser/ast'; +import {AST, Binary, BindingPipe, Chain, Conditional, FunctionCall, ImplicitReceiver, Interpolation, KeyedRead, KeyedWrite, LiteralArray, LiteralMap, LiteralPrimitive, MethodCall, ParseSpan, PrefixNot, PropertyRead, PropertyWrite, Quote, RecursiveAstVisitor, SafeMethodCall, SafePropertyRead} from '../../src/expression_parser/ast'; import {unparse} from './unparser'; diff --git a/modules/@angular/compiler/test/i18n/digest_spec.ts b/modules/@angular/compiler/test/i18n/digest_spec.ts index 08e45480a6..b6c7c80551 100644 --- a/modules/@angular/compiler/test/i18n/digest_spec.ts +++ b/modules/@angular/compiler/test/i18n/digest_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {sha1} from '../../src/i18n/digest'; diff --git a/modules/@angular/compiler/test/i18n/extractor_merger_spec.ts b/modules/@angular/compiler/test/i18n/extractor_merger_spec.ts index fc51c963a2..dcb36154c7 100644 --- a/modules/@angular/compiler/test/i18n/extractor_merger_spec.ts +++ b/modules/@angular/compiler/test/i18n/extractor_merger_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {digestMessage, serializeNodes as serializeI18nNodes} from '../../src/i18n/digest'; import {extractMessages, mergeTranslations} from '../../src/i18n/extractor_merger'; diff --git a/modules/@angular/compiler/test/i18n/i18n_parser_spec.ts b/modules/@angular/compiler/test/i18n/i18n_parser_spec.ts index 7a0063ed35..1c6ae89403 100644 --- a/modules/@angular/compiler/test/i18n/i18n_parser_spec.ts +++ b/modules/@angular/compiler/test/i18n/i18n_parser_spec.ts @@ -8,7 +8,7 @@ import {extractMessages} from '@angular/compiler/src/i18n/extractor_merger'; import {Message} from '@angular/compiler/src/i18n/i18n_ast'; -import {ddescribe, describe, expect, iit, it} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {serializeNodes} from '../../src/i18n/digest'; import {HtmlParser} from '../../src/ml_parser/html_parser'; diff --git a/modules/@angular/compiler/test/i18n/message_bundle_spec.ts b/modules/@angular/compiler/test/i18n/message_bundle_spec.ts index 2848bda17c..c47c4e0bc4 100644 --- a/modules/@angular/compiler/test/i18n/message_bundle_spec.ts +++ b/modules/@angular/compiler/test/i18n/message_bundle_spec.ts @@ -8,7 +8,7 @@ import * as i18n from '@angular/compiler/src/i18n/i18n_ast'; import {Serializer} from '@angular/compiler/src/i18n/serializers/serializer'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {serializeNodes} from '../../src/i18n/digest'; import {MessageBundle} from '../../src/i18n/message_bundle'; diff --git a/modules/@angular/compiler/test/i18n/serializers/placeholder_spec.ts b/modules/@angular/compiler/test/i18n/serializers/placeholder_spec.ts index 3d24f7a3d7..ce6e3b1811 100644 --- a/modules/@angular/compiler/test/i18n/serializers/placeholder_spec.ts +++ b/modules/@angular/compiler/test/i18n/serializers/placeholder_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {PlaceholderRegistry} from '../../../src/i18n/serializers/placeholder'; diff --git a/modules/@angular/compiler/test/i18n/serializers/xliff_spec.ts b/modules/@angular/compiler/test/i18n/serializers/xliff_spec.ts index 93457db3f0..48f376b23b 100644 --- a/modules/@angular/compiler/test/i18n/serializers/xliff_spec.ts +++ b/modules/@angular/compiler/test/i18n/serializers/xliff_spec.ts @@ -7,7 +7,7 @@ */ import {Xliff} from '@angular/compiler/src/i18n/serializers/xliff'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {MessageBundle} from '../../../src/i18n/message_bundle'; import {HtmlParser} from '../../../src/ml_parser/html_parser'; import {DEFAULT_INTERPOLATION_CONFIG} from '../../../src/ml_parser/interpolation_config'; diff --git a/modules/@angular/compiler/test/i18n/serializers/xmb_spec.ts b/modules/@angular/compiler/test/i18n/serializers/xmb_spec.ts index 817351737c..9243474d4c 100644 --- a/modules/@angular/compiler/test/i18n/serializers/xmb_spec.ts +++ b/modules/@angular/compiler/test/i18n/serializers/xmb_spec.ts @@ -7,7 +7,7 @@ */ import {Xmb} from '@angular/compiler/src/i18n/serializers/xmb'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {MessageBundle} from '../../../src/i18n/message_bundle'; import {HtmlParser} from '../../../src/ml_parser/html_parser'; diff --git a/modules/@angular/compiler/test/i18n/serializers/xml_helper_spec.ts b/modules/@angular/compiler/test/i18n/serializers/xml_helper_spec.ts index 98972f05cf..8bcd7e3d30 100644 --- a/modules/@angular/compiler/test/i18n/serializers/xml_helper_spec.ts +++ b/modules/@angular/compiler/test/i18n/serializers/xml_helper_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import * as xml from '../../../src/i18n/serializers/xml_helper'; diff --git a/modules/@angular/compiler/test/i18n/serializers/xtb_spec.ts b/modules/@angular/compiler/test/i18n/serializers/xtb_spec.ts index 6511a3c2b3..f096b0863d 100644 --- a/modules/@angular/compiler/test/i18n/serializers/xtb_spec.ts +++ b/modules/@angular/compiler/test/i18n/serializers/xtb_spec.ts @@ -7,7 +7,7 @@ */ import {escapeRegExp} from '@angular/core/src/facade/lang'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {MessageBundle} from '../../../src/i18n/message_bundle'; import {Xtb} from '../../../src/i18n/serializers/xtb'; diff --git a/modules/@angular/compiler/test/ml_parser/ast_serializer_spec.ts b/modules/@angular/compiler/test/ml_parser/ast_serializer_spec.ts index 4e5536f1da..15f181c3c7 100644 --- a/modules/@angular/compiler/test/ml_parser/ast_serializer_spec.ts +++ b/modules/@angular/compiler/test/ml_parser/ast_serializer_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, ddescribe, describe, expect, it} from '../../../core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '../../../core/testing/testing_internal'; import * as html from '../../src/ml_parser/ast'; import {HtmlParser} from '../../src/ml_parser/html_parser'; diff --git a/modules/@angular/compiler/test/ml_parser/html_parser_spec.ts b/modules/@angular/compiler/test/ml_parser/html_parser_spec.ts index 49bb0e2ce9..f185c179df 100644 --- a/modules/@angular/compiler/test/ml_parser/html_parser_spec.ts +++ b/modules/@angular/compiler/test/ml_parser/html_parser_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '../../../core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '../../../core/testing/testing_internal'; import * as html from '../../src/ml_parser/ast'; import {HtmlParser, ParseTreeResult, TreeError} from '../../src/ml_parser/html_parser'; import {TokenType} from '../../src/ml_parser/lexer'; diff --git a/modules/@angular/compiler/test/ml_parser/icu_ast_expander_spec.ts b/modules/@angular/compiler/test/ml_parser/icu_ast_expander_spec.ts index ee1126ccba..e216462e32 100644 --- a/modules/@angular/compiler/test/ml_parser/icu_ast_expander_spec.ts +++ b/modules/@angular/compiler/test/ml_parser/icu_ast_expander_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {ddescribe, describe, expect, iit, it} from '../../../core/testing/testing_internal'; +import {describe, expect, it} from '../../../core/testing/testing_internal'; import * as html from '../../src/ml_parser/ast'; import {HtmlParser} from '../../src/ml_parser/html_parser'; import {ExpansionResult, expandNodes} from '../../src/ml_parser/icu_ast_expander'; diff --git a/modules/@angular/compiler/test/ml_parser/lexer_spec.ts b/modules/@angular/compiler/test/ml_parser/lexer_spec.ts index c0910886bd..3ca4ced013 100644 --- a/modules/@angular/compiler/test/ml_parser/lexer_spec.ts +++ b/modules/@angular/compiler/test/ml_parser/lexer_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '../../../core/testing/testing_internal'; +import {describe, expect, it} from '../../../core/testing/testing_internal'; import {getHtmlTagDefinition} from '../../src/ml_parser/html_tags'; import {InterpolationConfig} from '../../src/ml_parser/interpolation_config'; import * as lex from '../../src/ml_parser/lexer'; diff --git a/modules/@angular/compiler/test/ng_module_resolver_mock_spec.ts b/modules/@angular/compiler/test/ng_module_resolver_mock_spec.ts index eb409c350a..6ad7df44d9 100644 --- a/modules/@angular/compiler/test/ng_module_resolver_mock_spec.ts +++ b/modules/@angular/compiler/test/ng_module_resolver_mock_spec.ts @@ -7,9 +7,7 @@ */ import {Injector, NgModule} from '@angular/core'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it} from '@angular/core/testing/testing_internal'; - -import {isBlank, stringify} from '../src/facade/lang'; +import {beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {MockNgModuleResolver} from '../testing/index'; export function main() { diff --git a/modules/@angular/compiler/test/output/abstract_emitter_spec.ts b/modules/@angular/compiler/test/output/abstract_emitter_spec.ts index d5b885e4b1..008c26a5f0 100644 --- a/modules/@angular/compiler/test/output/abstract_emitter_spec.ts +++ b/modules/@angular/compiler/test/output/abstract_emitter_spec.ts @@ -7,7 +7,7 @@ */ import {escapeIdentifier} from '@angular/compiler/src/output/abstract_emitter'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; export function main() { describe('AbstractEmitter', () => { diff --git a/modules/@angular/compiler/test/output/js_emitter_spec.ts b/modules/@angular/compiler/test/output/js_emitter_spec.ts index 77f0a28b70..f293320358 100644 --- a/modules/@angular/compiler/test/output/js_emitter_spec.ts +++ b/modules/@angular/compiler/test/output/js_emitter_spec.ts @@ -9,7 +9,7 @@ import {CompileIdentifierMetadata} from '@angular/compiler/src/compile_metadata'; import {JavaScriptEmitter} from '@angular/compiler/src/output/js_emitter'; import * as o from '@angular/compiler/src/output/output_ast'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {isBlank} from '../../src/facade/lang'; diff --git a/modules/@angular/compiler/test/output/output_emitter_codegen_typed.ts b/modules/@angular/compiler/test/output/output_emitter_codegen_typed.ts index 40512a0772..d614cc5160 100644 --- a/modules/@angular/compiler/test/output/output_emitter_codegen_typed.ts +++ b/modules/@angular/compiler/test/output/output_emitter_codegen_typed.ts @@ -7,7 +7,7 @@ */ // ATTENTION: This file will be overwritten with generated code by main() -import * as o from '@angular/compiler/src/output/output_ast'; + import {TypeScriptEmitter} from '@angular/compiler/src/output/ts_emitter'; import {print} from '../../src/facade/lang'; diff --git a/modules/@angular/compiler/test/output/output_emitter_spec.ts b/modules/@angular/compiler/test/output/output_emitter_spec.ts index 186f1dc32f..72ce118eba 100644 --- a/modules/@angular/compiler/test/output/output_emitter_spec.ts +++ b/modules/@angular/compiler/test/output/output_emitter_spec.ts @@ -10,7 +10,7 @@ import {interpretStatements} from '@angular/compiler/src/output/output_interpret import {jitStatements} from '@angular/compiler/src/output/output_jit'; import {EventEmitter} from '@angular/core'; import {ViewType} from '@angular/core/src/linker/view_type'; -import {beforeEach, ddescribe, describe, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, it} from '@angular/core/testing/testing_internal'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {browserDetection} from '@angular/platform-browser/testing/browser_util'; import {expect} from '@angular/platform-browser/testing/matchers'; diff --git a/modules/@angular/compiler/test/output/ts_emitter_spec.ts b/modules/@angular/compiler/test/output/ts_emitter_spec.ts index 562c8dd107..ff3d782af8 100644 --- a/modules/@angular/compiler/test/output/ts_emitter_spec.ts +++ b/modules/@angular/compiler/test/output/ts_emitter_spec.ts @@ -9,7 +9,7 @@ import {CompileIdentifierMetadata} from '@angular/compiler/src/compile_metadata'; import * as o from '@angular/compiler/src/output/output_ast'; import {TypeScriptEmitter} from '@angular/compiler/src/output/ts_emitter'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {isBlank} from '../../src/facade/lang'; diff --git a/modules/@angular/compiler/test/pipe_resolver_mock_spec.ts b/modules/@angular/compiler/test/pipe_resolver_mock_spec.ts index 272767d98c..4c5b51d77c 100644 --- a/modules/@angular/compiler/test/pipe_resolver_mock_spec.ts +++ b/modules/@angular/compiler/test/pipe_resolver_mock_spec.ts @@ -7,9 +7,7 @@ */ import {Injector, Pipe} from '@angular/core'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it} from '@angular/core/testing/testing_internal'; - -import {isBlank, stringify} from '../src/facade/lang'; +import {beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {MockPipeResolver} from '../testing/index'; export function main() { diff --git a/modules/@angular/compiler/test/resource_loader_mock_spec.ts b/modules/@angular/compiler/test/resource_loader_mock_spec.ts index 9c22276e07..cda7fde654 100644 --- a/modules/@angular/compiler/test/resource_loader_mock_spec.ts +++ b/modules/@angular/compiler/test/resource_loader_mock_spec.ts @@ -7,7 +7,7 @@ */ import {MockResourceLoader} from '@angular/compiler/testing/resource_loader_mock'; -import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {isPresent} from '../src/facade/lang'; export function main() { diff --git a/modules/@angular/compiler/test/runtime_compiler_spec.ts b/modules/@angular/compiler/test/runtime_compiler_spec.ts index fc6bfe60e2..ca161ee928 100644 --- a/modules/@angular/compiler/test/runtime_compiler_spec.ts +++ b/modules/@angular/compiler/test/runtime_compiler_spec.ts @@ -7,9 +7,9 @@ */ import {DirectiveResolver, ResourceLoader} from '@angular/compiler'; -import {Compiler, Component, ComponentFactory, Injectable, Injector, Input, NgModule, NgModuleFactory, Type} from '@angular/core'; -import {ComponentFixture, TestBed, async, fakeAsync, getTestBed, tick} from '@angular/core/testing'; -import {beforeEach, beforeEachProviders, ddescribe, describe, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {Compiler, Component, Injector, NgModule, NgModuleFactory} from '@angular/core'; +import {TestBed, async, fakeAsync, tick} from '@angular/core/testing'; +import {beforeEach, describe, inject, it} from '@angular/core/testing/testing_internal'; import {expect} from '@angular/platform-browser/testing/matchers'; import {stringify} from '../src/facade/lang'; diff --git a/modules/@angular/compiler/test/schema/dom_element_schema_registry_spec.ts b/modules/@angular/compiler/test/schema/dom_element_schema_registry_spec.ts index 6ac675beb1..dee9bd9b40 100644 --- a/modules/@angular/compiler/test/schema/dom_element_schema_registry_spec.ts +++ b/modules/@angular/compiler/test/schema/dom_element_schema_registry_spec.ts @@ -8,7 +8,7 @@ import {DomElementSchemaRegistry} from '@angular/compiler/src/schema/dom_element_schema_registry'; import {CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, SecurityContext} from '@angular/core'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {browserDetection} from '@angular/platform-browser/testing/browser_util'; import {Element} from '../../src/ml_parser/ast'; diff --git a/modules/@angular/compiler/test/shadow_css_spec.ts b/modules/@angular/compiler/test/shadow_css_spec.ts index 4298e7a18b..7a50429f5f 100644 --- a/modules/@angular/compiler/test/shadow_css_spec.ts +++ b/modules/@angular/compiler/test/shadow_css_spec.ts @@ -7,7 +7,7 @@ */ import {CssRule, ShadowCss, processRules} from '@angular/compiler/src/shadow_css'; -import {beforeEach, ddescribe, describe, expect, iit, it} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {normalizeCSS} from '@angular/platform-browser/testing/browser_util'; export function main() { diff --git a/modules/@angular/compiler/test/spies.ts b/modules/@angular/compiler/test/spies.ts index 88d92fb263..118808a2c9 100644 --- a/modules/@angular/compiler/test/spies.ts +++ b/modules/@angular/compiler/test/spies.ts @@ -8,7 +8,7 @@ import {ResourceLoader} from '@angular/compiler/src/resource_loader'; -import {SpyObject, proxy} from '@angular/core/testing/testing_internal'; +import {SpyObject} from '@angular/core/testing/testing_internal'; export class SpyResourceLoader extends SpyObject { constructor() { super(ResourceLoader); } diff --git a/modules/@angular/compiler/test/template_parser/template_parser_spec.ts b/modules/@angular/compiler/test/template_parser/template_parser_spec.ts index c477a4f542..f378692788 100644 --- a/modules/@angular/compiler/test/template_parser/template_parser_spec.ts +++ b/modules/@angular/compiler/test/template_parser/template_parser_spec.ts @@ -15,7 +15,7 @@ import {TEST_COMPILER_PROVIDERS} from '@angular/compiler/testing/test_bindings'; import {SchemaMetadata, SecurityContext, Type} from '@angular/core'; import {Console} from '@angular/core/src/console'; import {TestBed} from '@angular/core/testing'; -import {afterEach, beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {Identifiers, identifierToken, resolveIdentifierToken} from '../../src/identifiers'; import {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from '../../src/ml_parser/interpolation_config'; import {MockSchemaRegistry} from '../../testing/index'; diff --git a/modules/@angular/compiler/test/template_parser/template_preparser_spec.ts b/modules/@angular/compiler/test/template_parser/template_preparser_spec.ts index f2abcb7134..e33c9796f2 100644 --- a/modules/@angular/compiler/test/template_parser/template_preparser_spec.ts +++ b/modules/@angular/compiler/test/template_parser/template_preparser_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {afterEach, beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../../../core/testing/testing_internal'; +import {beforeEach, describe, expect, inject, it} from '../../../core/testing/testing_internal'; import {Element} from '../../src/ml_parser/ast'; import {HtmlParser} from '../../src/ml_parser/html_parser'; import {PreparsedElement, PreparsedElementType, preparseElement} from '../../src/template_parser/template_preparser'; diff --git a/modules/@angular/compiler/test/url_resolver_spec.ts b/modules/@angular/compiler/test/url_resolver_spec.ts index befe6ccb61..d8b5d4021c 100644 --- a/modules/@angular/compiler/test/url_resolver_spec.ts +++ b/modules/@angular/compiler/test/url_resolver_spec.ts @@ -7,7 +7,7 @@ */ import {UrlResolver, createOfflineCompileUrlResolver} from '@angular/compiler/src/url_resolver'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; export function main() { describe('UrlResolver', () => { diff --git a/modules/@angular/compiler/test/util_spec.ts b/modules/@angular/compiler/test/util_spec.ts index 9885b4a77e..6bae97cc26 100644 --- a/modules/@angular/compiler/test/util_spec.ts +++ b/modules/@angular/compiler/test/util_spec.ts @@ -7,7 +7,7 @@ */ import {fakeAsync} from '@angular/core/testing/fake_async'; -import {beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {SyncAsyncResult, splitAtColon} from '../src/util'; diff --git a/modules/@angular/core/src/animation/view_animation_map.ts b/modules/@angular/core/src/animation/view_animation_map.ts index 1f013bf567..ac20292f99 100644 --- a/modules/@angular/core/src/animation/view_animation_map.ts +++ b/modules/@angular/core/src/animation/view_animation_map.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {ListWrapper, StringMapWrapper} from '../facade/collection'; +import {StringMapWrapper} from '../facade/collection'; import {isPresent} from '../facade/lang'; import {AnimationPlayer} from './animation_player'; diff --git a/modules/@angular/core/src/linker/view.ts b/modules/@angular/core/src/linker/view.ts index 23cae11b16..b0e91bfe20 100644 --- a/modules/@angular/core/src/linker/view.ts +++ b/modules/@angular/core/src/linker/view.ts @@ -7,7 +7,7 @@ */ import {AnimationGroupPlayer} from '../animation/animation_group_player'; -import {AnimationPlayer, NoOpAnimationPlayer} from '../animation/animation_player'; +import {AnimationPlayer} from '../animation/animation_player'; import {queueAnimation} from '../animation/animation_queue'; import {AnimationTransitionEvent} from '../animation/animation_transition_event'; import {ViewAnimationMap} from '../animation/view_animation_map'; diff --git a/modules/@angular/core/src/metadata/directives.ts b/modules/@angular/core/src/metadata/directives.ts index 9fc49cf5eb..faacfb202f 100644 --- a/modules/@angular/core/src/metadata/directives.ts +++ b/modules/@angular/core/src/metadata/directives.ts @@ -8,8 +8,7 @@ import {AnimationEntryMetadata} from '../animation/metadata'; import {ChangeDetectionStrategy} from '../change_detection/constants'; -import {Injectable, Provider} from '../di'; -import {isPresent} from '../facade/lang'; +import {Provider} from '../di'; import {Type} from '../type'; import {TypeDecorator, makeDecorator, makePropDecorator} from '../util/decorators'; diff --git a/modules/@angular/core/test/animation/active_animations_players_map_spec.ts b/modules/@angular/core/test/animation/active_animations_players_map_spec.ts index 627953267f..c00b88911d 100644 --- a/modules/@angular/core/test/animation/active_animations_players_map_spec.ts +++ b/modules/@angular/core/test/animation/active_animations_players_map_spec.ts @@ -10,10 +10,8 @@ import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {el} from '@angular/platform-browser/testing/browser_util'; import {ViewAnimationMap} from '../../src/animation/view_animation_map'; -import {isPresent} from '../../src/facade/lang'; -import {fakeAsync, flushMicrotasks} from '../../testing'; import {MockAnimationPlayer} from '../../testing/mock_animation_player'; -import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../../testing/testing_internal'; +import {beforeEach, describe, expect, it} from '../../testing/testing_internal'; export function main() { describe('ActiveAnimationsPlayersMap', function() { diff --git a/modules/@angular/core/test/animation/animation_group_player_spec.ts b/modules/@angular/core/test/animation/animation_group_player_spec.ts index 8bc8ff8074..bb259cea59 100644 --- a/modules/@angular/core/test/animation/animation_group_player_spec.ts +++ b/modules/@angular/core/test/animation/animation_group_player_spec.ts @@ -9,7 +9,7 @@ import {AnimationGroupPlayer} from '../../src/animation/animation_group_player'; import {fakeAsync, flushMicrotasks} from '../../testing'; import {MockAnimationPlayer} from '../../testing/mock_animation_player'; -import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../../testing/testing_internal'; +import {beforeEach, describe, expect, it} from '../../testing/testing_internal'; export function main() { describe('AnimationGroupPlayer', function() { diff --git a/modules/@angular/core/test/animation/animation_player_spec.ts b/modules/@angular/core/test/animation/animation_player_spec.ts index 227ff6e7e2..92d748474c 100644 --- a/modules/@angular/core/test/animation/animation_player_spec.ts +++ b/modules/@angular/core/test/animation/animation_player_spec.ts @@ -6,9 +6,9 @@ * found in the LICENSE file at https://angular.io/license */ -import {AnimationPlayer, NoOpAnimationPlayer} from '../../src/animation/animation_player'; +import {NoOpAnimationPlayer} from '../../src/animation/animation_player'; import {fakeAsync, flushMicrotasks} from '../../testing'; -import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../../testing/testing_internal'; +import {describe, expect, it} from '../../testing/testing_internal'; export function main() { describe('NoOpAnimationPlayer', function() { diff --git a/modules/@angular/core/test/animation/animation_sequence_player_spec.ts b/modules/@angular/core/test/animation/animation_sequence_player_spec.ts index 841b61792f..5a90f991ed 100644 --- a/modules/@angular/core/test/animation/animation_sequence_player_spec.ts +++ b/modules/@angular/core/test/animation/animation_sequence_player_spec.ts @@ -7,10 +7,9 @@ */ import {AnimationSequencePlayer} from '../../src/animation/animation_sequence_player'; -import {isPresent} from '../../src/facade/lang'; import {fakeAsync, flushMicrotasks} from '../../testing'; import {MockAnimationPlayer} from '../../testing/mock_animation_player'; -import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../../testing/testing_internal'; +import {beforeEach, describe, expect, it} from '../../testing/testing_internal'; export function main() { describe('AnimationSequencePlayer', function() { diff --git a/modules/@angular/core/test/animation/animation_style_util_spec.ts b/modules/@angular/core/test/animation/animation_style_util_spec.ts index a6af0bd914..c0cab4cad0 100644 --- a/modules/@angular/core/test/animation/animation_style_util_spec.ts +++ b/modules/@angular/core/test/animation/animation_style_util_spec.ts @@ -11,7 +11,7 @@ import {AnimationKeyframe} from '../../src/animation/animation_keyframe'; import * as animationUtils from '../../src/animation/animation_style_util'; import {AnimationStyles} from '../../src/animation/animation_styles'; import {AUTO_STYLE} from '../../src/animation/metadata'; -import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../../testing/testing_internal'; +import {describe, expect, it} from '../../testing/testing_internal'; export function main() { describe('Animation Style Utils', function() { diff --git a/modules/@angular/core/test/application_init_spec.ts b/modules/@angular/core/test/application_init_spec.ts index baa7bb2fae..8875db65c8 100644 --- a/modules/@angular/core/test/application_init_spec.ts +++ b/modules/@angular/core/test/application_init_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ import {APP_INITIALIZER, ApplicationInitStatus} from '../src/application_init'; -import {TestBed, async, inject, withModule} from '../testing'; +import {TestBed, async, inject} from '../testing'; export function main() { describe('ApplicationInitStatus', () => { diff --git a/modules/@angular/core/test/application_module_spec.ts b/modules/@angular/core/test/application_module_spec.ts index 80f69a96e3..4c78ce8ce3 100644 --- a/modules/@angular/core/test/application_module_spec.ts +++ b/modules/@angular/core/test/application_module_spec.ts @@ -7,7 +7,7 @@ */ import {LOCALE_ID} from '@angular/core'; -import {beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../testing/testing_internal'; +import {describe, expect, inject, it} from '../testing/testing_internal'; export function main() { describe('Application module', () => { diff --git a/modules/@angular/core/test/application_ref_spec.ts b/modules/@angular/core/test/application_ref_spec.ts index 29253647a4..d81744e9b8 100644 --- a/modules/@angular/core/test/application_ref_spec.ts +++ b/modules/@angular/core/test/application_ref_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {APP_BOOTSTRAP_LISTENER, APP_INITIALIZER, ChangeDetectorRef, CompilerFactory, Component, Injector, NgModule, PlatformRef, Type} from '@angular/core'; +import {APP_BOOTSTRAP_LISTENER, APP_INITIALIZER, CompilerFactory, Component, NgModule, PlatformRef, Type} from '@angular/core'; import {ApplicationRef, ApplicationRef_} from '@angular/core/src/application_ref'; import {ErrorHandler} from '@angular/core/src/error_handler'; import {ComponentRef} from '@angular/core/src/linker/component_factory'; diff --git a/modules/@angular/core/test/change_detection/change_detector_util_spec.ts b/modules/@angular/core/test/change_detection/change_detector_util_spec.ts index 7d2f8f83ba..42387a69d8 100644 --- a/modules/@angular/core/test/change_detection/change_detector_util_spec.ts +++ b/modules/@angular/core/test/change_detection/change_detector_util_spec.ts @@ -7,7 +7,7 @@ */ import {devModeEqual} from '@angular/core/src/change_detection/change_detection_util'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; export function main() { describe('ChangeDetectionUtil', () => { diff --git a/modules/@angular/core/test/change_detection/differs/default_iterable_differ_spec.ts b/modules/@angular/core/test/change_detection/differs/default_iterable_differ_spec.ts index b34d7e4c73..9b2a878c0a 100644 --- a/modules/@angular/core/test/change_detection/differs/default_iterable_differ_spec.ts +++ b/modules/@angular/core/test/change_detection/differs/default_iterable_differ_spec.ts @@ -7,7 +7,7 @@ */ import {DefaultIterableDiffer, DefaultIterableDifferFactory} from '@angular/core/src/change_detection/differs/default_iterable_differ'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {ListWrapper} from '../../../src/facade/collection'; import {NumberWrapper} from '../../../src/facade/lang'; diff --git a/modules/@angular/core/test/change_detection/differs/default_keyvalue_differ_spec.ts b/modules/@angular/core/test/change_detection/differs/default_keyvalue_differ_spec.ts index 5054d107fb..82c1dd26b8 100644 --- a/modules/@angular/core/test/change_detection/differs/default_keyvalue_differ_spec.ts +++ b/modules/@angular/core/test/change_detection/differs/default_keyvalue_differ_spec.ts @@ -7,7 +7,7 @@ */ import {DefaultKeyValueDiffer, DefaultKeyValueDifferFactory} from '@angular/core/src/change_detection/differs/default_keyvalue_differ'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; +import {afterEach, beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {kvChangesAsString} from '../../change_detection/util'; // todo(vicb): Update the code & tests for object equality diff --git a/modules/@angular/core/test/change_detection/differs/iterable_differs_spec.ts b/modules/@angular/core/test/change_detection/differs/iterable_differs_spec.ts index d9c86f2192..3730397781 100644 --- a/modules/@angular/core/test/change_detection/differs/iterable_differs_spec.ts +++ b/modules/@angular/core/test/change_detection/differs/iterable_differs_spec.ts @@ -6,9 +6,9 @@ * found in the LICENSE file at https://angular.io/license */ -import {Injector, ReflectiveInjector} from '@angular/core'; +import {ReflectiveInjector} from '@angular/core'; import {IterableDiffers} from '@angular/core/src/change_detection/differs/iterable_differs'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {SpyIterableDifferFactory} from '../../spies'; diff --git a/modules/@angular/core/test/debug/debug_node_spec.ts b/modules/@angular/core/test/debug/debug_node_spec.ts index a4fed0f2be..f6e0850bac 100644 --- a/modules/@angular/core/test/debug/debug_node_spec.ts +++ b/modules/@angular/core/test/debug/debug_node_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {NgFor, NgIf} from '@angular/common'; + import {Injectable, NO_ERRORS_SCHEMA} from '@angular/core'; import {Component, Directive, Input} from '@angular/core/src/metadata'; import {ComponentFixture, TestBed, async} from '@angular/core/testing'; diff --git a/modules/@angular/core/test/di/forward_ref_spec.ts b/modules/@angular/core/test/di/forward_ref_spec.ts index e97be6bb39..22dfcb9759 100644 --- a/modules/@angular/core/test/di/forward_ref_spec.ts +++ b/modules/@angular/core/test/di/forward_ref_spec.ts @@ -8,7 +8,7 @@ import {Type} from '@angular/core'; import {forwardRef, resolveForwardRef} from '@angular/core/src/di'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; export function main() { describe('forwardRef', function() { diff --git a/modules/@angular/core/test/di/injector_spec.ts b/modules/@angular/core/test/di/injector_spec.ts index 7d6e7e955f..1f16e4cf62 100644 --- a/modules/@angular/core/test/di/injector_spec.ts +++ b/modules/@angular/core/test/di/injector_spec.ts @@ -8,7 +8,7 @@ import {Injector} from '@angular/core'; -import {beforeEach, ddescribe, describe, expect, iit, it} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; export function main() { describe('Injector.NULL', () => { diff --git a/modules/@angular/core/test/di/reflective_key_spec.ts b/modules/@angular/core/test/di/reflective_key_spec.ts index da3bcda5d5..fc1b9d887a 100644 --- a/modules/@angular/core/test/di/reflective_key_spec.ts +++ b/modules/@angular/core/test/di/reflective_key_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {KeyRegistry, ReflectiveKey} from '@angular/core/src/di/reflective_key'; +import {KeyRegistry} from '@angular/core/src/di/reflective_key'; export function main() { describe('key', function() { diff --git a/modules/@angular/core/test/dom/dom_adapter_spec.ts b/modules/@angular/core/test/dom/dom_adapter_spec.ts index 8e3390cd92..b265fb1d82 100644 --- a/modules/@angular/core/test/dom/dom_adapter_spec.ts +++ b/modules/@angular/core/test/dom/dom_adapter_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {el, stringifyElement} from '@angular/platform-browser/testing/browser_util'; diff --git a/modules/@angular/core/test/dom/shim_spec.ts b/modules/@angular/core/test/dom/shim_spec.ts index 552e4d12a3..85fb6b2ab4 100644 --- a/modules/@angular/core/test/dom/shim_spec.ts +++ b/modules/@angular/core/test/dom/shim_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; export function main() { describe('Shim', () => { diff --git a/modules/@angular/core/test/facade/observable_spec.ts b/modules/@angular/core/test/facade/observable_spec.ts index 122ce63a30..4950cf3cab 100644 --- a/modules/@angular/core/test/facade/observable_spec.ts +++ b/modules/@angular/core/test/facade/observable_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {Observable} from '../../src/facade/async'; diff --git a/modules/@angular/core/test/fake_async_spec.ts b/modules/@angular/core/test/fake_async_spec.ts index 1358247ad3..ec233ae7c7 100644 --- a/modules/@angular/core/test/fake_async_spec.ts +++ b/modules/@angular/core/test/fake_async_spec.ts @@ -7,7 +7,7 @@ */ import {discardPeriodicTasks, fakeAsync, flushMicrotasks, tick} from '@angular/core/testing'; -import {Log, beforeEach, ddescribe, describe, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {Log, beforeEach, describe, inject, it} from '@angular/core/testing/testing_internal'; import {expect} from '@angular/platform-browser/testing/matchers'; import {Parser} from '../../compiler/src/expression_parser/parser'; diff --git a/modules/@angular/core/test/linker/change_detection_integration_spec.ts b/modules/@angular/core/test/linker/change_detection_integration_spec.ts index 67d448419f..bac67a04ff 100644 --- a/modules/@angular/core/test/linker/change_detection_integration_spec.ts +++ b/modules/@angular/core/test/linker/change_detection_integration_spec.ts @@ -8,9 +8,9 @@ import {ElementSchemaRegistry} from '@angular/compiler/src/schema/element_schema_registry'; import {TEST_COMPILER_PROVIDERS} from '@angular/compiler/testing/test_bindings'; -import {AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, DebugElement, Directive, DoCheck, Injectable, Input, OnChanges, OnDestroy, OnInit, Output, Pipe, PipeTransform, RenderComponentType, Renderer, RootRenderer, SimpleChange, SimpleChanges, TemplateRef, Type, ViewContainerRef, WrappedValue, forwardRef} from '@angular/core'; +import {AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, DebugElement, Directive, DoCheck, Injectable, Input, OnChanges, OnDestroy, OnInit, Output, Pipe, PipeTransform, RenderComponentType, Renderer, RootRenderer, SimpleChange, SimpleChanges, TemplateRef, Type, ViewContainerRef, WrappedValue} from '@angular/core'; import {DebugDomRenderer} from '@angular/core/src/debug/debug_renderer'; -import {ComponentFixture, TestBed, fakeAsync, flushMicrotasks, tick} from '@angular/core/testing'; +import {ComponentFixture, TestBed, fakeAsync} from '@angular/core/testing'; import {By} from '@angular/platform-browser/src/dom/debug/by'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {DomRootRenderer} from '@angular/platform-browser/src/dom/dom_renderer'; @@ -18,7 +18,7 @@ import {DomRootRenderer} from '@angular/platform-browser/src/dom/dom_renderer'; import {MockSchemaRegistry} from '../../../compiler/testing/index'; import {EventEmitter} from '../../src/facade/async'; import {StringMapWrapper} from '../../src/facade/collection'; -import {NumberWrapper, isBlank} from '../../src/facade/lang'; +import {NumberWrapper} from '../../src/facade/lang'; export function main() { let elSchema: MockSchemaRegistry; diff --git a/modules/@angular/core/test/linker/entry_components_integration_spec.ts b/modules/@angular/core/test/linker/entry_components_integration_spec.ts index 9c7a9b76e1..5febaf1b85 100644 --- a/modules/@angular/core/test/linker/entry_components_integration_spec.ts +++ b/modules/@angular/core/test/linker/entry_components_integration_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {ANALYZE_FOR_ENTRY_COMPONENTS, Component, ComponentFactoryResolver, forwardRef} from '@angular/core'; +import {ANALYZE_FOR_ENTRY_COMPONENTS, Component, ComponentFactoryResolver} from '@angular/core'; import {NoComponentFactoryError} from '@angular/core/src/linker/component_factory_resolver'; import {TestBed} from '@angular/core/testing'; diff --git a/modules/@angular/core/test/linker/integration_spec.ts b/modules/@angular/core/test/linker/integration_spec.ts index b2da73a7e0..47be830973 100644 --- a/modules/@angular/core/test/linker/integration_spec.ts +++ b/modules/@angular/core/test/linker/integration_spec.ts @@ -17,7 +17,7 @@ import {ViewContainerRef} from '@angular/core/src/linker/view_container_ref'; import {EmbeddedViewRef} from '@angular/core/src/linker/view_ref'; import {Attribute, Component, ContentChildren, Directive, HostBinding, HostListener, Input, Output, Pipe} from '@angular/core/src/metadata'; import {Renderer} from '@angular/core/src/render'; -import {TestBed, async, fakeAsync, getTestBed, inject, tick} from '@angular/core/testing'; +import {TestBed, async, fakeAsync, getTestBed, tick} from '@angular/core/testing'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {dispatchEvent, el} from '@angular/platform-browser/testing/browser_util'; import {expect} from '@angular/platform-browser/testing/matchers'; diff --git a/modules/@angular/core/test/linker/ng_container_integration_spec.ts b/modules/@angular/core/test/linker/ng_container_integration_spec.ts index 1e4559cf83..5d8856ab3d 100644 --- a/modules/@angular/core/test/linker/ng_container_integration_spec.ts +++ b/modules/@angular/core/test/linker/ng_container_integration_spec.ts @@ -6,10 +6,10 @@ * found in the LICENSE file at https://angular.io/license */ -import {NgIf} from '@angular/common'; + import {AfterContentInit, AfterViewInit, Component, ContentChildren, Directive, Input, QueryList, ViewChildren} from '@angular/core'; -import {TestBed, async} from '@angular/core/testing'; -import {AsyncTestCompleter, beforeEach, beforeEachProviders, ddescribe, describe, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {TestBed} from '@angular/core/testing'; +import {beforeEach, describe, it} from '@angular/core/testing/testing_internal'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {expect} from '@angular/platform-browser/testing/matchers'; diff --git a/modules/@angular/core/test/linker/projection_integration_spec.ts b/modules/@angular/core/test/linker/projection_integration_spec.ts index c41694cfa1..206611fd2d 100644 --- a/modules/@angular/core/test/linker/projection_integration_spec.ts +++ b/modules/@angular/core/test/linker/projection_integration_spec.ts @@ -9,7 +9,7 @@ import {Component, Directive, ElementRef, TemplateRef, ViewContainerRef, ViewEncapsulation} from '@angular/core'; import {getAllDebugNodes} from '@angular/core/src/debug/debug_node'; import {TestBed} from '@angular/core/testing'; -import {beforeEach, beforeEachProviders, ddescribe, describe, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, it} from '@angular/core/testing/testing_internal'; import {By} from '@angular/platform-browser/src/dom/debug/by'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {expect} from '@angular/platform-browser/testing/matchers'; diff --git a/modules/@angular/core/test/linker/query_list_spec.ts b/modules/@angular/core/test/linker/query_list_spec.ts index 667a5d2cce..6832fa7eb5 100644 --- a/modules/@angular/core/test/linker/query_list_spec.ts +++ b/modules/@angular/core/test/linker/query_list_spec.ts @@ -8,7 +8,7 @@ import {QueryList} from '@angular/core/src/linker/query_list'; import {fakeAsync, tick} from '@angular/core/testing'; -import {beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {iterateListLike} from '../../src/facade/collection'; diff --git a/modules/@angular/core/test/linker/regression_integration_spec.ts b/modules/@angular/core/test/linker/regression_integration_spec.ts index 838e0bfc98..656806b2b8 100644 --- a/modules/@angular/core/test/linker/regression_integration_spec.ts +++ b/modules/@angular/core/test/linker/regression_integration_spec.ts @@ -8,7 +8,7 @@ import {Component, Injector, OpaqueToken, Pipe, PipeTransform, Provider} from '@angular/core'; import {TestBed} from '@angular/core/testing'; -import {beforeEach, beforeEachProviders, ddescribe, describe, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, it} from '@angular/core/testing/testing_internal'; import {expect} from '@angular/platform-browser/testing/matchers'; export function main() { diff --git a/modules/@angular/core/test/linker/security_integration_spec.ts b/modules/@angular/core/test/linker/security_integration_spec.ts index 625d50edd0..46670b3d7a 100644 --- a/modules/@angular/core/test/linker/security_integration_spec.ts +++ b/modules/@angular/core/test/linker/security_integration_spec.ts @@ -8,7 +8,7 @@ import {Component, Directive, Input, NO_ERRORS_SCHEMA} from '@angular/core'; import {ComponentFixture, TestBed, getTestBed} from '@angular/core/testing'; -import {afterEach, beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it} from '@angular/core/testing/testing_internal'; +import {afterEach, beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {DomSanitizer} from '@angular/platform-browser/src/security/dom_sanitization_service'; diff --git a/modules/@angular/core/test/linker/system_ng_module_factory_loader_spec.ts b/modules/@angular/core/test/linker/system_ng_module_factory_loader_spec.ts index f5cf5e3f10..9f5c8a33a0 100644 --- a/modules/@angular/core/test/linker/system_ng_module_factory_loader_spec.ts +++ b/modules/@angular/core/test/linker/system_ng_module_factory_loader_spec.ts @@ -8,7 +8,7 @@ import {global} from '@angular/common/src/facade/lang'; import {Compiler, SystemJsNgModuleLoader} from '@angular/core'; -import {async, tick} from '@angular/core/testing'; +import {async} from '@angular/core/testing'; import {afterEach, beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; function mockSystem(modules: {[module: string]: any}) { diff --git a/modules/@angular/core/test/linker/view_injector_integration_spec.ts b/modules/@angular/core/test/linker/view_injector_integration_spec.ts index 9e0995f684..1481c03edb 100644 --- a/modules/@angular/core/test/linker/view_injector_integration_spec.ts +++ b/modules/@angular/core/test/linker/view_injector_integration_spec.ts @@ -6,9 +6,9 @@ * found in the LICENSE file at https://angular.io/license */ -import {Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, DebugElement, Directive, ElementRef, Host, Inject, Input, Optional, Pipe, PipeTransform, Provider, Self, SkipSelf, TemplateRef, Type, ViewContainerRef, forwardRef} from '@angular/core'; -import {ComponentFixture, TestBed, fakeAsync, flushMicrotasks, tick} from '@angular/core/testing'; -import {beforeEach, beforeEachProviders, ddescribe, describe, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, DebugElement, Directive, ElementRef, Host, Inject, Input, Optional, Pipe, PipeTransform, Provider, Self, SkipSelf, TemplateRef, Type, ViewContainerRef} from '@angular/core'; +import {ComponentFixture, TestBed, fakeAsync} from '@angular/core/testing'; +import {beforeEach, beforeEachProviders, describe, it} from '@angular/core/testing/testing_internal'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {expect} from '@angular/platform-browser/testing/matchers'; diff --git a/modules/@angular/core/test/metadata/decorators_spec.ts b/modules/@angular/core/test/metadata/decorators_spec.ts index b1b4b39d66..017d888c31 100644 --- a/modules/@angular/core/test/metadata/decorators_spec.ts +++ b/modules/@angular/core/test/metadata/decorators_spec.ts @@ -8,7 +8,7 @@ import {Component, Directive} from '@angular/core'; import {reflector} from '@angular/core/src/reflection/reflection'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; export function main() { describe('es5 decorators', () => { diff --git a/modules/@angular/core/test/reflection/reflector_spec.ts b/modules/@angular/core/test/reflection/reflector_spec.ts index 22b7d701a9..ccf84440ee 100644 --- a/modules/@angular/core/test/reflection/reflector_spec.ts +++ b/modules/@angular/core/test/reflection/reflector_spec.ts @@ -9,10 +9,9 @@ import {OnInit} from '@angular/core'; import {ReflectionInfo, Reflector} from '@angular/core/src/reflection/reflection'; import {ReflectionCapabilities} from '@angular/core/src/reflection/reflection_capabilities'; -import {beforeEach, ddescribe, describe, expect, iit, it} from '@angular/core/testing/testing_internal'; -import {browserDetection} from '@angular/platform-browser/testing/browser_util'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; -import {ClassDecorator, HasGetterAndSetterDecorators, ParamDecorator, PropDecorator, classDecorator, paramDecorator, propDecorator} from './reflector_common'; +import {ClassDecorator, ParamDecorator, PropDecorator, classDecorator, paramDecorator, propDecorator} from './reflector_common'; class AType { value: any /** TODO #9100 */; diff --git a/modules/@angular/core/test/testability/testability_spec.ts b/modules/@angular/core/test/testability/testability_spec.ts index 7b57a7cac0..8f89bdcfed 100644 --- a/modules/@angular/core/test/testability/testability_spec.ts +++ b/modules/@angular/core/test/testability/testability_spec.ts @@ -9,10 +9,10 @@ import {Injectable} from '@angular/core/src/di'; import {Testability} from '@angular/core/src/testability/testability'; import {NgZone} from '@angular/core/src/zone/ng_zone'; -import {AsyncTestCompleter, SpyObject, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, SpyObject, beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {EventEmitter} from '../../src/facade/async'; -import {normalizeBlank, scheduleMicroTask} from '../../src/facade/lang'; +import {scheduleMicroTask} from '../../src/facade/lang'; // Schedules a microtasks (using a resolved promise .then()) diff --git a/modules/@angular/core/test/util/decorators_spec.ts b/modules/@angular/core/test/util/decorators_spec.ts index 325c2184ef..a1725ab10a 100644 --- a/modules/@angular/core/test/util/decorators_spec.ts +++ b/modules/@angular/core/test/util/decorators_spec.ts @@ -8,8 +8,8 @@ import {Inject} from '@angular/core'; import {reflector} from '@angular/core/src/reflection/reflection'; -import {Class, makeDecorator, makeParamDecorator} from '@angular/core/src/util/decorators'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {Class, makeDecorator} from '@angular/core/src/util/decorators'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {global} from '../../src/facade/lang'; diff --git a/modules/@angular/core/test/zone/ng_zone_spec.ts b/modules/@angular/core/test/zone/ng_zone_spec.ts index e25df1cb93..5f7a99354c 100644 --- a/modules/@angular/core/test/zone/ng_zone_spec.ts +++ b/modules/@angular/core/test/zone/ng_zone_spec.ts @@ -8,7 +8,7 @@ import {NgZone} from '@angular/core/src/zone/ng_zone'; import {async, fakeAsync, flushMicrotasks} from '@angular/core/testing'; -import {AsyncTestCompleter, Log, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, Log, beforeEach, describe, expect, inject, it, xit} from '@angular/core/testing/testing_internal'; import {browserDetection} from '@angular/platform-browser/testing/browser_util'; import {BaseError} from '../../src/facade/errors'; import {isPresent, scheduleMicroTask} from '../../src/facade/lang'; diff --git a/modules/@angular/core/testing/test_bed.ts b/modules/@angular/core/testing/test_bed.ts index e519228f8e..41ee685ab3 100644 --- a/modules/@angular/core/testing/test_bed.ts +++ b/modules/@angular/core/testing/test_bed.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {CompilerOptions, Component, Directive, Injector, ModuleWithComponentFactories, NgModule, NgModuleFactory, NgModuleRef, NgZone, OpaqueToken, Pipe, PlatformRef, Provider, SchemaMetadata, Type} from '@angular/core'; +import {CompilerOptions, Component, Directive, Injector, ModuleWithComponentFactories, NgModule, NgModuleRef, NgZone, OpaqueToken, Pipe, PlatformRef, Provider, SchemaMetadata, Type} from '@angular/core'; import {AsyncTestCompleter} from './async_test_completer'; import {ComponentFixture} from './component_fixture'; import {stringify} from './facade/lang'; diff --git a/modules/@angular/examples/common/pipes/ts/async_pipe.ts b/modules/@angular/examples/common/pipes/ts/async_pipe.ts index d746d9ac8c..63b4f2c452 100644 --- a/modules/@angular/examples/common/pipes/ts/async_pipe.ts +++ b/modules/@angular/examples/common/pipes/ts/async_pipe.ts @@ -6,9 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Component, NgModule} from '@angular/core'; -import {BrowserModule} from '@angular/platform-browser'; -import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; +import {Component} from '@angular/core'; import {Observable} from 'rxjs/Observable'; import {Subscriber} from 'rxjs/Subscriber'; diff --git a/modules/@angular/examples/common/pipes/ts/date_pipe.ts b/modules/@angular/examples/common/pipes/ts/date_pipe.ts index 81872b4ea3..5b518524ce 100644 --- a/modules/@angular/examples/common/pipes/ts/date_pipe.ts +++ b/modules/@angular/examples/common/pipes/ts/date_pipe.ts @@ -6,9 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Component, NgModule} from '@angular/core'; -import {BrowserModule} from '@angular/platform-browser'; -import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; +import {Component} from '@angular/core'; // #docregion DatePipe @Component({ diff --git a/modules/@angular/examples/common/pipes/ts/i18n_pipe.ts b/modules/@angular/examples/common/pipes/ts/i18n_pipe.ts index 8b73d0d6ad..98088e3eb7 100644 --- a/modules/@angular/examples/common/pipes/ts/i18n_pipe.ts +++ b/modules/@angular/examples/common/pipes/ts/i18n_pipe.ts @@ -6,11 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Component, NgModule} from '@angular/core'; -import {BrowserModule} from '@angular/platform-browser'; -import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; -import {Observable} from 'rxjs/Observable'; -import {Subscriber} from 'rxjs/Subscriber'; +import {Component} from '@angular/core'; // #docregion I18nPluralPipeComponent @Component({ diff --git a/modules/@angular/examples/common/pipes/ts/json_pipe.ts b/modules/@angular/examples/common/pipes/ts/json_pipe.ts index fab6b4b060..68a8035e60 100644 --- a/modules/@angular/examples/common/pipes/ts/json_pipe.ts +++ b/modules/@angular/examples/common/pipes/ts/json_pipe.ts @@ -6,9 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Component, NgModule} from '@angular/core'; -import {BrowserModule} from '@angular/platform-browser'; -import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; +import {Component} from '@angular/core'; // #docregion JsonPipe @Component({ diff --git a/modules/@angular/examples/common/pipes/ts/lowerupper_pipe.ts b/modules/@angular/examples/common/pipes/ts/lowerupper_pipe.ts index cf6b4ffb42..ad071916ed 100644 --- a/modules/@angular/examples/common/pipes/ts/lowerupper_pipe.ts +++ b/modules/@angular/examples/common/pipes/ts/lowerupper_pipe.ts @@ -6,9 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Component, NgModule} from '@angular/core'; -import {BrowserModule} from '@angular/platform-browser'; -import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; +import {Component} from '@angular/core'; // #docregion LowerUpperPipe @Component({ diff --git a/modules/@angular/examples/common/pipes/ts/number_pipe.ts b/modules/@angular/examples/common/pipes/ts/number_pipe.ts index ba8612a4c3..aa9d595db1 100644 --- a/modules/@angular/examples/common/pipes/ts/number_pipe.ts +++ b/modules/@angular/examples/common/pipes/ts/number_pipe.ts @@ -6,9 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Component, NgModule} from '@angular/core'; -import {BrowserModule} from '@angular/platform-browser'; -import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; +import {Component} from '@angular/core'; // #docregion NumberPipe @Component({ diff --git a/modules/@angular/examples/common/pipes/ts/slice_pipe.ts b/modules/@angular/examples/common/pipes/ts/slice_pipe.ts index b43ab58e73..cccb625c5a 100644 --- a/modules/@angular/examples/common/pipes/ts/slice_pipe.ts +++ b/modules/@angular/examples/common/pipes/ts/slice_pipe.ts @@ -6,9 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Component, NgModule} from '@angular/core'; -import {BrowserModule} from '@angular/platform-browser'; -import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; +import {Component} from '@angular/core'; // #docregion SlicePipe_string @Component({ diff --git a/modules/@angular/examples/core/di/ts/contentChild/content_child_howto.ts b/modules/@angular/examples/core/di/ts/contentChild/content_child_howto.ts index 2168fdab2f..830aca8d3b 100644 --- a/modules/@angular/examples/core/di/ts/contentChild/content_child_howto.ts +++ b/modules/@angular/examples/core/di/ts/contentChild/content_child_howto.ts @@ -7,7 +7,7 @@ */ // #docregion HowTo -import {AfterContentInit, Component, ContentChild, Directive, QueryList} from '@angular/core'; +import {AfterContentInit, ContentChild, Directive} from '@angular/core'; @Directive({selector: 'child-directive'}) class ChildDirective { diff --git a/modules/@angular/examples/core/di/ts/contentChildren/content_children_howto.ts b/modules/@angular/examples/core/di/ts/contentChildren/content_children_howto.ts index 48dbd72602..268f5fefdf 100644 --- a/modules/@angular/examples/core/di/ts/contentChildren/content_children_howto.ts +++ b/modules/@angular/examples/core/di/ts/contentChildren/content_children_howto.ts @@ -7,7 +7,7 @@ */ // #docregion HowTo -import {AfterContentInit, Component, ContentChildren, Directive, QueryList} from '@angular/core'; +import {AfterContentInit, ContentChildren, Directive, QueryList} from '@angular/core'; @Directive({selector: 'child-directive'}) class ChildDirective { diff --git a/modules/@angular/examples/core/di/ts/forward_ref/forward_ref_spec.ts b/modules/@angular/examples/core/di/ts/forward_ref/forward_ref_spec.ts index f93001fa69..343b34f43f 100644 --- a/modules/@angular/examples/core/di/ts/forward_ref/forward_ref_spec.ts +++ b/modules/@angular/examples/core/di/ts/forward_ref/forward_ref_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {ForwardRefFn, Inject, ReflectiveInjector, forwardRef, resolveForwardRef} from '@angular/core'; +import {Inject, ReflectiveInjector, forwardRef, resolveForwardRef} from '@angular/core'; export function main() { describe('forwardRef examples', () => { diff --git a/modules/@angular/examples/core/di/ts/provider_spec.ts b/modules/@angular/examples/core/di/ts/provider_spec.ts index 31d2c4c739..a2911d3d9e 100644 --- a/modules/@angular/examples/core/di/ts/provider_spec.ts +++ b/modules/@angular/examples/core/di/ts/provider_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Inject, Injectable, OpaqueToken, Optional, ReflectiveInjector, ValueProvider} from '@angular/core'; +import {Inject, Injectable, OpaqueToken, Optional, ReflectiveInjector} from '@angular/core'; export function main() { describe('Provider examples', () => { diff --git a/modules/@angular/examples/core/di/ts/viewChild/view_child_example.ts b/modules/@angular/examples/core/di/ts/viewChild/view_child_example.ts index a2108de5b6..8611d9037d 100644 --- a/modules/@angular/examples/core/di/ts/viewChild/view_child_example.ts +++ b/modules/@angular/examples/core/di/ts/viewChild/view_child_example.ts @@ -7,7 +7,7 @@ */ // #docregion Component -import {AfterViewInit, Component, Directive, Input, ViewChild} from '@angular/core'; +import {Component, Directive, Input, ViewChild} from '@angular/core'; @Directive({selector: 'pane'}) export class Pane { diff --git a/modules/@angular/examples/core/di/ts/viewChild/view_child_howto.ts b/modules/@angular/examples/core/di/ts/viewChild/view_child_howto.ts index 604846cf3a..fb36209ad4 100644 --- a/modules/@angular/examples/core/di/ts/viewChild/view_child_howto.ts +++ b/modules/@angular/examples/core/di/ts/viewChild/view_child_howto.ts @@ -7,7 +7,7 @@ */ // #docregion HowTo -import {AfterViewInit, Component, Directive, QueryList, ViewChild} from '@angular/core'; +import {AfterViewInit, Component, Directive, ViewChild} from '@angular/core'; @Directive({selector: 'child-directive'}) class ChildDirective { diff --git a/modules/@angular/examples/core/ts/metadata/lifecycle_hooks_spec.ts b/modules/@angular/examples/core/ts/metadata/lifecycle_hooks_spec.ts index 76bfd99358..479ba04337 100644 --- a/modules/@angular/examples/core/ts/metadata/lifecycle_hooks_spec.ts +++ b/modules/@angular/examples/core/ts/metadata/lifecycle_hooks_spec.ts @@ -7,7 +7,7 @@ */ import {AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, Component, DoCheck, Input, OnChanges, OnDestroy, OnInit, SimpleChanges, Type} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; export function main() { describe('lifecycle hooks examples', () => { diff --git a/modules/@angular/examples/core/ts/platform/platform.ts b/modules/@angular/examples/core/ts/platform/platform.ts index 6dacc098c2..d667351496 100644 --- a/modules/@angular/examples/core/ts/platform/platform.ts +++ b/modules/@angular/examples/core/ts/platform/platform.ts @@ -6,8 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Component, ReflectiveInjector, createPlatformFactory} from '@angular/core'; -import {BrowserModule} from '@angular/platform-browser'; +import {Component, createPlatformFactory} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; // #docregion longform diff --git a/modules/@angular/examples/forms/ts/nestedFormArray/nested_form_array_example.ts b/modules/@angular/examples/forms/ts/nestedFormArray/nested_form_array_example.ts index e42b5a703a..c7daf00a23 100644 --- a/modules/@angular/examples/forms/ts/nestedFormArray/nested_form_array_example.ts +++ b/modules/@angular/examples/forms/ts/nestedFormArray/nested_form_array_example.ts @@ -8,7 +8,7 @@ // #docregion Component import {Component} from '@angular/core'; -import {AbstractControl, FormArray, FormControl, FormGroup} from '@angular/forms'; +import {FormArray, FormControl, FormGroup} from '@angular/forms'; @Component({ selector: 'example-app', diff --git a/modules/@angular/facade/src/collection.ts b/modules/@angular/facade/src/collection.ts index 6f73771f01..49a0b2ed7a 100644 --- a/modules/@angular/facade/src/collection.ts +++ b/modules/@angular/facade/src/collection.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {getSymbolIterator, global, isArray, isBlank, isJsObject, isPresent} from './lang'; +import {getSymbolIterator, isArray, isBlank, isJsObject, isPresent} from './lang'; // Safari and Internet Explorer do not support the iterable parameter to the // Map constructor. We work around that by manually adding the items. diff --git a/modules/@angular/facade/test/async_spec.ts b/modules/@angular/facade/test/async_spec.ts index 09b4cac2f1..70a864989c 100644 --- a/modules/@angular/facade/test/async_spec.ts +++ b/modules/@angular/facade/test/async_spec.ts @@ -6,9 +6,8 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; -import {browserDetection} from '@angular/platform-browser/testing/browser_util'; -import {EventEmitter, Observable, Subject} from '../src/async'; +import {AsyncTestCompleter, beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; +import {EventEmitter} from '../src/async'; export function main() { describe('EventEmitter', () => { diff --git a/modules/@angular/forms/src/directives/radio_control_value_accessor.ts b/modules/@angular/forms/src/directives/radio_control_value_accessor.ts index db27685943..29813d857c 100644 --- a/modules/@angular/forms/src/directives/radio_control_value_accessor.ts +++ b/modules/@angular/forms/src/directives/radio_control_value_accessor.ts @@ -9,7 +9,6 @@ import {Directive, ElementRef, Injectable, Injector, Input, OnDestroy, OnInit, Renderer, forwardRef} from '@angular/core'; import {ListWrapper} from '../facade/collection'; -import {isPresent} from '../facade/lang'; import {ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor'; import {NgControl} from './ng_control'; diff --git a/modules/@angular/forms/test/directives_spec.ts b/modules/@angular/forms/test/directives_spec.ts index 15286e7b95..eb48c3fd69 100644 --- a/modules/@angular/forms/test/directives_spec.ts +++ b/modules/@angular/forms/test/directives_spec.ts @@ -8,7 +8,7 @@ import {SimpleChange} from '@angular/core/src/change_detection'; import {fakeAsync, flushMicrotasks, tick} from '@angular/core/testing'; -import {Log, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {CheckboxControlValueAccessor, ControlValueAccessor, DefaultValueAccessor, FormArray, FormArrayName, FormControl, FormControlDirective, FormControlName, FormGroup, FormGroupDirective, FormGroupName, NgControl, NgForm, NgModel, NgModelGroup, SelectControlValueAccessor, SelectMultipleControlValueAccessor, Validator, Validators} from '@angular/forms'; import {composeValidators, selectValueAccessor} from '@angular/forms/src/directives/shared'; diff --git a/modules/@angular/forms/test/form_array_spec.ts b/modules/@angular/forms/test/form_array_spec.ts index c5fadaa805..f5d09b8dd1 100644 --- a/modules/@angular/forms/test/form_array_spec.ts +++ b/modules/@angular/forms/test/form_array_spec.ts @@ -7,7 +7,7 @@ */ import {fakeAsync, tick} from '@angular/core/testing'; -import {AsyncTestCompleter, beforeEach, ddescribe, describe, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, beforeEach, describe, inject, it} from '@angular/core/testing/testing_internal'; import {AbstractControl, FormArray, FormControl, FormGroup} from '@angular/forms'; import {isPresent} from '../src/facade/lang'; diff --git a/modules/@angular/forms/test/form_builder_spec.ts b/modules/@angular/forms/test/form_builder_spec.ts index 51e6c6ba37..05d17175f4 100644 --- a/modules/@angular/forms/test/form_builder_spec.ts +++ b/modules/@angular/forms/test/form_builder_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {FormBuilder} from '@angular/forms'; export function main() { diff --git a/modules/@angular/forms/test/form_control_spec.ts b/modules/@angular/forms/test/form_control_spec.ts index 2c3471a03b..4087d914e5 100644 --- a/modules/@angular/forms/test/form_control_spec.ts +++ b/modules/@angular/forms/test/form_control_spec.ts @@ -7,7 +7,7 @@ */ import {fakeAsync, tick} from '@angular/core/testing'; -import {AsyncTestCompleter, beforeEach, ddescribe, describe, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, beforeEach, describe, inject, it} from '@angular/core/testing/testing_internal'; import {FormControl, FormGroup, Validators} from '@angular/forms'; import {EventEmitter} from '../src/facade/async'; diff --git a/modules/@angular/forms/test/form_group_spec.ts b/modules/@angular/forms/test/form_group_spec.ts index 4bc4e2295f..4d787ee6a4 100644 --- a/modules/@angular/forms/test/form_group_spec.ts +++ b/modules/@angular/forms/test/form_group_spec.ts @@ -7,7 +7,7 @@ */ import {async, fakeAsync, tick} from '@angular/core/testing'; -import {AsyncTestCompleter, beforeEach, ddescribe, describe, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, beforeEach, describe, inject, it} from '@angular/core/testing/testing_internal'; import {AbstractControl, FormControl, FormGroup, Validators} from '@angular/forms'; import {EventEmitter} from '../src/facade/async'; diff --git a/modules/@angular/forms/test/spies.ts b/modules/@angular/forms/test/spies.ts index 6c4d6bb722..6338e5252c 100644 --- a/modules/@angular/forms/test/spies.ts +++ b/modules/@angular/forms/test/spies.ts @@ -7,7 +7,7 @@ */ import {ChangeDetectorRef} from '@angular/core/src/change_detection/change_detector_ref'; -import {SpyObject, proxy} from '@angular/core/testing/testing_internal'; +import {SpyObject} from '@angular/core/testing/testing_internal'; export class SpyChangeDetectorRef extends SpyObject { constructor() { diff --git a/modules/@angular/forms/test/validators_spec.ts b/modules/@angular/forms/test/validators_spec.ts index 98fae5b530..921965171d 100644 --- a/modules/@angular/forms/test/validators_spec.ts +++ b/modules/@angular/forms/test/validators_spec.ts @@ -7,7 +7,7 @@ */ import {fakeAsync, tick} from '@angular/core/testing'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {AbstractControl, FormControl, Validators} from '@angular/forms'; import {Observable} from 'rxjs/Observable'; diff --git a/modules/@angular/http/src/backends/jsonp_backend.ts b/modules/@angular/http/src/backends/jsonp_backend.ts index 77cbead811..ff736aa73d 100644 --- a/modules/@angular/http/src/backends/jsonp_backend.ts +++ b/modules/@angular/http/src/backends/jsonp_backend.ts @@ -10,7 +10,7 @@ import {Injectable} from '@angular/core'; import {Observable} from 'rxjs/Observable'; import {Observer} from 'rxjs/Observer'; -import {BaseResponseOptions, ResponseOptions} from '../base_response_options'; +import {ResponseOptions} from '../base_response_options'; import {ReadyState, RequestMethod, ResponseType} from '../enums'; import {StringWrapper, isPresent} from '../facade/lang'; import {Connection, ConnectionBackend} from '../interfaces'; diff --git a/modules/@angular/http/src/base_response_options.ts b/modules/@angular/http/src/base_response_options.ts index ffdf0f3154..03c5a7e914 100644 --- a/modules/@angular/http/src/base_response_options.ts +++ b/modules/@angular/http/src/base_response_options.ts @@ -8,7 +8,7 @@ import {Injectable} from '@angular/core'; -import {isJsObject, isPresent} from '../src/facade/lang'; +import {isPresent} from '../src/facade/lang'; import {ResponseType} from './enums'; import {Headers} from './headers'; diff --git a/modules/@angular/http/src/http.ts b/modules/@angular/http/src/http.ts index 7dab9ff007..3789ffdf66 100644 --- a/modules/@angular/http/src/http.ts +++ b/modules/@angular/http/src/http.ts @@ -16,7 +16,6 @@ import {RequestMethod} from './enums'; import {ConnectionBackend, RequestOptionsArgs} from './interfaces'; import {Request} from './static_request'; import {Response} from './static_response'; -import {URLSearchParams} from './url_search_params'; function httpRequest(backend: ConnectionBackend, request: Request): Observable { return backend.createConnection(request).response; diff --git a/modules/@angular/http/src/static_response.ts b/modules/@angular/http/src/static_response.ts index e423ecc12a..892edaa743 100644 --- a/modules/@angular/http/src/static_response.ts +++ b/modules/@angular/http/src/static_response.ts @@ -6,13 +6,12 @@ * found in the LICENSE file at https://angular.io/license */ -import {Json, isString} from '../src/facade/lang'; + import {ResponseOptions} from './base_response_options'; import {Body} from './body'; import {ResponseType} from './enums'; import {Headers} from './headers'; -import {isJsObject} from './http_utils'; /** diff --git a/modules/@angular/http/test/backends/jsonp_backend_spec.ts b/modules/@angular/http/test/backends/jsonp_backend_spec.ts index da07e1f62e..1c10960ee0 100644 --- a/modules/@angular/http/test/backends/jsonp_backend_spec.ts +++ b/modules/@angular/http/test/backends/jsonp_backend_spec.ts @@ -7,7 +7,7 @@ */ import {ReflectiveInjector} from '@angular/core'; -import {AsyncTestCompleter, SpyObject, afterEach, beforeEach, ddescribe, describe, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, SpyObject, afterEach, beforeEach, describe, inject, it} from '@angular/core/testing/testing_internal'; import {expect} from '@angular/platform-browser/testing/matchers'; import {BrowserJsonp} from '../../src/backends/browser_jsonp'; import {JSONPBackend, JSONPBackend_, JSONPConnection, JSONPConnection_} from '../../src/backends/jsonp_backend'; @@ -16,7 +16,6 @@ import {BaseResponseOptions, ResponseOptions} from '../../src/base_response_opti import {ReadyState, RequestMethod, ResponseType} from '../../src/enums'; import {isPresent} from '../../src/facade/lang'; import {Request} from '../../src/static_request'; -import {Response} from '../../src/static_response'; var existingScripts: MockBrowserJsonp[] = []; diff --git a/modules/@angular/http/test/backends/mock_backend_spec.ts b/modules/@angular/http/test/backends/mock_backend_spec.ts index e799d52a30..94b122f6c1 100644 --- a/modules/@angular/http/test/backends/mock_backend_spec.ts +++ b/modules/@angular/http/test/backends/mock_backend_spec.ts @@ -7,7 +7,7 @@ */ import {ReflectiveInjector} from '@angular/core'; -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, beforeEach, describe, inject, it, xit} from '@angular/core/testing/testing_internal'; import {expect} from '@angular/platform-browser/testing/matchers'; import {ReplaySubject} from 'rxjs/ReplaySubject'; diff --git a/modules/@angular/http/test/backends/xhr_backend_spec.ts b/modules/@angular/http/test/backends/xhr_backend_spec.ts index 0b74c4b14a..88e58691b9 100644 --- a/modules/@angular/http/test/backends/xhr_backend_spec.ts +++ b/modules/@angular/http/test/backends/xhr_backend_spec.ts @@ -7,7 +7,7 @@ */ import {Injectable} from '@angular/core'; -import {AsyncTestCompleter, SpyObject, afterEach, beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, SpyObject, afterEach, beforeEach, beforeEachProviders, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {__platform_browser_private__} from '@angular/platform-browser'; import {BrowserXhr} from '../../src/backends/browser_xhr'; diff --git a/modules/@angular/http/test/base_request_options_spec.ts b/modules/@angular/http/test/base_request_options_spec.ts index ef48d03e3b..fe47a48836 100644 --- a/modules/@angular/http/test/base_request_options_spec.ts +++ b/modules/@angular/http/test/base_request_options_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {BaseRequestOptions, RequestOptions} from '../src/base_request_options'; import {RequestMethod} from '../src/enums'; diff --git a/modules/@angular/http/test/headers_spec.ts b/modules/@angular/http/test/headers_spec.ts index 91c9b8fb19..c31c9111f4 100644 --- a/modules/@angular/http/test/headers_spec.ts +++ b/modules/@angular/http/test/headers_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {Json} from '../src/facade/lang'; import {Headers} from '../src/headers'; diff --git a/modules/@angular/http/test/http_spec.ts b/modules/@angular/http/test/http_spec.ts index 3be5a2ce1d..a0b7bbff0f 100644 --- a/modules/@angular/http/test/http_spec.ts +++ b/modules/@angular/http/test/http_spec.ts @@ -8,7 +8,7 @@ import {Injector, ReflectiveInjector} from '@angular/core'; import {TestBed, getTestBed} from '@angular/core/testing'; -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, afterEach, beforeEach, describe, inject, it} from '@angular/core/testing/testing_internal'; import {expect} from '@angular/platform-browser/testing/matchers'; import {Observable} from 'rxjs/Observable'; import {zip} from 'rxjs/observable/zip'; diff --git a/modules/@angular/http/test/url_search_params_spec.ts b/modules/@angular/http/test/url_search_params_spec.ts index 237bee9a07..f075e9536b 100644 --- a/modules/@angular/http/test/url_search_params_spec.ts +++ b/modules/@angular/http/test/url_search_params_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {URLSearchParams} from '../src/url_search_params'; export function main() { diff --git a/modules/@angular/platform-browser-dynamic/src/platform-browser-dynamic.ts b/modules/@angular/platform-browser-dynamic/src/platform-browser-dynamic.ts index 69950907b0..a5b089871a 100644 --- a/modules/@angular/platform-browser-dynamic/src/platform-browser-dynamic.ts +++ b/modules/@angular/platform-browser-dynamic/src/platform-browser-dynamic.ts @@ -7,10 +7,9 @@ */ import {ResourceLoader, platformCoreDynamic} from '@angular/compiler'; -import {ClassProvider, ExistingProvider, FactoryProvider, PlatformRef, Provider, TypeProvider, ValueProvider, createPlatformFactory} from '@angular/core'; +import {PlatformRef, Provider, createPlatformFactory} from '@angular/core'; import {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers'; -import {Console} from './private_import_core'; import {CachedResourceLoader} from './resource_loader/resource_loader_cache'; export * from './private_export'; diff --git a/modules/@angular/platform-browser-dynamic/src/private_export.ts b/modules/@angular/platform-browser-dynamic/src/private_export.ts index 712b0fd73a..039e115800 100644 --- a/modules/@angular/platform-browser-dynamic/src/private_export.ts +++ b/modules/@angular/platform-browser-dynamic/src/private_export.ts @@ -5,7 +5,7 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -import {ClassProvider, ExistingProvider, FactoryProvider, Provider, TypeProvider, ValueProvider} from '@angular/core'; + import {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers'; import * as resource_loader from './resource_loader/resource_loader_impl'; diff --git a/modules/@angular/platform-browser-dynamic/test/resource_loader/resource_loader_impl_spec.ts b/modules/@angular/platform-browser-dynamic/test/resource_loader/resource_loader_impl_spec.ts index 47d83f967c..672295fa15 100644 --- a/modules/@angular/platform-browser-dynamic/test/resource_loader/resource_loader_impl_spec.ts +++ b/modules/@angular/platform-browser-dynamic/test/resource_loader/resource_loader_impl_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {ResourceLoaderImpl} from '../../src/resource_loader/resource_loader_impl'; export function main() { diff --git a/modules/@angular/platform-browser-dynamic/testing/index.ts b/modules/@angular/platform-browser-dynamic/testing/index.ts index c4ed5f9459..0d3d0b9e5e 100644 --- a/modules/@angular/platform-browser-dynamic/testing/index.ts +++ b/modules/@angular/platform-browser-dynamic/testing/index.ts @@ -7,7 +7,7 @@ */ import {platformCoreDynamicTesting} from '@angular/compiler/testing'; -import {ClassProvider, ExistingProvider, FactoryProvider, NgModule, PlatformRef, Provider, TypeProvider, ValueProvider, createPlatformFactory} from '@angular/core'; +import {NgModule, PlatformRef, Provider, createPlatformFactory} from '@angular/core'; import {TestComponentRenderer} from '@angular/core/testing'; import {BrowserTestingModule} from '@angular/platform-browser/testing'; diff --git a/modules/@angular/platform-browser/src/browser.ts b/modules/@angular/platform-browser/src/browser.ts index b04b7367d5..acc086c79c 100644 --- a/modules/@angular/platform-browser/src/browser.ts +++ b/modules/@angular/platform-browser/src/browser.ts @@ -7,7 +7,7 @@ */ import {CommonModule, PlatformLocation} from '@angular/common'; -import {ApplicationModule, ClassProvider, ErrorHandler, ExistingProvider, FactoryProvider, NgModule, Optional, PLATFORM_INITIALIZER, PlatformRef, Provider, RootRenderer, Sanitizer, SkipSelf, Testability, TypeProvider, ValueProvider, createPlatformFactory, platformCore} from '@angular/core'; +import {ApplicationModule, ErrorHandler, NgModule, Optional, PLATFORM_INITIALIZER, PlatformRef, Provider, RootRenderer, Sanitizer, SkipSelf, Testability, createPlatformFactory, platformCore} from '@angular/core'; import {AnimationDriver} from '../src/dom/animation_driver'; import {WebAnimationsDriver} from '../src/dom/web_animations_driver'; diff --git a/modules/@angular/platform-browser/src/browser/browser_adapter.ts b/modules/@angular/platform-browser/src/browser/browser_adapter.ts index ff005f86f6..b0963ea18b 100644 --- a/modules/@angular/platform-browser/src/browser/browser_adapter.ts +++ b/modules/@angular/platform-browser/src/browser/browser_adapter.ts @@ -7,7 +7,6 @@ */ import {setRootDomAdapter} from '../dom/dom_adapter'; -import {ListWrapper} from '../facade/collection'; import {DateWrapper, global, isBlank, isFunction, isPresent, setValueOnPath} from '../facade/lang'; import {GenericBrowserDomAdapter} from './generic_browser_adapter'; diff --git a/modules/@angular/platform-browser/src/browser/location/browser_platform_location.ts b/modules/@angular/platform-browser/src/browser/location/browser_platform_location.ts index 5766f230b8..33c395e722 100644 --- a/modules/@angular/platform-browser/src/browser/location/browser_platform_location.ts +++ b/modules/@angular/platform-browser/src/browser/location/browser_platform_location.ts @@ -10,7 +10,6 @@ import {LocationChangeListener, PlatformLocation} from '@angular/common'; import {Injectable} from '@angular/core'; import {getDOM} from '../../dom/dom_adapter'; -import {History, Location} from '../../facade/browser'; import {supportsState} from './history'; diff --git a/modules/@angular/platform-browser/src/browser/testability.ts b/modules/@angular/platform-browser/src/browser/testability.ts index c397d1e1bf..569e937832 100644 --- a/modules/@angular/platform-browser/src/browser/testability.ts +++ b/modules/@angular/platform-browser/src/browser/testability.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {GetTestability, Injectable, Testability, TestabilityRegistry, setTestabilityGetter} from '@angular/core'; +import {GetTestability, Testability, TestabilityRegistry, setTestabilityGetter} from '@angular/core'; import {getDOM} from '../dom/dom_adapter'; import {ListWrapper} from '../facade/collection'; diff --git a/modules/@angular/platform-browser/src/dom/dom_renderer.ts b/modules/@angular/platform-browser/src/dom/dom_renderer.ts index 16df417a4d..fed8d631cc 100644 --- a/modules/@angular/platform-browser/src/dom/dom_renderer.ts +++ b/modules/@angular/platform-browser/src/dom/dom_renderer.ts @@ -6,9 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Inject, Injectable, OpaqueToken, RenderComponentType, Renderer, RootRenderer, ViewEncapsulation} from '@angular/core'; - -import {StringMapWrapper} from '../facade/collection'; +import {Inject, Injectable, RenderComponentType, Renderer, RootRenderer, ViewEncapsulation} from '@angular/core'; import {Json, StringWrapper, isArray, isBlank, isPresent, isString, stringify} from '../facade/lang'; import {AnimationKeyframe, AnimationPlayer, AnimationStyles, RenderDebugInfo} from '../private_import_core'; diff --git a/modules/@angular/platform-browser/src/dom/web_animations_driver.ts b/modules/@angular/platform-browser/src/dom/web_animations_driver.ts index c17851f55e..49653106bf 100644 --- a/modules/@angular/platform-browser/src/dom/web_animations_driver.ts +++ b/modules/@angular/platform-browser/src/dom/web_animations_driver.ts @@ -10,10 +10,9 @@ import {AUTO_STYLE} from '@angular/core'; import {StringMapWrapper} from '../facade/collection'; import {StringWrapper, isNumber, isPresent} from '../facade/lang'; -import {AnimationKeyframe, AnimationPlayer, AnimationStyles, NoOpAnimationPlayer} from '../private_import_core'; +import {AnimationKeyframe, AnimationStyles} from '../private_import_core'; import {AnimationDriver} from './animation_driver'; -import {DomAnimatePlayer} from './dom_animate_player'; import {dashCaseToCamelCase} from './util'; import {WebAnimationsPlayer} from './web_animations_player'; diff --git a/modules/@angular/platform-browser/src/private_export.ts b/modules/@angular/platform-browser/src/private_export.ts index f555fbad7a..3738f46e88 100644 --- a/modules/@angular/platform-browser/src/private_export.ts +++ b/modules/@angular/platform-browser/src/private_export.ts @@ -5,7 +5,7 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -import {ClassProvider, ExistingProvider, FactoryProvider, Provider, TypeProvider, ValueProvider} from '@angular/core'; + import * as browser from './browser'; import * as browserDomAdapter from './browser/browser_adapter'; diff --git a/modules/@angular/platform-browser/test/browser/bootstrap_spec.ts b/modules/@angular/platform-browser/test/browser/bootstrap_spec.ts index 658ce665e3..aa4e90aa7b 100644 --- a/modules/@angular/platform-browser/test/browser/bootstrap_spec.ts +++ b/modules/@angular/platform-browser/test/browser/bootstrap_spec.ts @@ -11,7 +11,7 @@ import {ApplicationRef, destroyPlatform} from '@angular/core/src/application_ref import {Console} from '@angular/core/src/console'; import {ComponentRef} from '@angular/core/src/linker/component_factory'; import {Testability, TestabilityRegistry} from '@angular/core/src/testability/testability'; -import {AsyncTestCompleter, Log, afterEach, beforeEach, beforeEachProviders, ddescribe, describe, iit, inject, it} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, Log, afterEach, beforeEach, beforeEachProviders, describe, inject, it} from '@angular/core/testing/testing_internal'; import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; diff --git a/modules/@angular/platform-browser/test/browser/browser_adapter_spec.ts b/modules/@angular/platform-browser/test/browser/browser_adapter_spec.ts index e866c45f28..9492721a03 100644 --- a/modules/@angular/platform-browser/test/browser/browser_adapter_spec.ts +++ b/modules/@angular/platform-browser/test/browser/browser_adapter_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {parseCookieValue} from '../../src/browser/browser_adapter'; diff --git a/modules/@angular/platform-browser/test/browser/tools/tools_spec.ts b/modules/@angular/platform-browser/test/browser/tools/tools_spec.ts index 55ef9947e4..5aa570822c 100644 --- a/modules/@angular/platform-browser/test/browser/tools/tools_spec.ts +++ b/modules/@angular/platform-browser/test/browser/tools/tools_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {afterEach, beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {afterEach, beforeEach, describe, it} from '@angular/core/testing/testing_internal'; import {disableDebugTools, enableDebugTools} from '@angular/platform-browser'; import {SpyComponentRef, callNgProfilerTimeChangeDetection} from './spies'; diff --git a/modules/@angular/platform-browser/test/dom/dom_renderer_integration_spec.ts b/modules/@angular/platform-browser/test/dom/dom_renderer_integration_spec.ts index b326f798be..3598b5230d 100644 --- a/modules/@angular/platform-browser/test/dom/dom_renderer_integration_spec.ts +++ b/modules/@angular/platform-browser/test/dom/dom_renderer_integration_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; +import {describe, it} from '@angular/core/testing/testing_internal'; // import {MapWrapper} from '../../src/facade/src/collection'; // import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; diff --git a/modules/@angular/platform-browser/test/dom/events/event_manager_spec.ts b/modules/@angular/platform-browser/test/dom/events/event_manager_spec.ts index 3e8cac85dc..b988a757ba 100644 --- a/modules/@angular/platform-browser/test/dom/events/event_manager_spec.ts +++ b/modules/@angular/platform-browser/test/dom/events/event_manager_spec.ts @@ -7,7 +7,7 @@ */ import {NgZone} from '@angular/core/src/zone/ng_zone'; -import {beforeEach, ddescribe, describe, expect, iit, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {DomEventsPlugin} from '@angular/platform-browser/src/dom/events/dom_events'; import {EventManager, EventManagerPlugin} from '@angular/platform-browser/src/dom/events/event_manager'; diff --git a/modules/@angular/platform-browser/test/dom/events/key_events_spec.ts b/modules/@angular/platform-browser/test/dom/events/key_events_spec.ts index ecf3039acc..d308a2c6ad 100644 --- a/modules/@angular/platform-browser/test/dom/events/key_events_spec.ts +++ b/modules/@angular/platform-browser/test/dom/events/key_events_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, ddescribe, describe, expect, iit, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {KeyEventsPlugin} from '@angular/platform-browser/src/dom/events/key_events'; export function main() { diff --git a/modules/@angular/platform-browser/test/dom/shared_styles_host_spec.ts b/modules/@angular/platform-browser/test/dom/shared_styles_host_spec.ts index 7d9d9cc1bb..7650bc694e 100644 --- a/modules/@angular/platform-browser/test/dom/shared_styles_host_spec.ts +++ b/modules/@angular/platform-browser/test/dom/shared_styles_host_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, beforeEachProviders, ddescribe, describe, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, it} from '@angular/core/testing/testing_internal'; import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter'; import {DomSharedStylesHost} from '@angular/platform-browser/src/dom/shared_styles_host'; import {expect} from '@angular/platform-browser/testing/matchers'; diff --git a/modules/@angular/platform-browser/test/dom/web_animations_driver_spec.ts b/modules/@angular/platform-browser/test/dom/web_animations_driver_spec.ts index 4431598649..e455bc11da 100644 --- a/modules/@angular/platform-browser/test/dom/web_animations_driver_spec.ts +++ b/modules/@angular/platform-browser/test/dom/web_animations_driver_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {el} from '@angular/platform-browser/testing/browser_util'; import {DomAnimatePlayer} from '../../src/dom/dom_animate_player'; diff --git a/modules/@angular/platform-browser/test/dom/web_animations_player_spec.ts b/modules/@angular/platform-browser/test/dom/web_animations_player_spec.ts index 5a98a46b7d..c89c1622cb 100644 --- a/modules/@angular/platform-browser/test/dom/web_animations_player_spec.ts +++ b/modules/@angular/platform-browser/test/dom/web_animations_player_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {AsyncTestCompleter, MockAnimationPlayer, beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {MockAnimationPlayer, beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal'; import {el} from '@angular/platform-browser/testing/browser_util'; import {DomAnimatePlayer} from '../../src/dom/dom_animate_player'; diff --git a/modules/@angular/platform-browser/testing/browser.ts b/modules/@angular/platform-browser/testing/browser.ts index d173a33efb..758eb2748a 100644 --- a/modules/@angular/platform-browser/testing/browser.ts +++ b/modules/@angular/platform-browser/testing/browser.ts @@ -5,7 +5,7 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -import {APP_ID, ClassProvider, ExistingProvider, FactoryProvider, NgModule, NgZone, PLATFORM_INITIALIZER, PlatformRef, Provider, TypeProvider, ValueProvider, createPlatformFactory, platformCore} from '@angular/core'; +import {APP_ID, NgModule, NgZone, PLATFORM_INITIALIZER, PlatformRef, Provider, createPlatformFactory, platformCore} from '@angular/core'; import {AnimationDriver, BrowserModule} from '@angular/platform-browser'; import {BrowserDetection, createNgZone} from './browser_util'; diff --git a/modules/@angular/platform-browser/testing/browser_util.ts b/modules/@angular/platform-browser/testing/browser_util.ts index 04651f5aff..d147346980 100644 --- a/modules/@angular/platform-browser/testing/browser_util.ts +++ b/modules/@angular/platform-browser/testing/browser_util.ts @@ -9,7 +9,7 @@ import {NgZone} from '@angular/core'; import {ListWrapper} from './facade/collection'; -import {RegExp, StringWrapper, global, isPresent, isString} from './facade/lang'; +import {StringWrapper, global, isPresent, isString} from './facade/lang'; import {getDOM} from './private_import_platform-browser'; export class BrowserDetection { diff --git a/modules/@angular/platform-server/src/private_export.ts b/modules/@angular/platform-server/src/private_export.ts index 30c91b0601..497ea8d270 100644 --- a/modules/@angular/platform-server/src/private_export.ts +++ b/modules/@angular/platform-server/src/private_export.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {ClassProvider, ExistingProvider, FactoryProvider, Provider, TypeProvider, ValueProvider} from '@angular/core'; + import {INTERNAL_SERVER_PLATFORM_PROVIDERS} from './server'; export var __platform_server_private__: diff --git a/modules/@angular/platform-server/src/server.ts b/modules/@angular/platform-server/src/server.ts index e351ad5c70..b909eefb5e 100644 --- a/modules/@angular/platform-server/src/server.ts +++ b/modules/@angular/platform-server/src/server.ts @@ -8,7 +8,7 @@ import {PlatformLocation} from '@angular/common'; import {platformCoreDynamic} from '@angular/compiler'; -import {ClassProvider, ExistingProvider, FactoryProvider, NgModule, PLATFORM_INITIALIZER, PlatformRef, Provider, TypeProvider, ValueProvider, createPlatformFactory, platformCore} from '@angular/core'; +import {NgModule, PLATFORM_INITIALIZER, PlatformRef, Provider, createPlatformFactory, platformCore} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {Parse5DomAdapter} from './parse5_adapter'; diff --git a/modules/@angular/platform-server/testing/server.ts b/modules/@angular/platform-server/testing/server.ts index e76728c3df..c52a4220c2 100644 --- a/modules/@angular/platform-server/testing/server.ts +++ b/modules/@angular/platform-server/testing/server.ts @@ -7,7 +7,7 @@ */ import {platformCoreDynamicTesting} from '@angular/compiler/testing'; -import {ClassProvider, ExistingProvider, FactoryProvider, NgModule, PlatformRef, Provider, TypeProvider, ValueProvider, createPlatformFactory} from '@angular/core'; +import {NgModule, PlatformRef, Provider, createPlatformFactory} from '@angular/core'; import {BrowserDynamicTestingModule} from '@angular/platform-browser-dynamic/testing'; import {INTERNAL_SERVER_PLATFORM_PROVIDERS} from './private_import_platform_server'; diff --git a/modules/@angular/platform-webworker-dynamic/src/platform-webworker-dynamic.ts b/modules/@angular/platform-webworker-dynamic/src/platform-webworker-dynamic.ts index d7cecba930..36793a0acc 100644 --- a/modules/@angular/platform-webworker-dynamic/src/platform-webworker-dynamic.ts +++ b/modules/@angular/platform-webworker-dynamic/src/platform-webworker-dynamic.ts @@ -7,7 +7,7 @@ */ import {ResourceLoader, platformCoreDynamic} from '@angular/compiler'; -import {COMPILER_OPTIONS, ClassProvider, ExistingProvider, FactoryProvider, PlatformRef, Provider, TypeProvider, ValueProvider, createPlatformFactory} from '@angular/core'; +import {COMPILER_OPTIONS, PlatformRef, Provider, createPlatformFactory} from '@angular/core'; import {ResourceLoaderImpl} from './private_import_platform-browser-dynamic'; diff --git a/modules/@angular/platform-webworker/src/worker_app.ts b/modules/@angular/platform-webworker/src/worker_app.ts index 76d6788527..03fef5afab 100644 --- a/modules/@angular/platform-webworker/src/worker_app.ts +++ b/modules/@angular/platform-webworker/src/worker_app.ts @@ -7,7 +7,7 @@ */ import {CommonModule} from '@angular/common'; -import {APP_INITIALIZER, ApplicationModule, ClassProvider, ErrorHandler, ExistingProvider, FactoryProvider, NgModule, NgZone, PlatformRef, Provider, RootRenderer, TypeProvider, ValueProvider, createPlatformFactory, platformCore} from '@angular/core'; +import {APP_INITIALIZER, ApplicationModule, ErrorHandler, NgModule, NgZone, PlatformRef, Provider, RootRenderer, createPlatformFactory, platformCore} from '@angular/core'; import {BROWSER_SANITIZATION_PROVIDERS} from './private_import_platform-browser'; import {ON_WEB_WORKER} from './web_workers/shared/api'; diff --git a/modules/@angular/platform-webworker/src/worker_render.ts b/modules/@angular/platform-webworker/src/worker_render.ts index f1bd38877a..a3e7117f96 100644 --- a/modules/@angular/platform-webworker/src/worker_render.ts +++ b/modules/@angular/platform-webworker/src/worker_render.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {ClassProvider, ErrorHandler, ExistingProvider, FactoryProvider, Injectable, Injector, NgZone, OpaqueToken, PLATFORM_INITIALIZER, PlatformRef, Provider, RootRenderer, Testability, TypeProvider, ValueProvider, createPlatformFactory, isDevMode, platformCore} from '@angular/core'; +import {ErrorHandler, Injectable, Injector, NgZone, OpaqueToken, PLATFORM_INITIALIZER, PlatformRef, Provider, RootRenderer, Testability, createPlatformFactory, isDevMode, platformCore} from '@angular/core'; import {AnimationDriver, DOCUMENT, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HammerGestureConfig} from '@angular/platform-browser'; import {BROWSER_SANITIZATION_PROVIDERS, BrowserDomAdapter, BrowserGetTestability, DomEventsPlugin, DomRootRenderer, DomRootRenderer_, DomSharedStylesHost, HammerGesturesPlugin, KeyEventsPlugin, SharedStylesHost, getDOM} from './private_import_platform-browser'; diff --git a/modules/@angular/platform-webworker/test/web_workers/shared/message_bus_spec.ts b/modules/@angular/platform-webworker/test/web_workers/shared/message_bus_spec.ts index 3e014d196d..67b3a74710 100644 --- a/modules/@angular/platform-webworker/test/web_workers/shared/message_bus_spec.ts +++ b/modules/@angular/platform-webworker/test/web_workers/shared/message_bus_spec.ts @@ -8,7 +8,7 @@ import {NgZone} from '@angular/core'; import {withModule} from '@angular/core/testing/test_bed'; -import {AsyncTestCompleter, MockNgZone, beforeEach, beforeEachProviders, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, MockNgZone, beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {MessageBus} from '@angular/platform-webworker/src/web_workers/shared/message_bus'; import {createConnectedMessageBus} from './message_bus_util'; diff --git a/modules/@angular/platform-webworker/test/web_workers/shared/service_message_broker_spec.ts b/modules/@angular/platform-webworker/test/web_workers/shared/service_message_broker_spec.ts index 1af1629669..9580c8472a 100644 --- a/modules/@angular/platform-webworker/test/web_workers/shared/service_message_broker_spec.ts +++ b/modules/@angular/platform-webworker/test/web_workers/shared/service_message_broker_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {beforeEach, beforeEachProviders, describe, expect, iit, inject, it} from '@angular/core/testing/testing_internal'; +import {beforeEach, beforeEachProviders, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {ON_WEB_WORKER} from '@angular/platform-webworker/src/web_workers/shared/api'; import {RenderStore} from '@angular/platform-webworker/src/web_workers/shared/render_store'; import {PRIMITIVE, Serializer} from '@angular/platform-webworker/src/web_workers/shared/serializer'; diff --git a/modules/@angular/platform-webworker/test/web_workers/shared/web_worker_test_util.ts b/modules/@angular/platform-webworker/test/web_workers/shared/web_worker_test_util.ts index fb6e5ef72d..2379c42ee5 100644 --- a/modules/@angular/platform-webworker/test/web_workers/shared/web_worker_test_util.ts +++ b/modules/@angular/platform-webworker/test/web_workers/shared/web_worker_test_util.ts @@ -10,7 +10,6 @@ import {Type} from '@angular/core'; import {NgZone} from '@angular/core/src/zone/ng_zone'; import {ClientMessageBroker, ClientMessageBrokerFactory_, UiArguments} from '@angular/platform-webworker/src/web_workers/shared/client_message_broker'; import {MessageBus, MessageBusSink, MessageBusSource} from '@angular/platform-webworker/src/web_workers/shared/message_bus'; -import {ListWrapper, StringMapWrapper} from '../../../src/facade/collection'; import {isPresent} from '../../../src/facade/lang'; import {SpyMessageBroker} from '../worker/spies'; diff --git a/modules/@angular/platform-webworker/test/web_workers/worker/platform_location_spec.ts b/modules/@angular/platform-webworker/test/web_workers/worker/platform_location_spec.ts index 2c2376b3f7..4b06564895 100644 --- a/modules/@angular/platform-webworker/test/web_workers/worker/platform_location_spec.ts +++ b/modules/@angular/platform-webworker/test/web_workers/worker/platform_location_spec.ts @@ -7,7 +7,7 @@ */ import {Type} from '@angular/core'; -import {AsyncTestCompleter, beforeEach, beforeEachProviders, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; +import {AsyncTestCompleter, beforeEach, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; import {UiArguments} from '@angular/platform-webworker/src/web_workers/shared/client_message_broker'; import {MessageBus} from '@angular/platform-webworker/src/web_workers/shared/message_bus'; import {LocationType} from '@angular/platform-webworker/src/web_workers/shared/serialized_types'; diff --git a/modules/@angular/platform-webworker/test/web_workers/worker/spies.ts b/modules/@angular/platform-webworker/test/web_workers/worker/spies.ts index 22d498f13a..7055f66510 100644 --- a/modules/@angular/platform-webworker/test/web_workers/worker/spies.ts +++ b/modules/@angular/platform-webworker/test/web_workers/worker/spies.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {SpyObject, proxy} from '@angular/core/testing/testing_internal'; +import {SpyObject} from '@angular/core/testing/testing_internal'; import {ClientMessageBroker} from '@angular/platform-webworker/src/web_workers/shared/client_message_broker'; export class SpyMessageBroker extends SpyObject { diff --git a/modules/@angular/router/src/directives/router_link_active.ts b/modules/@angular/router/src/directives/router_link_active.ts index 5eb4c1198a..e41c259f4d 100644 --- a/modules/@angular/router/src/directives/router_link_active.ts +++ b/modules/@angular/router/src/directives/router_link_active.ts @@ -10,7 +10,6 @@ import {AfterContentInit, ContentChildren, Directive, ElementRef, Input, OnChang import {Subscription} from 'rxjs/Subscription'; import {NavigationEnd, Router} from '../router'; -import {UrlTree} from '../url_tree'; import {RouterLink, RouterLinkWithHref} from './router_link'; diff --git a/modules/@angular/router/src/private_export.ts b/modules/@angular/router/src/private_export.ts index 1ecd87a927..dfe3a0582e 100644 --- a/modules/@angular/router/src/private_export.ts +++ b/modules/@angular/router/src/private_export.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {ClassProvider, ExistingProvider, FactoryProvider, OpaqueToken, Provider, TypeProvider, ValueProvider} from '@angular/core'; + import {ROUTES} from './router_config_loader'; import {ROUTER_PROVIDERS} from './router_module'; diff --git a/modules/@angular/router/src/router_preloader.ts b/modules/@angular/router/src/router_preloader.ts index 800c9a49ab..0ef72be73b 100644 --- a/modules/@angular/router/src/router_preloader.ts +++ b/modules/@angular/router/src/router_preloader.ts @@ -6,7 +6,7 @@ *found in the LICENSE file at https://angular.io/license */ -import {Compiler, ComponentFactoryResolver, Injectable, Injector, NgModuleFactory, NgModuleFactoryLoader} from '@angular/core'; +import {Compiler, Injectable, Injector, NgModuleFactoryLoader} from '@angular/core'; import {Observable} from 'rxjs/Observable'; import {Subscription} from 'rxjs/Subscription'; import {from} from 'rxjs/observable/from'; @@ -14,7 +14,6 @@ import {of } from 'rxjs/observable/of'; import {_catch} from 'rxjs/operator/catch'; import {concatMap} from 'rxjs/operator/concatMap'; import {filter} from 'rxjs/operator/filter'; -import {map} from 'rxjs/operator/map'; import {mergeAll} from 'rxjs/operator/mergeAll'; import {mergeMap} from 'rxjs/operator/mergeMap'; diff --git a/modules/@angular/router/src/router_state.ts b/modules/@angular/router/src/router_state.ts index 94a4f1338c..9aa4e4e8bc 100644 --- a/modules/@angular/router/src/router_state.ts +++ b/modules/@angular/router/src/router_state.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {ComponentFactory, Type} from '@angular/core'; +import {Type} from '@angular/core'; import {BehaviorSubject} from 'rxjs/BehaviorSubject'; import {Observable} from 'rxjs/Observable'; diff --git a/modules/@angular/router/test/create_router_state.spec.ts b/modules/@angular/router/test/create_router_state.spec.ts index 8b1a448801..9ef739f9f7 100644 --- a/modules/@angular/router/test/create_router_state.spec.ts +++ b/modules/@angular/router/test/create_router_state.spec.ts @@ -10,7 +10,7 @@ import {Routes} from '../src/config'; import {createRouterState} from '../src/create_router_state'; import {recognize} from '../src/recognize'; import {ActivatedRoute, RouterState, RouterStateSnapshot, advanceActivatedRoute, createEmptyState} from '../src/router_state'; -import {PRIMARY_OUTLET, Params} from '../src/shared'; +import {PRIMARY_OUTLET} from '../src/shared'; import {DefaultUrlSerializer, UrlSegmentGroup, UrlTree} from '../src/url_tree'; import {TreeNode} from '../src/utils/tree'; diff --git a/modules/@angular/router/test/create_url_tree.spec.ts b/modules/@angular/router/test/create_url_tree.spec.ts index dbe69ceaab..7482c6ec45 100644 --- a/modules/@angular/router/test/create_url_tree.spec.ts +++ b/modules/@angular/router/test/create_url_tree.spec.ts @@ -11,7 +11,7 @@ import {BehaviorSubject} from 'rxjs/BehaviorSubject'; import {createUrlTree} from '../src/create_url_tree'; import {ActivatedRoute, ActivatedRouteSnapshot, advanceActivatedRoute} from '../src/router_state'; import {PRIMARY_OUTLET, Params} from '../src/shared'; -import {DefaultUrlSerializer, UrlSegment, UrlSegmentGroup, UrlTree} from '../src/url_tree'; +import {DefaultUrlSerializer, UrlSegmentGroup, UrlTree} from '../src/url_tree'; describe('createUrlTree', () => { const serializer = new DefaultUrlSerializer(); diff --git a/modules/@angular/router/test/router_preloader.spec.ts b/modules/@angular/router/test/router_preloader.spec.ts index f639903b74..e74665a5cc 100644 --- a/modules/@angular/router/test/router_preloader.spec.ts +++ b/modules/@angular/router/test/router_preloader.spec.ts @@ -7,7 +7,7 @@ */ import {Component, NgModule, NgModuleFactoryLoader} from '@angular/core'; -import {ComponentFixture, TestBed, fakeAsync, inject, tick} from '@angular/core/testing'; +import {TestBed, fakeAsync, inject, tick} from '@angular/core/testing'; import {Router, RouterModule} from '../index'; import {PreloadAllModules, PreloadingStrategy, RouterPreloader} from '../src/router_preloader'; diff --git a/modules/@angular/router/test/url_serializer.spec.ts b/modules/@angular/router/test/url_serializer.spec.ts index 463b3c43da..3cfdc6de2b 100644 --- a/modules/@angular/router/test/url_serializer.spec.ts +++ b/modules/@angular/router/test/url_serializer.spec.ts @@ -7,7 +7,7 @@ */ import {PRIMARY_OUTLET} from '../src/shared'; -import {DefaultUrlSerializer, UrlSegmentGroup, decode, encode, serializePath} from '../src/url_tree'; +import {DefaultUrlSerializer, UrlSegmentGroup, encode, serializePath} from '../src/url_tree'; describe('url serializer', () => { const url = new DefaultUrlSerializer(); diff --git a/modules/@angular/router/test/url_tree.spec.ts b/modules/@angular/router/test/url_tree.spec.ts index 821e126a5d..99322d8a4e 100644 --- a/modules/@angular/router/test/url_tree.spec.ts +++ b/modules/@angular/router/test/url_tree.spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {DefaultUrlSerializer, UrlTree, containsTree} from '../src/url_tree'; +import {DefaultUrlSerializer, containsTree} from '../src/url_tree'; describe('UrlTree', () => { const serializer = new DefaultUrlSerializer(); diff --git a/modules/@angular/router/testing/router_testing_module.ts b/modules/@angular/router/testing/router_testing_module.ts index 60e745cdd9..423caba181 100644 --- a/modules/@angular/router/testing/router_testing_module.ts +++ b/modules/@angular/router/testing/router_testing_module.ts @@ -9,7 +9,7 @@ import {Location, LocationStrategy} from '@angular/common'; import {MockLocationStrategy, SpyLocation} from '@angular/common/testing'; import {Compiler, Injectable, Injector, ModuleWithProviders, NgModule, NgModuleFactory, NgModuleFactoryLoader} from '@angular/core'; -import {NoPreloading, PreloadAllModules, PreloadingStrategy, Route, Router, RouterModule, RouterOutletMap, Routes, UrlSerializer, provideRoutes} from '@angular/router'; +import {NoPreloading, PreloadingStrategy, Route, Router, RouterModule, RouterOutletMap, Routes, UrlSerializer, provideRoutes} from '@angular/router'; import {ROUTER_PROVIDERS, ROUTES, flatten} from './private_import_router'; diff --git a/modules/@angular/upgrade/src/upgrade_adapter.ts b/modules/@angular/upgrade/src/upgrade_adapter.ts index 72a3afe68b..5abc226c59 100644 --- a/modules/@angular/upgrade/src/upgrade_adapter.ts +++ b/modules/@angular/upgrade/src/upgrade_adapter.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Compiler, ComponentFactory, ComponentFactoryResolver, Injector, NgModule, NgModuleRef, NgZone, Provider, Testability, Type} from '@angular/core'; +import {Compiler, ComponentFactory, Injector, NgModule, NgModuleRef, NgZone, Provider, Testability, Type} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; import * as angular from './angular_js'; diff --git a/modules/@angular/upgrade/test/metadata_spec.ts b/modules/@angular/upgrade/test/metadata_spec.ts index 61d859ef1f..07f1da5063 100644 --- a/modules/@angular/upgrade/test/metadata_spec.ts +++ b/modules/@angular/upgrade/test/metadata_spec.ts @@ -6,8 +6,8 @@ * found in the LICENSE file at https://angular.io/license */ -import {Component, Type} from '@angular/core'; -import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; +import {Component} from '@angular/core'; +import {describe, expect, it} from '@angular/core/testing/testing_internal'; import {getComponentInfo, parseFields} from '@angular/upgrade/src/metadata'; export function main() { diff --git a/modules/@angular/upgrade/test/upgrade_spec.ts b/modules/@angular/upgrade/test/upgrade_spec.ts index 8aaf51a6fd..f32afed002 100644 --- a/modules/@angular/upgrade/test/upgrade_spec.ts +++ b/modules/@angular/upgrade/test/upgrade_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Class, Component, EventEmitter, Inject, NO_ERRORS_SCHEMA, NgModule, OpaqueToken, Testability, destroyPlatform, forwardRef} from '@angular/core'; +import {Class, Component, EventEmitter, NO_ERRORS_SCHEMA, NgModule, Testability, destroyPlatform, forwardRef} from '@angular/core'; import {async} from '@angular/core/testing'; import {BrowserModule} from '@angular/platform-browser'; import {UpgradeAdapter} from '@angular/upgrade'; diff --git a/modules/benchmarks/src/largetable/ng2/index.ts b/modules/benchmarks/src/largetable/ng2/index.ts index 0d23ca369c..2376daa976 100644 --- a/modules/benchmarks/src/largetable/ng2/index.ts +++ b/modules/benchmarks/src/largetable/ng2/index.ts @@ -1,4 +1,4 @@ -import {ApplicationRef, NgModule, enableProdMode} from '@angular/core'; +import {ApplicationRef, enableProdMode} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; import {bindAction, profile} from '../../util'; diff --git a/modules/benchmarks/src/largetable/ng2_switch/index.ts b/modules/benchmarks/src/largetable/ng2_switch/index.ts index 0d23ca369c..2376daa976 100644 --- a/modules/benchmarks/src/largetable/ng2_switch/index.ts +++ b/modules/benchmarks/src/largetable/ng2_switch/index.ts @@ -1,4 +1,4 @@ -import {ApplicationRef, NgModule, enableProdMode} from '@angular/core'; +import {ApplicationRef, enableProdMode} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; import {bindAction, profile} from '../../util'; diff --git a/modules/benchmarks/src/tree/baseline/index.ts b/modules/benchmarks/src/tree/baseline/index.ts index 58a3927cf1..045e5018c2 100644 --- a/modules/benchmarks/src/tree/baseline/index.ts +++ b/modules/benchmarks/src/tree/baseline/index.ts @@ -1,5 +1,5 @@ import {bindAction, profile} from '../../util'; -import {TreeNode, buildTree, emptyTree} from '../util'; +import {buildTree, emptyTree} from '../util'; import {TreeComponent} from './tree'; export function main() { diff --git a/modules/benchmarks/src/tree/incremental_dom/index.ts b/modules/benchmarks/src/tree/incremental_dom/index.ts index 70ffe285e3..eb2e17827d 100644 --- a/modules/benchmarks/src/tree/incremental_dom/index.ts +++ b/modules/benchmarks/src/tree/incremental_dom/index.ts @@ -1,5 +1,5 @@ import {bindAction, profile} from '../../util'; -import {TreeNode, buildTree, emptyTree} from '../util'; +import {buildTree, emptyTree} from '../util'; import {TreeComponent} from './tree'; const {patch} = require('incremental-dom'); diff --git a/modules/benchmarks/src/tree/ng2/index.ts b/modules/benchmarks/src/tree/ng2/index.ts index 68ae9d6cb5..7c8c66b441 100644 --- a/modules/benchmarks/src/tree/ng2/index.ts +++ b/modules/benchmarks/src/tree/ng2/index.ts @@ -1,8 +1,8 @@ -import {ApplicationRef, NgModule, enableProdMode} from '@angular/core'; +import {ApplicationRef, enableProdMode} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; import {bindAction, profile} from '../../util'; -import {TreeNode, buildTree, emptyTree} from '../util'; +import {buildTree, emptyTree} from '../util'; import {AppModule, TreeComponent} from './tree'; diff --git a/modules/benchmarks/src/tree/ng2_static/index.ts b/modules/benchmarks/src/tree/ng2_static/index.ts index 2a21d68710..d4e8b3c4f6 100644 --- a/modules/benchmarks/src/tree/ng2_static/index.ts +++ b/modules/benchmarks/src/tree/ng2_static/index.ts @@ -1,8 +1,8 @@ -import {ApplicationRef, NgModule, enableProdMode} from '@angular/core'; +import {ApplicationRef, enableProdMode} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; import {bindAction, profile} from '../../util'; -import {TreeNode, buildTree, emptyTree} from '../util'; +import {buildTree, emptyTree} from '../util'; import {AppModule, RootTreeComponent} from './tree'; diff --git a/modules/benchmarks/src/tree/ng2_switch/index.ts b/modules/benchmarks/src/tree/ng2_switch/index.ts index e8bfd286f2..dd38964858 100644 --- a/modules/benchmarks/src/tree/ng2_switch/index.ts +++ b/modules/benchmarks/src/tree/ng2_switch/index.ts @@ -1,8 +1,8 @@ -import {ApplicationRef, NgModule, enableProdMode} from '@angular/core'; +import {ApplicationRef, enableProdMode} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; import {bindAction, profile} from '../../util'; -import {TreeNode, buildTree, emptyTree} from '../util'; +import {buildTree, emptyTree} from '../util'; import {AppModule, TreeComponent} from './tree'; diff --git a/modules/benchmarks/src/tree/ng2_switch/tree.ts b/modules/benchmarks/src/tree/ng2_switch/tree.ts index eab1a7dc46..8e8ca394da 100644 --- a/modules/benchmarks/src/tree/ng2_switch/tree.ts +++ b/modules/benchmarks/src/tree/ng2_switch/tree.ts @@ -1,7 +1,7 @@ import {Component, Input, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; -import {TreeNode, emptyTree, flattenTree} from '../util'; +import {TreeNode, emptyTree} from '../util'; @Component({ selector: 'tree', diff --git a/modules/benchmarks/src/tree/polymer_leaves/index.ts b/modules/benchmarks/src/tree/polymer_leaves/index.ts index 2a145134de..90600b387f 100644 --- a/modules/benchmarks/src/tree/polymer_leaves/index.ts +++ b/modules/benchmarks/src/tree/polymer_leaves/index.ts @@ -1,5 +1,5 @@ import {bindAction} from '../../util'; -import {TreeNode, buildTree, emptyTree, flattenTree} from '../util'; +import {buildTree, flattenTree} from '../util'; declare var Polymer: any; diff --git a/modules/playground/e2e_test/sourcemap/sourcemap_spec.ts b/modules/playground/e2e_test/sourcemap/sourcemap_spec.ts index 8e36a24635..f86592458d 100644 --- a/modules/playground/e2e_test/sourcemap/sourcemap_spec.ts +++ b/modules/playground/e2e_test/sourcemap/sourcemap_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import * as testUtil from 'e2e_util/e2e_util'; + var fs = require('fs'); var sourceMap = require('source-map'); diff --git a/modules/playground/src/animate/app/animate-app.ts b/modules/playground/src/animate/app/animate-app.ts index 52a2d1e186..b3a337b368 100644 --- a/modules/playground/src/animate/app/animate-app.ts +++ b/modules/playground/src/animate/app/animate-app.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Component, animate, group, keyframes, sequence, state, style, transition, trigger} from '@angular/core'; +import {Component, animate, keyframes, state, style, transition, trigger} from '@angular/core'; @Component({ host: { diff --git a/modules/playground/src/animate/index.ts b/modules/playground/src/animate/index.ts index 2922c3a8ec..8a6d93f448 100644 --- a/modules/playground/src/animate/index.ts +++ b/modules/playground/src/animate/index.ts @@ -5,7 +5,7 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -import {Component, NgModule} from '@angular/core'; +import {NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; diff --git a/modules/playground/src/model_driven_forms/index.ts b/modules/playground/src/model_driven_forms/index.ts index 630f7ae61b..d71abcc806 100644 --- a/modules/playground/src/model_driven_forms/index.ts +++ b/modules/playground/src/model_driven_forms/index.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Component, Directive, Host, NgModule} from '@angular/core'; +import {Component, Host, NgModule} from '@angular/core'; import {isPresent, print} from '@angular/core/src/facade/lang'; import {AbstractControl, FormBuilder, FormGroup, FormGroupDirective, ReactiveFormsModule, Validators} from '@angular/forms'; import {BrowserModule} from '@angular/platform-browser'; diff --git a/modules/playground/src/routing/app/inbox-app.ts b/modules/playground/src/routing/app/inbox-app.ts index 18e7806e26..e756397cf4 100644 --- a/modules/playground/src/routing/app/inbox-app.ts +++ b/modules/playground/src/routing/app/inbox-app.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Location} from '@angular/common'; + import {Component, Injectable} from '@angular/core'; import {DateWrapper, isPresent} from '@angular/core/src/facade/lang'; import {ActivatedRoute, Router} from '@angular/router'; diff --git a/modules/playground/src/template_driven_forms/index.ts b/modules/playground/src/template_driven_forms/index.ts index 72d35f1d3d..e736e7f9fb 100644 --- a/modules/playground/src/template_driven_forms/index.ts +++ b/modules/playground/src/template_driven_forms/index.ts @@ -6,10 +6,10 @@ * found in the LICENSE file at https://angular.io/license */ -import {NgFor, NgIf} from '@angular/common'; + import {Component, Directive, Host, NgModule} from '@angular/core'; import {isPresent, print} from '@angular/core/src/facade/lang'; -import {FormGroup, FormsModule, NG_VALIDATORS, NgControl, NgForm, Validators} from '@angular/forms'; +import {FormGroup, FormsModule, NG_VALIDATORS, NgForm} from '@angular/forms'; import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; diff --git a/modules/playground/src/web_workers/images/index_common.ts b/modules/playground/src/web_workers/images/index_common.ts index 0689f694ba..92dc2374e3 100644 --- a/modules/playground/src/web_workers/images/index_common.ts +++ b/modules/playground/src/web_workers/images/index_common.ts @@ -7,7 +7,6 @@ */ import {Component} from '@angular/core'; -import {EventListener} from '@angular/core/src/facade/browser'; import {FileReader, Uint8ArrayWrapper} from './file_api'; import {BitmapService} from './services/bitmap'; diff --git a/modules/playground/src/web_workers/images/single_thread.ts b/modules/playground/src/web_workers/images/single_thread.ts index e4854a6ebb..3a751fdece 100644 --- a/modules/playground/src/web_workers/images/single_thread.ts +++ b/modules/playground/src/web_workers/images/single_thread.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Component, NgModule} from '@angular/core'; +import {NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';