style(global): group multiple imports from same module
Closes #7802 Closes #8209
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
import {Component, Directive, Output, EventEmitter} from 'angular2/core';
|
||||
import {
|
||||
Component,
|
||||
Directive,
|
||||
Output,
|
||||
EventEmitter,
|
||||
Provider,
|
||||
forwardRef,
|
||||
Input
|
||||
} from 'angular2/core';
|
||||
import {
|
||||
ComponentFixture,
|
||||
afterEach,
|
||||
@@ -35,7 +43,6 @@ import {
|
||||
Validator,
|
||||
RadioButtonState
|
||||
} from 'angular2/common';
|
||||
import {Provider, forwardRef, Input} from 'angular2/core';
|
||||
import {By} from 'angular2/platform/browser';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {ObservableWrapper, TimerWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
beforeEachProviders
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {stringify} from 'angular2/src/facade/lang';
|
||||
import {IS_DART, stringify} from 'angular2/src/facade/lang';
|
||||
import {RuntimeMetadataResolver} from 'angular2/src/compiler/runtime_metadata';
|
||||
import {LifecycleHooks, LIFECYCLE_HOOKS_VALUES} from 'angular2/src/core/metadata/lifecycle_hooks';
|
||||
import {
|
||||
@@ -35,7 +35,6 @@ import {
|
||||
|
||||
import {TEST_PROVIDERS} from './test_bindings';
|
||||
import {MODULE_SUFFIX} from 'angular2/src/compiler/util';
|
||||
import {IS_DART} from 'angular2/src/facade/lang';
|
||||
import {PLATFORM_DIRECTIVES} from 'angular2/src/core/platform_directives_and_pipes';
|
||||
import {MalformedStylesComponent} from './runtime_metadata_fixture';
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular2/testing_internal';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {SelectorMatcher} from 'angular2/src/compiler/selector';
|
||||
import {CssSelector} from 'angular2/src/compiler/selector';
|
||||
import {SelectorMatcher, CssSelector} from 'angular2/src/compiler/selector';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
export function main() {
|
||||
|
||||
@@ -16,7 +16,9 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {
|
||||
IS_DART,
|
||||
CONST_EXPR,
|
||||
Type,
|
||||
isPresent,
|
||||
isBlank,
|
||||
isNumber,
|
||||
@@ -37,7 +39,6 @@ import {
|
||||
|
||||
import {OnDestroy} from 'angular2/src/core/metadata/lifecycle_hooks';
|
||||
|
||||
import {IS_DART, Type} from 'angular2/src/facade/lang';
|
||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
|
||||
|
||||
@@ -32,7 +32,8 @@ import {
|
||||
stringify,
|
||||
isBlank,
|
||||
CONST,
|
||||
CONST_EXPR
|
||||
CONST_EXPR,
|
||||
IS_DART
|
||||
} from 'angular2/src/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||
import {
|
||||
@@ -58,9 +59,7 @@ import {
|
||||
ReflectiveInjector
|
||||
} from 'angular2/core';
|
||||
|
||||
import {NgIf, NgFor} from 'angular2/common';
|
||||
|
||||
import {AsyncPipe} from 'angular2/common';
|
||||
import {NgIf, NgFor, AsyncPipe} from 'angular2/common';
|
||||
|
||||
import {
|
||||
PipeTransform,
|
||||
@@ -93,7 +92,6 @@ import {ElementRef} from 'angular2/src/core/linker/element_ref';
|
||||
import {TemplateRef} from 'angular2/src/core/linker/template_ref';
|
||||
|
||||
import {Renderer} from 'angular2/src/core/render';
|
||||
import {IS_DART} from 'angular2/src/facade/lang';
|
||||
|
||||
const ANCHOR_ELEMENT = CONST_EXPR(new OpaqueToken('AnchorElement'));
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
xit,
|
||||
SpyObject
|
||||
} from 'angular2/testing_internal';
|
||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||
import {ObservableWrapper, TimerWrapper} from 'angular2/src/facade/async';
|
||||
import {BrowserJsonp} from 'angular2/src/http/backends/browser_jsonp';
|
||||
import {
|
||||
JSONPConnection,
|
||||
@@ -21,7 +21,6 @@ import {
|
||||
} from 'angular2/src/http/backends/jsonp_backend';
|
||||
import {provide, Injector, ReflectiveInjector} from 'angular2/core';
|
||||
import {isPresent, StringWrapper} from 'angular2/src/facade/lang';
|
||||
import {TimerWrapper} from 'angular2/src/facade/async';
|
||||
import {Request} from 'angular2/src/http/static_request';
|
||||
import {Response} from 'angular2/src/http/static_response';
|
||||
import {Map} from 'angular2/src/facade/collection';
|
||||
|
||||
@@ -8,14 +8,12 @@ import {
|
||||
it,
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {stringify} from 'angular2/src/facade/lang';
|
||||
import {stringify, isBlank} from 'angular2/src/facade/lang';
|
||||
|
||||
import {MockViewResolver} from 'angular2/src/mock/view_resolver_mock';
|
||||
|
||||
import {Component, ViewMetadata} from 'angular2/src/core/metadata';
|
||||
|
||||
import {isBlank} from 'angular2/src/facade/lang';
|
||||
|
||||
export function main() {
|
||||
describe('MockViewResolver', () => {
|
||||
var viewResolver: MockViewResolver;
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
import {IS_DART, isPresent, stringify} from 'angular2/src/facade/lang';
|
||||
import {bootstrap, BROWSER_PROVIDERS, BROWSER_APP_PROVIDERS} from 'angular2/platform/browser';
|
||||
import {ApplicationRef, PlatformRef} from 'angular2/src/core/application_ref';
|
||||
import {ApplicationRef, PlatformRef, disposePlatform} from 'angular2/src/core/application_ref';
|
||||
import {Console} from 'angular2/src/core/console';
|
||||
import {Component, Directive, OnDestroy} from 'angular2/core';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
@@ -30,7 +30,6 @@ import {
|
||||
createPlatform,
|
||||
ReflectiveInjector
|
||||
} from 'angular2/core';
|
||||
import {disposePlatform} from 'angular2/src/core/application_ref';
|
||||
import {ExceptionHandler, BaseException} from 'angular2/src/facade/exceptions';
|
||||
import {Testability, TestabilityRegistry} from 'angular2/src/core/testability/testability';
|
||||
import {ComponentRef} from "angular2/src/core/linker/component_factory";
|
||||
|
||||
@@ -15,8 +15,7 @@ import {
|
||||
tick
|
||||
} from 'angular2/testing';
|
||||
|
||||
import {Injectable, bind} from 'angular2/core';
|
||||
import {Directive, Component, ViewMetadata} from 'angular2/core';
|
||||
import {Injectable, bind, Directive, Component, ViewMetadata} from 'angular2/core';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||
import {XHR} from 'angular2/src/compiler/xhr';
|
||||
import {XHRImpl} from 'angular2/src/platform/browser/xhr_impl';
|
||||
|
||||
@@ -16,9 +16,8 @@ import {
|
||||
TestComponentBuilder
|
||||
} from 'angular2/testing';
|
||||
|
||||
import {Injectable, bind} from 'angular2/core';
|
||||
import {Injectable, bind, Directive, Component, ViewMetadata} from 'angular2/core';
|
||||
import {NgIf} from 'angular2/common';
|
||||
import {Directive, Component, ViewMetadata} from 'angular2/core';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||
|
||||
// Services, and components for the tests.
|
||||
|
||||
Reference in New Issue
Block a user